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.

Unclear error message when unable to cache the model

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
thomwolfcommented, May 10, 2019

Yes, this error message hides several potential sources, I’ll see if I can disentangle the error messages 😃

0reactions
thomwolfcommented, Oct 14, 2019

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?

Read more comments on GitHub >

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

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