Unclear error message when unable to cache the model
See original GitHub issueI encountered the following error:
[2019-05-07 11:06:51,904: ERROR/ForkPoolWorker-1] Model name 'bert-base-uncased'
was not found in model name list (bert-base-uncased, bert-large-uncased, bert-base-cased,
bert-large-cased, bert-base-multilingual-uncased, bert-base-multilingual-cased,
bert-base-chinese).
We assumed 'https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-uncased.tar.gz'
was a path or url but couldn't find any file associated to this path or url.
After some debugging, I found that the root cause of the issue was the fact that the application is unable to cache the model in the home directory. It was a simple I/O error rather than an issue with the model name or file downloading, as the message suggests. I think it would be worth it to handle this case with an appropriate message, and what’s more important - throwing an exception.
In my case, I did get the error logs, but the application initiated “successfully” - with the tokenizer and model set to None
. If the library is not able to load the model for any reason, I’d expect it to throw an exception rather than just (almost) silently return a None
.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Unclear error message when unable to cache the model #595
It was a simple I/O error rather than an issue with the model name or file downloading, as the message suggests. I think...
Read more >Problem validating app.json: Unable to perform cache refresh
json: Unable to perform cache refresh for \schema-undefined.json: Error: Request failed with status code 404. Error: Invalid sdkVersion. Valid options are 7.0.0 ...
Read more >Unable to download the client cache files... error
I get an error launching PROD... its says "Unable to download the client cache files... the rich client is logged in skip client...
Read more >How to Fix 'ERR_CACHE_MISS' in Chrome (7 Methods) - Kinsta
ERR_CACHE_MISS The ERR_CACHE_MISS Message in Google Chrome. From the name, it's clear that this error is related to caching.
Read more >How Do I Fix My Caching Problems Or Clear Web Browser's ...
Close your browser and re-open it (make sure you are NOT on the cached page) and delete your temporary Internet files (clear your...
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 Free
Top 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
Yes, this error message hides several potential sources, I’ll see if I can disentangle the error messages 😃
Yes, it should have been improved on the latest release 2.1.1 (with the merge of #1480).
Maybe open a new issue with clear details of the current issue?