mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #367] v100上运行671B q4可以到chat界面,但是回答时报错,有人遇到过吗 #242
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#242
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 @caodongminga on GitHub (Feb 16, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/367
@Zha-Miku commented on GitHub (Feb 16, 2025):
一样,我的是10卡的l40
@caodongminga commented on GitHub (Feb 16, 2025):
是不是只能30系和40系的架构的?L40应该是ada的
@adonishong commented on GitHub (Feb 16, 2025):
exactly same problem here ...
@20000419 commented on GitHub (Feb 16, 2025):
首先,git下载最新的源码。
然后,修改源码中的DeepSeek-V3-Chat-multi-gpu-4.yaml,和其他所有相关的yaml文件,将里面所有的KLinearMarlin换成KLinearTorch;
然后,你需要从ktransformer的源码进行编译,直到在本机编译成功。
然后,安装flash-attn,不会用到,但是不安装会报错。
然后,修改local_chat.py,将里面所有的flash_attention_2换成eager;
然后,运行locai_chat.py,务必按照官方教程的命令来,根据本机参数调整;
然后,在运行过程中检查内存占用,通过top命令观察其调用情况,单路cpu上的内存容量一定要大于模型的完整大小。(多路也只是复制)
最后,确认模型完整加载到内存,特定权重层完整加载到显存后,在chat界面尝试输入内容,观察是否还有报错出现。
@xialang2012 commented on GitHub (Feb 16, 2025):
我是4090也是一样的错误,windows下。
@20000419 commented on GitHub (Feb 16, 2025):
你是在本地编译的吗?
@meitianjinbu commented on GitHub (Feb 17, 2025):
两点修改不太明白,可以帮解释下为什么么?:KLinearMarlin换成KLinearTorch 和 将里面所有的flash_attention_2换成eager,我也是4090编译后报cuda dsa到错误。
@SongXiaoMao commented on GitHub (Feb 17, 2025):
你的模型是不是动态量化的?好像不支持1.58bit这样的动态量化模型
@xzq-xu commented on GitHub (Feb 22, 2025):
参考 #374 中 20000419 、ShinoharaHare 两位大佬的回答,修改一下配置文件(启动时指定哪个就修改哪个)和 forward_windows
例如ktransformers/optimize/optimize_rules/DeepSeek-V3-Chat-multi-gpu-4.yaml
启动时 使用 --optimize_rule_path 指定该文件,启动webui时 使用--optimize_config_path (这个他们说要改的,还没改)
@ErvinXie commented on GitHub (Dec 11, 2025):
This issue has been automatically closed due to inactivity for 60 days.
If you believe this issue is still relevant, please feel free to reopen it with additional information or context.
Thank you for your contribution to KTransformers!
此 issue 因超过 60 天无活动而被自动关闭。
如果您认为此问题仍然存在,请随时重新打开并提供更多信息或上下文。
感谢您对 KTransformers 的贡献!