mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #1803] llama-factory deepseek-v3 sft AMXInt8 加载到44层 Segmentation fault #1131
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#1131
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 @Always-Naive on GitHub (Jan 22, 2026).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/1803
Originally assigned to: @JimmyPeilinLi on GitHub.
Reminder
System Info
python 3.11
torch 2.9.0
transformer 4.51.3
ktransformers-0.4.4+cu128torch29fancy-cp311-cp311-linux_x86_64.whl
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2025 NVIDIA Corporation
Built on Fri_Feb_21_20:23:50_PST_2025
Cuda compilation tools, release 12.8, V12.8.93
Build cuda_12.8.r12.8/compiler.35583870_0
GPU NVIDIA H20-3e * 8
Reproduction
https://blog.llamafactory.net/posts/ktransformers/
我按照这个blog尝试调deepseekv3 44层 Segmentation fault,之前尝试用transformer没支持的v3.2强行进行config映射按v3加载也是同样的在44层出问题,不过问题是 std::bad_alloc
以下是我的yaml,试过blog提供的的单卡和多卡的yaml,问题都是在44层。
是依赖版本问题吗?
Others
No response
@JimmyPeilinLi commented on GitHub (Feb 2, 2026):
多卡放置的 yaml 比较难写,之前社区也有人跟我讨论过,我们后面会放弃这种方式,提供一种类似于 FSDP 的方式来放置 Attention/shared experts 部分(GPU 参数)。我们会在下一个版本对这个进行重构。如果你想最近做测试的还,目前我怀疑是有些层放置的问题,可以先试试 4 卡放置(我应该提供了 default 的 yaml)看看能不能成功。