Single 3090 with Unsloth Qwen 3.6 27B Q4, enabling MTP reduced my context size by almost 90% (or about 120k). Is this normal? (latest build) #23751
Replies: 5 comments 2 replies
0 replies
|
MTP requires more VRAM. Additionally it has its own KV-cache which also increase the cost. You can use |
1 reply
|
I have updated my command with helps from people of r/LocalLLaMA: llama-server \
--temp 0.6 \
--top-p 0.95 \
--top-k 20 \
--presence_penalty 0.0 \
--min-p 0.00 \
--gpu-layers all \
-m /home/eleung/huggingface/unsloth/Qwen3.6-27B-MTP-GGUF/Qwen3.6-27B-UD-Q4_K_XL.gguf \
-a llama.cpp \
--host 0.0.0.0 \
--cache-type-k q8_0 --cache-type-v q8_0 \
--chat-template-kwargs '{"preserve_thinking":true}' \
--flash-attn on \
--fit-target 64 \
--no-mmproj \
--ui-mcp-proxy \
--spec-type draft-mtp --spec-draft-n-max 1 \
--jinja --chat-template-file /home/eleung/huggingface/unsloth/Qwen3.6-27B-MTP-GGUF/chat_template.jinja \
--spec-draft-type-k q4_0 --spec-draft-type-v q4_0Params that increased my context size (ordered by effectiveness):
Now I have 97.7K context and 57t/s. Possible improvement:
|
0 replies
|
does this mean that it is just not worth it to use MTP - I really value a decent kv cache size (200k q4) |
1 reply
|
Possibly the reporting is looking at the smaller draft model and so misreporting this? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Note: Latest version of llama.cpp (b4c0549)
My run command:
llama-server \ --temp 0.6 \ --top-p 0.95 \ --top-k 20 \ --presence_penalty 0.0 \ --min-p 0.00 \ --gpu-layers all \ -m /home/eleung/huggingface/unsloth/Qwen3.6-27B-MTP-GGUF/Qwen3.6-27B-UD-Q4_K_XL.gguf \ -a llama.cpp \ --host 0.0.0.0 \ --cache-type-k q8_0 --cache-type-v q8_0 \ --chat-template-kwargs '{"preserve_thinking":true}' \ --flash-attn onThe built in web UI shows that context size is 137k.
By adding
spec-type draft-mtp --spec-draft-n-max 2, the reported context size drops to 14k. Is this normal?I was not expecting such a significant reduction in context.
All reactions