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 trying to use the online mode for auto-downloading models, the first time models are downloaded the code gets stuck and doesn't execute even after model downloading is completed.
Here's an example code
fnget_model() -> Result<MutexGuard<'static,SentenceEmbeddingsModel>,Box<dynError>>{MODEL.get_or_try_init(
|| -> Result<Mutex<SentenceEmbeddingsModel>,Box<dynError>>{let model =
SentenceEmbeddingsBuilder::remote(SentenceEmbeddingsModelType::AllMiniLmL6V2).create_model()?;Ok(Mutex::new(model))},).map_err(|e| Box::<dynError>::from(format!("Failed to initialize model: {:?}", e)))?
.lock().map_err(|e| Box::<dynError>::from(format!("Failed to acquire model lock: {:?}", e)))}
Additionally, I have set the RUSTBERT_CACHE environment variable. I notice that even though models exist in the cache directory, after a few times using it, rust-bert starts downloading the models once again. And when it downloads again it once again gets stuck in it and doesn't execute the inference pipeline..
Any help would be appreciated..
The text was updated successfully, but these errors were encountered:
When trying to use the online mode for auto-downloading models, the first time models are downloaded the code gets stuck and doesn't execute even after model downloading is completed.
Here's an example code
Additionally, I have set the RUSTBERT_CACHE environment variable. I notice that even though models exist in the cache directory, after a few times using it, rust-bert starts downloading the models once again. And when it downloads again it once again gets stuck in it and doesn't execute the inference pipeline..
Any help would be appreciated..
The text was updated successfully, but these errors were encountered: