mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #1081] v0.2.4post1 正确的 运行命令是什么 #760
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#760
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 @113514089 on GitHub (Apr 8, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/1081
v0.2.4post1 对运行命令有什么要求
出现了 KeyError: 'async_server' 这个问题,运行命令是这个
PYTHONPATH="$PYTHONPATH" TORCH_CUDA_ARCH_LIST="8.9"
ktransformers --model_path deepseek-ai/DeepSeek-V3-0324
--gguf_path /home/uxj/DeepSeek-V3-0324_Q4KM/Q4_K_M/
--port 10002
--optimize_config_path /home/uxj/ktrun/workspace/ktransformers/optimize/optimize_rules/DeepSeek-V3-Chat.yaml
--use_cuda_graph
--temperature 0.5
--cpu_infer 65
--port 10002
--max_new_tokens 8192
在0.23版本运行正常
还是说需要修改文件。视频看了,没太明白,视频里面有不合理的地方,能详细说明吗?
我看了,有两个地方要改,一个路径名称要求,路径名称规范是什么?能明确吗?
还有要修改一个文件,但是具体修改什么东西,没看明白
@sunhaoyu-1990 commented on GitHub (Apr 8, 2025):
你可以参考这个https://github.com/kvcache-ai/ktransformers/blob/main/doc/en/balance-serve.md
里边说到运行命令确实是变更了,如下:
@113514089 commented on GitHub (Apr 8, 2025):
PYTHONPATH="$PYTHONPATH" TORCH_CUDA_ARCH_LIST="8.9"
python ktransformers/server/main.py
--model_path deepseek-ai/DeepSeek-V3-0324
--gguf_path /home/uxj/DeepSeek-V3-0324_Q4KM/Q4_K_M/
--optimize_config_path /home/uxj/kt0324/ktrun/workspace/ktransformers/optimize/optimize_rules/DeepSeek-V3-Chat-serve.yaml
--cache_lens 32768
--chunk_size 256
--max_batch_size 4
--backend_type balance_serve
--port 10002
--max_new_tokens 8192
命令改了,还是不行。
File "/home/uxj/kt0324/ktrun/workspace/ktransformers/server/main.py", line 11, in
from ktransformers.server.args import ArgumentParser
File "/home/uxj/kt0324/ktrun/workspace/ktransformers/server/args.py", line 2, in
from ktransformers.server.backend.args import ConfigArgs, default_args
File "/home/uxj/kt0324/ktrun/workspace/ktransformers/server/backend/args.py", line 79, in
cfg = Config()
^^^^^^^^
File "/home/uxj/kt0324/ktrun/workspace/ktransformers/server/config/singleton.py", line 26, in call
cls._instances[cls] = super(Singleton, cls).call(*args, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/uxj/kt0324/ktrun/workspace/ktransformers/server/config/config.py", line 187, in init
self.sched_strategy = cfg["async_server"]["sched_strategy"]
~~~^^^^^^^^^^^^^^^^
KeyError: 'async_server'
@qiyuxinlin commented on GitHub (Apr 8, 2025):
您好,删除您本地 ~/.ktransformers 重新运行下即可
@113514089 commented on GitHub (Apr 8, 2025):
谢谢大神的解答。
删除后。出现了这 import sched_ext
ModuleNotFoundError: No module named 'sched_ext'
@qiyuxinlin commented on GitHub (Apr 8, 2025):
按照这个文档安装的吗?
https://github.com/kvcache-ai/ktransformers/blob/main/doc/en/balance-serve.md
@113514089 commented on GitHub (Apr 8, 2025):
用的还是12.4的环境 0.23能跑的环境。需要重新安装所有吗。
@qiyuxinlin commented on GitHub (Apr 8, 2025):
是的,最好开一个 conda 环境重新装一遍
@zhenjieliang commented on GitHub (Apr 9, 2025):
我的系统是manjaro,参照安装教程中,安装到libtbb-dev libssl-dev libcurl4-openssl-dev libaio1 libaio-dev libfmt-dev libgflags-dev zlib1g-dev patchelf,使用manjaro系统下的sudo pacman -S libssh2 curl openssl之后,就让原有的软件降级了,现在安装任何包都报错,
pacman: symbol lookup error: /usr/lib/libcurl.so.4: undefined symbol: libssh2_session_callback_set2
正在考虑重装系统了,搞不定
@yeungtuzi commented on GitHub (Apr 11, 2025):
不行就试试docker吧
@lililolo0927 commented on GitHub (Apr 12, 2025):
Try to change model dir ?
@lergliu commented on GitHub (Apr 15, 2025):
docker运行ktransformers:v0.2.4post1-AVX512这个镜像,报ImportError: libsched.so: cannot open shared object file: No such file or directory,有大佬知道什么原因吗