mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #1442] [Bug] Cannot run Qwen3-30B-A3B at all #960
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#960
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 @moohr on GitHub (Jul 15, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/1442
Checklist
Describe the bug
Local chat fails and server does not open port.
Reproduction
Installation
I followed the one in the docs and also tried to compile my own version using
USE_BALANCE_SERVE=1 KTRANSFORMERS_FORCE_BUILD=TRUE bash install.shwhen the non-force-built version doesn't work.Models
I've tried 3 models, none of which can start:
Models metadata is in ./Qwen3-30B-A3B and the GGUF is in ./Qwen3-30B-A3B-GGUF/lmstudio-community/ (etc, I'm pretty sure it should be correct)
pip listPlease refer to https://gist.github.com/moohr/d8f0a595c3dcb77961c9c0d800abcb1d
Local-chat
Full log: https://gist.github.com/moohr/415f7daf67cabe9ed198efe1c64d0c1d
Server
Launch commands:
It seems to be stuck on sched_rpc. Using netstat, I can see there is a single open port, but not
10002. If I try tocurlthe port, it will just return403.Full log: https://gist.github.com/moohr/b1a45a3901a5128859d9b81c2c1085f3
rpc.log
I see a lot of issues where the rpc.log is being asked for, so I might as well just include it here
Config.yaml
https://gist.github.com/moohr/ac9d74a1960fc5f9f15b58ae1b9ba6b5
Some things I have tried so far:
/mnt/data/kvcbeing not present. I've changed the config.yaml to/home/mhr/ktransformers/kvcache/, as seen above.quant_configs.jsonThanks!
Environment
Running on Laptop
Ubuntu24.04 WSL+Conda
AMD Ryzen7 7745HX 64GB RAM
RTX4070L 8GB VRAM Cuda 12.6
Commit:
1677e90092Should be more than enough disk space
Edit: typo
@zhz292 commented on GitHub (Jul 21, 2025):
CUDA_VISIBLE_DEVICES=6 python ktransformers/server/main.py --model_path /home/models/Qwen3/Qwen3-30B-A3B/ --gguf_path /home/models/Qwen3/Qwen3-30B-A3B-Q4_K_M/ --architectures Qwen3MoeForCausalLM --cpu_infer 62 --port 10003 --backend_type balance_serve
可以试试不加额外参数
@igerry commented on GitHub (Jul 23, 2025):
python ktransformers/server/main.py
--port 8080
--architectures Qwen3MoeForCausalLM
--model_name Qwen3-235B-A22B-Instruct-2507
--model_path "/mnt/shared/models/Qwen3-235B-A22B-Instruct-2507-GGUF"
--gguf_path "/mnt/shared/models/Qwen3-235B-A22B-Instruct-2507-GGUF/Q8_0"
--optimize_config_path ktransformers/optimize/optimize_rules/Qwen3Moe-serve.yaml
--cpu_infer 32
--temperature 0.7
--top_p 0.8
--top_k 20
--repetition_penalty 1.05
--max_new_tokens 60000
# --cache_lens 247680
--chunk_size 256
--max_batch_size 4
--backend_type balance_serve
注销了额外参数(--cache_lens)后,0.3.2成功运行Qwen3-235B-A22B-Instruct-2507-GGUF。
非要加参数的话,可以尝试 cache_lens = max_new_tokens * max_batch_size / 2,
而不是通常的 cache_lens = max_new_tokens * max_batch_size。