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-1.5B get wront results on x86 and macos #200

Open
xingjinglu opened this issue Jun 14, 2024 · 1 comment
Open

qwen2-1.5B get wront results on x86 and macos #200

xingjinglu opened this issue Jun 14, 2024 · 1 comment

Comments

@xingjinglu
Copy link

./cli_demo ../ios/mnn-llm/Qwen2-1.5B-Instruct-MNN
model path is ../ios/mnn-llm/Qwen2-1.5B-Instruct-MNN
libc++abi: terminating due to uncaught exception of type nlohmann::json_abi_v3_11_3::detail::type_error: [json.exception.type_error.306] cannot use value() with null
zsh: abort ./cli_demo ../ios/mnn-llm/Qwen2-1.5B-Instruct-MNN

@xingjinglu
Copy link
Author

xingjinglu commented Jun 17, 2024

1)It is cuased with wrong used.
./cli_demo Qwen2-1.5B-Instruct-MNN/config.json

2)but with the above command, I encounter some others errors:

  • Platform:linux, x86-64
model path is Qwen2-1.5B-Instruct-MNN/config.json
The device support i8sdot:0, support fp16:0, support i8mm: 0
### is_single_ = 1, is_disk_embedding_ = 1
load tokenizer
tokenizer_type = 3
load tokenizer Done
load Qwen2-1.5B-Instruct-MNN/qwen2-1.5b-int4.mnn ... Invalidate buffer to create MNN Module
Done!

Q: 您好

A: Segmentation fault

3) MacOS

  • Platform: Mac OS M1
model path is  ios/mnn-llm/Qwen2-1.5B-Instruct-MNN/config.json
hw.cpufamily: 458787763 , size = 4
The device support i8sdot:1, support fp16:1, support i8mm: 0
### is_single_ = 1, is_disk_embedding_ = 1
load tokenizer
tokenizer_type = 3
load tokenizer Done
load ios/mnn-llm/Qwen2-1.5B-Instruct-MNN/qwen2-1.5b-int4.mnn ... Done!

Q: 您好

A: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!zsh: terminated  ./build/cli_demo

@xingjinglu xingjinglu changed the title failed to load model with json parser error qwen2-1.5B get wront results on x86 and macos Jun 17, 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

1 participant