You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From my work with the code, the lock prevents multiple accesses to the same model instance. If you wanted to run multiple in parallel, you would need to initialize multiple models. As the model, when running, will more or less saturate the processing capability of the GPU/CPU it is running on, this likely wouldn't be as useful as you hope. It is much easier/configurable to spawn multiple instances of the docker container instead. For example, using --gpus device=n where n is the id of a compatible GPU allows you to run the model on a specific GPU. I have used this to run testing on two Nvidia Tesla GPUs as well as the system CPU
I want to increase concurrency capability, but i see source code like:
can i remove the lock?
The text was updated successfully, but these errors were encountered: