mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #1192] [Bug] 在Ubuntu下编译失败 #818
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#818
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 @houkunlin on GitHub (Apr 24, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/1192
Originally assigned to: @Atream on GitHub.
检查清单
问题描述
编译报错
ktransformers编译报错日志.txt
复现步骤
执行
USE_BALANCE_SERVE=1 USE_NUMA=1 bash ./install.sh编译命令环境信息
@houkunlin commented on GitHub (Apr 24, 2025):
ktransformers编译报错日志.txt
@houkunlin commented on GitHub (Apr 24, 2025):
操作步骤是根据 https://github.com/kvcache-ai/ktransformers/blob/main/doc/en/balance-serve.md 这个文件的步骤来做的
@jizhilong commented on GitHub (Apr 24, 2025):
看这个报错,感觉可能和 cmake 版本有关。参考: https://stackoverflow.com/questions/75010206/cuda-12-c20-support-with-cmake-not-working
@houkunlin commented on GitHub (Apr 25, 2025):
确实是 CMake 问题,
升级 CMake 版本后编译正常,但是又遇到另外一个问题,这个问题 #425 已经提及
@houkunlin commented on GitHub (Apr 27, 2025):
已成功编译并运行,发一下我的环境信息:
关于
Tesla T4GPU 可能运行模型失败问题,能正常加载,但是只要一发起请求就直接报错,可以参考 #425 #374 #712 这几个 issues ,我是参考这几个来处理的,并且成功在Tesla T4GPU上运行了DeepSeek-R1-GGUF-Q6_K/DeepSeek-R1-GGUF-Q4_K_M/DeepSeek-V2-Lite-GGUF-Q4_K_M/DeepSeek-V2-Lite-GGUF-Q8_0/DeepSeek-V3-GGUF-Q4_K_M这几个模型但就是速度上仍旧不太理想。其中
DeepSeek-R1-GGUF-Q6_K模型启动完毕后,内存占用950G+其中
DeepSeek-V3-GGUF-Q4_K_M模型启动完毕后,内存占用 840G+如果硬件内存不够,可以尝试多分一些 swap 虚拟内存来保证模型加载成功,权当是尝鲜使用,或者做方案验证什么的,我的就是物理内存 32G*12 = 384G,但 Linux 上
free -h看到的实际内存只有 377G ,完全是没办法加载起DeepSeek-R1-GGUF-Q6_K/DeepSeek-R1-GGUF-Q4_K_M/DeepSeek-V3-GGUF-Q4_K_M这些模型的,也是通过分配虚拟内存才加载起来的