Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'starcoder2' #24

Open
Hearum opened this issue Oct 22, 2024 · 0 comments
Open

KeyError: 'starcoder2' #24

Hearum opened this issue Oct 22, 2024 · 0 comments

Comments

@Hearum
Copy link

Hearum commented Oct 22, 2024

When initiating the model, come to this problem:
Traceback (most recent call last):
File "/home/user/documents/checkpoint/download/down_bigcode2.py", line 12, in
model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto", torch_dtype=torch.bfloat16)
File "/home/user/miniconda3/envs/lib/python3.7/site-packages/transformers/models/auto/auto_factory.py", line 461, in from_pretrained
**kwargs,
File "/home/user/miniconda3/envs/lib/python3.7/site-packages/transformers/models/auto/configuration_auto.py", line 957, in from_pretrained
config_class = CONFIG_MAPPING[config_dict["model_type"]]
File "/home/user/miniconda3/envs/lib/python3.7/site-packages/transformers/models/auto/configuration_auto.py", line 671, in getitem
raise KeyError(key)
KeyError: 'starcoder2'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant