huggingface
loading_error
ai_generated
true
OSError: model-org/model-name is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
ID: huggingface/model-not-found
90%Fix Rate
92%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| any | active | — | — | — |
| 4 | active | — | — | — |
Root Cause
Model identifier not found on Hugging Face Hub. Typo in model name, private repo, or model was deleted/renamed.
genericWorkarounds
-
95% success Verify exact model ID on huggingface.co/models
Model IDs are case-sensitive and include the org: 'meta-llama/Llama-2-7b-hf' not 'llama-2-7b'
-
88% success Authenticate for private or gated models
huggingface-cli login # then: AutoModel.from_pretrained('model_id', token=True) -
82% success Check if model was renamed or deprecated and find the new ID
Search huggingface.co/models for the model family; check the model card for migration notes
Dead Ends
Common approaches that don't work:
-
Search for the model on external mirror sites
82% fail
External mirrors may host outdated, tampered, or license-violating copies. Always use the official Hub.
-
Assume the Hub is down and retry later
70% fail
If the model ID is wrong, retrying will never work. Verify the model name first.