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

cannot import name 'rotate_half' from 'sat.model.official.llama_model' #535

Open
kkkwjr opened this issue Nov 28, 2024 · 1 comment
Open

Comments

@kkkwjr
Copy link

kkkwjr commented Nov 28, 2024

python cli_demo_sat.py --from_pretrained cogagent-chat --version chat --bf16 --stream_chat
[2024-11-28 05:54:25,880] [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/cli_demo_sat.py", line 12, in
from utils.utils import chat, llama2_tokenizer, llama2_text_processor_inference, get_image_processor
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/anaconda3/envs/CogAgent/lib/python3.9/site-packages/sat/model/official/llama_model.py)

为啥会出现引入不了 'rotate_half'的情况呢

@xjywhu
Copy link

xjywhu commented Dec 16, 2024

也遇到了一样的问题,请问您解决了吗

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

2 participants