mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #1020] [Bug] 0.2.4无法运行 #723
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#723
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 @yeungtuzi on GitHub (Apr 2, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/1020
检查清单
问题描述
正常编译,运行时控制台不报错,后台无显存占用,dmesg显示segfault
[347557.489256] python3[102229]: segfault at 150 ip 00007372beca3601 sp 00007ffc181202c0 error 4 in libsched.so[7372bec7b000+6a000] likely on CPU 11 (core 11, socket 0)
每次运行都随机报某一个核心上segfault
复现步骤
export HF_ENDPOINT="https://hf-mirror.com"
ktransformers --model_path deepseek-ai/DeepSeek-R1 --gguf_path /root/DeepSeek-R1-GGUF/DeepSeek-R1-Q4_K_M --port 10002 --max_new_tokens=32768 --cache_lens=131072 --model_name "DeepSeek-R1" --chunk_size 256 --max_batch_size 4 --backend_type balance_serve --optimize_config_path ktransformers/optimize/optimize_rules/DeepSeek-V3-Chat-serve.yaml
环境信息
2x Intel(R) Xeon(R) Gold 6330 CPU @ 2.00GHz
64GB DDR4-2933 * 16
ubuntu 22.04.5 lts
Linux local 6.8.0-52-generic
Name: ktransformers
Version: 0.2.4+cu128torch26fancy
@qiyuxinlin commented on GitHub (Apr 2, 2025):
我们定位到了这个问题,请您下载或指定 deepseek-v3 的config 目录(一般保存在 ~/.cache/huggingface/hub/models--deepseek-ai--DeepSeek-R1/snapshots/ 下),我们紧急修复下
@yeungtuzi commented on GitHub (Apr 2, 2025):
启动命令已经修改为
export HF_ENDPOINT="https://hf-mirror.com"
ktransformers --model_path /root/.cache/huggingface/hub/models--deepseek-ai--DeepSeek-R1/snapshots/56d4cbbb4d29f4355bab4b9a39ccb717a14ad5ad --gguf_path /root/DeepSeek-R1-GGUF/DeepSeek-R1-Q4_K_M --port 10002 --max_new_tokens=32768 --cache_lens=131072 --model_name "DeepSeek-R1" --chunk_size 256 --max_batch_size 4 --backend_type balance_serve --optimize_config_path ktransformers/optimize/optimize_rules/DeepSeek-V3-Chat-serve.yaml
正常启动了
@qiyuxinlin commented on GitHub (Apr 2, 2025):
今天修不出来了,明天接着看看
@MotorBottle commented on GitHub (Apr 2, 2025):
使用绝对路径确实能解决这个问题,但load完各层之后又遇到新报错
@qiyuxinlin commented on GitHub (Apr 3, 2025):
可否贴出 ineject 信息,这似乎是 DeepseekV3RMSNorm 函数没有被 inject 导致的
@MotorBottle commented on GitHub (Apr 5, 2025):
这个问题已解决,optimize config需要改用DeepSeek-V3-Chat-serve.yaml,DeepSeek-V3-Chat.yaml会报以上错
@dijiupianhai9 commented on GitHub (Apr 24, 2025):
请教一下,使用DeepSeek-V3-Chat-serve.yaml是多卡推理吗?
@MotorBottle commented on GitHub (Apr 24, 2025):
单卡
@Adadxz commented on GitHub (Jul 7, 2025):
请问这个问题解决了吗?在0.3.1版本似乎还是可以碰到这样的问题
OS: Ubuntu 22.04.1
ktransformers:0.3.1+cu128torch27fancy
CPU:GENUINE INTEL(R) XEON(R)
Core(s) per socket: 72
Socket(s): 2
GPU:A6000
memory: 1.47T
Run cmd:
image
Build ktransformser cmd:
For those who have two cpu and 1T RAM(Dual NUMA):
USE_BALANCE_SERVE=1 USE_NUMA=1 bash ./install.sh
Run result: