community Community submission — verify on your own hardware.
recipe by mamutou↗ · listed by localai-recipes
Initial version · updated 45 h ago · license Apache-2.0
chat code prefix-cache spec-decode patched-vllm split-kv single-gpu bf16-kv cuda-graphs mtp-speculative int8 hyperqwen mtp3 long-context
Qwen3.8-27B W8A16 (int8 g128, native MTP head, weights untouched) on ONE NVIDIA CMP 170HX 64GB (GA100/sm80, 190W), vLLM 0.32.0 + HyperQwen opt-170hx patch overlay: a Triton split-KV verify attention kernel (NSEG=16, bf16 KV) makes MTP verify scale with context. 3-run medians: single-stream decode 121 tok/s @4K (+65% vs vLLM 0.27.1 FA2), 110 @32K (+65%), 87 @128K (+382%), 69 @262K (+296%); 32K-in/128-out aggregates C4 220 / C8 218 tok/s; 262K cold prefill 335 s -> 218 s (1201 tok/s). 60-min 4-stream soak 0 failures / 0 Xid; quality 17/18 (one metric false positive). Recipe by mamutou (github.com/mamutou/cmp170hx-qwen27b-serving @ 018dba432c37).
Launch command
vllm serve /models/Qwen3.8-27B-W8A16 --served-model-name qwen3.8-27b --host 0.0.0.0 --port 18020 --gpu-memory-utilization 0.95 --max-model-len 262144 --max-num-seqs 8 --api-server-count 1 --language-model-only --attention-backend FLASH_ATTN --kv-cache-dtype bfloat16 --mamba-ssm-cache-dtype float16 --async-scheduling --max-num-batched-tokens 2048 --speculative-config '{"method":"mtp","num_speculative_tokens":3,"draft_sample_method":"probabilistic"}' --compilation-config '{"max_cudagraph_capture_size":32,"custom_ops":["+rms_norm","+silu_and_mul"],"cudagraph_mode":"PIECEWISE"}' --reasoning-parser qwen3 --enable-prompt-tokens-details --enable-auto-tool-choice --tool-call-parser qwen3_coder --tool-strict-level parameter --prefix-cache-retention-interval None --enable-prefix-caching --mamba-cache-mode align --max-num-batched-tokens 16384 --sse-keep-alive-interval 30Use this recipe with your agent
Paste this into any agent chat — it fetches and applies the recipe:
Fetch https://localairecipes.com/api/v1/recipes/qwen3-8-27b-w8a16-mtp3-split-kv-on-1x-cmp-170hx.json and apply the inference recipe it describes (engine flags, model, quant, context) to my setup. Ask before overwriting any existing config.Or fetch it directly:
curl -fsSL https://localairecipes.com/api/v1/recipes/qwen3-8-27b-w8a16-mtp3-split-kv-on-1x-cmp-170hx.jsonDownloads
- Reference https://github.com/mamutou/cmp170hx-qwen27b-serving018dba432c370946c74cd77359826abc54e71a18
- Reference https://github.com/aiultrayang/HyperQwen-CMP170hxb2e687e3a58f2b30d623c49905f41e8113e659d8
- Weights https://huggingface.co/lued/Qwen3.8-27B-INT8-W8A16-MTP7c12373712d1363e2b76655cb3332c9c124627d7
Revision notes
Initial version.
Revision history
Initial version.
Fork
Sign in to fork this recipe — a fork is your own copy; you own it and only you can update it.