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

qwen2推理异常 #42

Closed
storyxlx opened this issue Jun 28, 2024 · 1 comment
Closed

qwen2推理异常 #42

storyxlx opened this issue Jun 28, 2024 · 1 comment

Comments

@storyxlx
Copy link

安装pip install ./dist/sophon-3.7.0-py3-none-any.whl --force-reinstall

然后运行python python/qwen1_5.py --bmodel models/BM1684X/qwen1.5-1.8b_int4_1dev.bmodel --token python/token_config --dev_id 0 ,发生错误:
Traceback (most recent call last):
File "/root/sophon/python/qwen1_5.py", line 328, in
main(args)
File "/root/sophon/python/qwen1_5.py", line 314, in main
engine = sail.EngineLLM(args.bmodel, [args.dev_id])

很奇怪为什么EngineLLM没有导入,去安装文件去看也没找到什么异常,修改代码:
engine = sail.Engine(args.bmodel, args.dev_id, sail.IOMode.SYSIO )

再次运行:
[BMRT][bmcpu_setup:406] INFO:cpu_lib 'libcpuop.so' is loaded.
open usercpu.so, init user_cpu_init
[BMRT][load_bmodel:1084] INFO:Loading bmodel from [models/BM1684X/qwen1.5-1.8b_int4_1dev.bmodel]. Thanks for your patience...
[BMRT][load_bmodel:1023] INFO:pre net num: 0, load net num: 53
[BMRT][fix_gdma_addr:459] FATAL:gdma dst shouldn't be coeff, origin[0x101ead000], ctx[0x101eb0000]
[2024-06-28 18:25:54.763] [error] Load models/BM1684X/qwen1.5-1.8b_int4_1dev.bmodel failed
还是出错了。

@sophon-leevi
Copy link
Collaborator

image

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