mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #1151] [Bug] 2张2080TI 用KLinearTorch 的形式运行,聊天报错 #799
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#799
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 @GEK1 on GitHub (Apr 16, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/1151
Originally assigned to: @Azure-Tang on GitHub.
检查清单
问题描述
2张2080TI 用KLinearTorch 的形式运行,能跑起来,但是一聊天就报错
复现步骤
模型:unsloth/DeepSeek-R1-UD-Q2_K_XL
运行命令:
ktransformers --gguf_path /opt/ktransformers/data/DeepSeek-R1-UD-Q2_K_XL/ --model_path deepseek-ai/DeepSeek-R1 --model_name unsloth/DeepSeek-R1-UD-Q2_K_XL --optimize_config_path /opt/ktransformers/ktransformers/ktransformers/optimize/optimize_rules/DeepSeek-V3-Chat-multi-gpu_GEK.yaml --max_new_tokens 8192 --cpu_infer 64 --port 10012 --batch_size 5 --web True
环境信息
2080ti 22G *2
ubuntu 2204
Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz *2
@zx1896 commented on GitHub (Apr 16, 2025):
我刚刚也报了这个错误:TypeError: KLinearTorch.forward() takes 2 positional arguments but 3 were given
然后将y = self.generate_linear.forward(x, bsz_tensor)改为y = self.generate_linear.forward(x)就好使了
@GEK1 commented on GitHub (Apr 16, 2025):
我也是这样子改了,改完又报新的错了