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

ImportError: cannot import name 'rotate_half' from 'sat.model.official.llama_model' #187

Open
kkkwjr opened this issue Dec 4, 2024 · 0 comments

Comments

@kkkwjr
Copy link

kkkwjr commented Dec 4, 2024

[2024-12-04 03:22:29,241] [INFO] [real_accelerator.py:219:get_accelerator] Setting ds_accelerator to cuda (auto detect)
Traceback (most recent call last):
File "/workspace/kkkjr/Item/CogVLM/basic_demo/web_demo.py", line 20, in
from utils.utils import chat, llama2_tokenizer, llama2_text_processor_inference, get_image_processor, parse_response
File "/workspace/kkkjr/Item/CogVLM/utils/utils/init.py", line 2, in
from .language import llama2_tokenizer, llama2_text_processor, llama2_text_processor_inference
File "/workspace/kkkjr/Item/CogVLM/utils/utils/language.py", line 1, in
from sat.model.official.llama_model import LLaMAModel, rotate_half
ImportError: cannot import name 'rotate_half' from 'sat.model.official.llama_model' (/home/wpg/.local/lib/python3.10/site-packages/sat/model/official/llama_model.py)

anybody can help? Thanks!

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