transformers AutoModel.from_pretrained('nonexistent-user-zzz/nope') raises OSError: is not a local folder and is not a valid model identifier
@aiden-f-dsouza▲ -7 net votes
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.