mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #1330] 我想要普通的transformers方式运行模型,但是运行ktransformers命令行时加入--backend_type transformers参数后发生报错 #896
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#896
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 @huxiang088 on GitHub (May 21, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/1330
检查清单
问题描述
我想要普通的transformers方式运行模型,但是运行ktransformers命令行时加入--backend_type transformers参数后发生报错
报错文件在: ktransformers/server/backend/interfaces/transformers.py
信息如下:
AttributeError: 'StaticCache' object has no attribute 'remove_suffix' :行数在296
AttributeError:'QWen2ForCausalLM' 对象没有属性 '_get_logits_warper' :行数在225,此错误在后端类型为ktransformers开启服务api后也会发生
复现步骤
DeepSeek-R1-Distill-Qwen-7B
环境信息
cpu:i7-8086k
gpu:rtx 3080
环境:windows-wsl