mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #757] [Bug] #547
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#547
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 @liugu2023 on GitHub (Mar 1, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/757
检查清单
问题描述
在运行ktransformers时,运行时报错Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/archive/liugu/ds/ktransformers/ktransformers/local_chat.py", line 183, in
fire.Fire(local_chat)
File "/archive/liugu/ds/ds/lib/python3.11/site-packages/fire/core.py", line 135, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/archive/liugu/ds/ds/lib/python3.11/site-packages/fire/core.py", line 468, in _Fire
component, remaining_args = _CallAndUpdateTrace(
^^^^^^^^^^^^^^^^^^^^
File "/archive/liugu/ds/ds/lib/python3.11/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/archive/liugu/ds/ktransformers/ktransformers/local_chat.py", line 110, in local_chat
optimize_and_load_gguf(model, optimize_config_path, gguf_path, config)
File "/archive/liugu/ds/ktransformers/ktransformers/optimize/optimize.py", line 133, in optimize_and_load_gguf
gguf_loader = GGUFLoader(gguf_path)
^^^^^^^^^^^^^^^^^^^^^
File "/archive/liugu/ds/ktransformers/ktransformers/util/custom_gguf.py", line 205, in init
self.load_gguf(f)
File "/archive/liugu/ds/ktransformers/ktransformers/util/custom_gguf.py", line 213, in load_gguf
assert f.read(4) == b'GGUF'
^^^^^^^^^^^^^^^^^^^^
AssertionError 但GGUF文件格式正确
复现步骤
我使用了以下命令python -m ktransformers.local_chat --model_path /archive/liugu/ds/DeepSeek-R1-Distill-Llama-70B --gguf_path /archive/liugu/ds/DeepSeek-R1-Distill-Llama-70B-GGUF ,运行的是Deepseek R1 70B
环境信息
操作系统:Debian GNU/Linux 12 (bookworm)
GPU: Tesla P100
CPU: Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz
pytorch版本:12.5
cuda版本:11.8