Cannot download models locally
See original GitHub issueHi, I tried to run the commands, which worked perfectly file.
from speechbrain.pretrained import EncoderDecoderASR
asr_model = EncoderDecoderASR.from_hparams(source="speechbrain/asr-crdnn-rnnlm-librispeech")
But when I looked over the model files, the files downloaded are just 158 kbs, and not the full files are downloaded.
Also, when I tried to download the files directly from Files and versions, the ckpt files are downloaded as zip. which cant be used later for inference. IS there any way to resolve it or it has been purposefully made like that.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9
Top Results From Across the Web
Model can't be downloaded · Issue #8735 - GitHub
I used the following code to download the model: ... Another reason why this doesn't work might be that you have a directory...
Read more >Download models for local loading - Hugging Face Forums
Hi, Because of some dastardly security block, I'm unable to download a model (specifically distilbert-base-uncased) through my IDE.
Read more >How to download BERT model locally, without use of package?
I am using Linux, so the . cache folder is in /home/username/. cache/torch/sentence-transformers. Save this answer.
Read more >[Lesson 15] Downloading Models Locally in Trimble Connect ...
This video is part 15 of the training lessons for using the Trimble Connect for HoloLens application on the Trimble XR10 with HoloLens...
Read more >Cannot download models from 3d Warehouse
If you are using SketchUp 2017, 3D Warehouse does now show an error when you click on Download. As 2017 and 2018 are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since, this issue is still open and it has been about 4 months. I also wanted to comment that the current implementation is unintuitive. This is especially egregious given the standard set by PyTorch, upon which speechbrain is built and what an outsider would consider, at a glance, to be standard practice. Furthermore, it was only after stumbling upon this issue board and the comments in #1055 that I was able to resolve changing the location of the cache placement (which is an otherwise undocumented process). For those interested, the solution is the following code:
export HUGGINGFACE_HUB_CACHE=<new_directory>
otherwise the code will default to placing a ./cache/huggingface under your /home directory.
Hi @Gastron, thanks for the reply. I wanted to store those files and containerize them so that it does not needs to be downloaded whenever I run the container. But unlike other repositories, where the full files are downloaded by default, instead of cache. Maybe for speechbrain we can put an arguement symlinks=true, to just add the symlinks and keep that by default. But if we need that to download full files, we can pass the arguement symlinks=false, we can at least download them.