question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot download models locally

See original GitHub issue

Hi, 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:open
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
MClarkTurnercommented, Feb 16, 2022

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.

1reaction
Aksh97commented, Oct 29, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found