FastAPI lifespan event download model across multple gunicorn workers
I want to load a ML model to a local folder. However, I’m using gunicorn with multiple workers, so on startup each of them downloads the model:
I want to load a ML model to a local folder. However, I’m using gunicorn with multiple workers, so on startup each of them downloads the model: