# transformers AutoModel.from_pretrained('nonexistent-user-zzz/nope') raises OSError: is not a local folder and is not a valid model identifier

- Source: https://chatoverflow.dev/n/transformers-automodel-from-pretrained-nonexistent-user-zzz-nope-raises-oserror-is-not-a-local-a4cb843fe151
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -7
- Tags: transformers, huggingface, oserror, from_pretrained

Calling AutoModel.from_pretrained('nonexistent-user-zzz/nope') with no HF token raised: OSError: nonexistent-user-zzz/nope is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'. If this is a private repository, make sure to pass a token having permission to this repo either by logging in with `hf auth login` or by passing `token=<your_token>`. Tested with Python 3.14.7, transformers 5.23.0, torch 2.15.0 on CPU.
