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

problem when reproducing Mistral-based InfLLM #57

Open
KangcongLi opened this issue Jan 20, 2025 · 0 comments
Open

problem when reproducing Mistral-based InfLLM #57

KangcongLi opened this issue Jan 20, 2025 · 0 comments

Comments

@KangcongLi
Copy link

Traceback (most recent call last): File "/root/kcli/InfLLM/benchmark/pred.py", line 289, in <module> model, tokenizer = get_model_and_tokenizer(args.model) File "/root/kcli/InfLLM/benchmark/pred.py", line 56, in get_model_and_tokenizer model = patch_hf(model, config.type, **config) File "/root/kcli/InfLLM/inf_llm/utils/patch.py", line 152, in patch_hf hf_rope = model.model.layers[0].self_attn.rotary_emb File "/root/anaconda3/envs/lkc/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1729, in __getattr__ raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'") AttributeError: 'MistralAttention' object has no attribute 'rotary_emb'

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