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

example code problem #27092

Open
iplayfast opened this issue Oct 26, 2023 · 1 comment
Open

example code problem #27092

iplayfast opened this issue Oct 26, 2023 · 1 comment
Labels
Feature request Request for a new feature

Comments

@iplayfast
Copy link

while trying the example from https://huggingface.co/amazon/MistralLite This is the result.

python examplecode.py
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
Traceback (most recent call last):
File "/home/chris/ai/text-generation-webui/amazonmistral/examplecode.py", line 8, in
model = AutoModelForCausalLM.from_pretrained(model_id,
File "/home/chris/anaconda3/envs/textgen/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 571, in from_pretrained
return model_class.from_pretrained(
File "/home/chris/anaconda3/envs/textgen/lib/python3.10/site-packages/transformers/modeling_utils.py", line 3076, in from_pretrained
config = cls._check_and_enable_flash_attn_2(config, torch_dtype=torch_dtype, device_map=device_map)
File "/home/chris/anaconda3/envs/textgen/lib/python3.10/site-packages/transformers/modeling_utils.py", line 1265, in _check_and_enable_flash_attn_2
raise ValueError(
ValueError: The current architecture does not support Flash Attention 2.0. Please open an issue on GitHub to request support for this architecture: https://github.com/huggingface/transformers/issues/new

@ArthurZucker ArthurZucker added the Feature request Request for a new feature label Oct 27, 2023
@ArthurZucker
Copy link
Collaborator

This is fixed by #26464 and will be in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants