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
When I run this program, the HF model loads the shards again and again for each loop iteration. Could this be a bug, where the model is not cached in memory and needs to reload again and again?
This is due to the fact that we load the model when it is called. We could load it when the model is initialized, but this leads to other problems when several models are involved. I will soon open an issue regarding the implementation of a supervisor process that handles the loading/unloading of models.
This won't happen anymore with the new API since #139, closing. We will have different problems when it comes to using different models, but this is tracked by #162
When I run this program, the HF model loads the shards again and again for each loop iteration. Could this be a bug, where the model is not cached in memory and needs to reload again and again?
The text was updated successfully, but these errors were encountered: