# OSError: model-org/model-name is not a local folder and is not a valid model identifier listed on 'https://huggingface.co'

- **ID:** `huggingface/model-id-not-found-local-or-remote`
- **Domain:** huggingface
- **Category:** network_error
- **Verification:** ai_generated
- **Fix Rate:** 90%

## Root Cause

The model identifier does not exist on Hugging Face Hub, or the local path is incorrect, often due to a typo or missing repository.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| huggingface_hub>=0.16.0 | active | — | — |
| transformers>=4.25.0 | active | — | — |
| python>=3.8 | active | — | — |

## Workarounds

1. **Verify the model ID on Hugging Face Hub: https://huggingface.co/models?search=model-org/model-name. Then use correct ID: model = AutoModel.from_pretrained('correct-org/correct-model')** (95% success)
   ```
   Verify the model ID on Hugging Face Hub: https://huggingface.co/models?search=model-org/model-name. Then use correct ID: model = AutoModel.from_pretrained('correct-org/correct-model')
   ```
2. **Use from_pretrained with local folder path if model is downloaded manually: model = AutoModel.from_pretrained('./local_model_folder')** (85% success)
   ```
   Use from_pretrained with local folder path if model is downloaded manually: model = AutoModel.from_pretrained('./local_model_folder')
   ```

## Dead Ends

- **** — The model ID should be 'org/name' without protocol, as the library automatically resolves it. (70% fail)
- **** — local_files_only=True prevents any network access, so the model must already be cached locally. (90% fail)
