mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #289] ktransformers ubuntu 24.04. 运行失败 #186
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#186
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bluezd on GitHub (Feb 14, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/289
环境
Ubuntu 24.04
Driver Version: 570.86.10 CUDA Version: 12.8
宿主机 CPU:Intel(R) Xeon(R) Gold 5218R CPU @ 2.10GHz
虚拟机 CPU:
错误 1
在虚拟机中测试模型报如下错误:
模型连接:https://hf-mirror.com/Donnyed/DeepSeek-R1-Distill-Qwen-32B-Q4_K_M-GGUF/blob/main/deepseek-r1-distill-qwen-32b-q4_k_m.gguf
错误2
参考文档:https://github.com/kvcache-ai/ktransformers/blob/main/doc/en/DeepseekR1_V3_tutorial.md#settings-1
执行:
pip install ./ktransformers-0.3.0rc0+cu126torch26fancy-cp311-cp311-linux_x86_64.whl之后报如下错误:错误3
手动安装包,报如下错误:
@bennyyu79 commented on GitHub (Feb 15, 2025):
python -m ktransformers.local_chat --model_path /home/work/tools/llm/DeepSeek-R1 --gguf_path /home/work/.cache/huggingface/hub/models--unsloth--DeepSeek-R1-GGUF/snapshots/02bcc0a0f68146dae57942804d82bdf0cc636003/DeepSeek-R1-Q4_K_M --prompt_file test_prompt.txt --cpu_infer 65 --max_new_tokens 1000
using custom modeling_xxx.py.
using default_optimize_rule for DeepseekV3ForCausalLM
AVX512F
Injecting model as ktransformers.operators.models . KDeepseekV2Model
Injecting model.embed_tokens as default
Injecting model.layers as default
Injecting model.layers.0 as default
Injecting model.layers.0.self_attn as ktransformers.operators.attention . KDeepseekV2Attention
Illegal instruction
@bluezd commented on GitHub (Feb 15, 2025):
哪位老师帮忙看下这个问题?
@Allonsy-1 commented on GitHub (Feb 16, 2025):
需要先创建一个虚拟环境 python要3.10 并且install pip?
@1850772210 commented on GitHub (Feb 17, 2025):
你的cpu并不支持amx指令集 KT需要支持 amx指令集
@aisfx commented on GitHub (Feb 18, 2025):
第一个问题是否解决? 我也遇到了相同的问题
@quanliu1991 commented on GitHub (Feb 18, 2025):
不支持amx指令集的CPU,有其他办法运行KT吗?比如都在GPU上计算。
@1850772210 commented on GitHub (Feb 18, 2025):
可以手动编译0.2 版本 这种方法可以不支持amx指令集
@alvinfang27 commented on GitHub (Feb 19, 2025):
第一个错误我也是整了好几天,最后在另一个issue下破案了:KT不支持所有的量化模型,即你下载的DeepSeek-R1-Distill-Qwen-32B-Q4_K_M-GGUF 这个模型运行不了
@Longleaves commented on GitHub (Feb 20, 2025):
同遇第3个问题
@ZHUHF123 commented on GitHub (Mar 11, 2025):
请问在不支持amx指令集的情况下我可以用哪个模型呢,希望能得到回复
@XiongjieDai commented on GitHub (May 22, 2025):
哪个issue啊