This repro folder is the Qwen3.6 27B AutoRound INT4 entry point. It covers the initial one-B70 smoke, the prior TP1 recipes, and the current two-B70 strict fresh-response record.
The current record uses the webhie revision listed below plus target INT8
LM-head BF16 scales, draft INT4 LM-head BF16 scales, ReplaySSM exact state,
MTP3, captured target and draft PIECEWISE graphs, and pinned public
oneCCL/libccl. The newer communication runtime is required: installed oneCCL
Gold-2021.17.2 fails the packed-verifier graph oracle on nearly every replay.
cd /home/steve/llm-optimizations
ONECCL_INSTALL_DIR=/mnt/usb-models/llm-runtime/oneccl-4ceafd1-b70 \
experiments/qwen36-27b-autoround-int4-b70/oneccl_ll256/build-public-oneccl.sh
GPU_INDEX=2,3 PORT=19445 QUALITY_REPEAT_RUNS=128 \
experiments/qwen36-27b-autoround-int4-b70/scripts/run-tp2-oneccl-public4ce-draftgraph-capturegdn-fp16-candidate.sh
Promoted result: graph-safe FlashAttention full-target capture, median
93.036242 tok/s, p10 82.845516, mean 92.773145. Exact cases, repeat128,
baseline parity, the 1K needle, and strict cold/cached-zero rules passed. The
candidate replaces 33 target PIECEWISE segments with one full four-row graph;
two-way crossover measured a +2.93% candidate/control mean gain.
See
../../results/qwen36-27b-autoround-int4-b70/tp2-fp16-graphsafe-flash-fullgraph-20260711.json
and
../../experiments/qwen27_graphsafe_flash_attention/README.md.
LocalMaxxing approved the record as cmrgue7kl007pmj01yrkcyqmv.
webhie/Qwen3.6-27B-int4-AutoRound, revision
f5750c90b3776db658594df5fe8051098226dd8e;Intel/Qwen3.6-27B-int4-AutoRound, revision
abc86de19eb1ebbf6a7df4582341325c22ddcb7d;bits=4, group_size=128, symmetric,
packing_format=auto_round:auto_gptqcd /home/steve/llm-optimizations
experiments/qwen36-27b-autoround-int4-b70/scripts/download-model.sh
GPU_INDEX=0 PORT=19410 MAX_MODEL_LEN=2048 \
experiments/qwen36-27b-autoround-int4-b70/scripts/serve-vllm.sh
In another shell:
cd /home/steve/llm-optimizations
BASE_URL=http://127.0.0.1:19410/v1 MODEL=qwen36-27b-int4-autoround \
experiments/qwen36-27b-autoround-int4-b70/scripts/smoke-openai.sh
Known passed smoke:
/mnt/fast-ai/bench-results/qwen36-27b-autoround-int4-b70/servers/tp1-gpu0-port19410-20260703T012317Z.log;../../data/qwen36-27b-autoround-openai-smoke-20260703T013020Z.json;105/108 accepted draft tokens.Current Intel-checkpoint strict baseline:
abc86de19eb1ebbf6a7df4582341325c22ddcb7d;qwen3_next_mtp,
num_speculative_tokens=3;COMPILATION_CONFIG='{"cudagraph_mode":"PIECEWISE","max_cudagraph_capture_size":8}';MAX_NUM_BATCHED_TOKENS=1024, MAX_MODEL_LEN=2048, thinking disabled;VLLM_XPU_GDN_PROMOTE_ACCEPTED_SPEC_STATE=1;VLLM_XPU_GDN_NONSPEC_POSTPROCESS_ACCEPTED_STATE=0;cached_tokens=0 for all 12
requests, return_token_ids=true;53.522 tok/s for generated tokens 1-100 after TTFT,
p10 48.406, mean 53.986, TTFT median 628.9 ms.Evidence:
../../data/qwen36-27b-autoround-int4-b70-baselines/intel-mtp3-xpugraph1-cg8-promotesource-noacceptedpost-repeat2-realistic128-chat-tokenids-qwensuite-20260703T044519Z.json
../../results/qwen36-27b-autoround-int4-b70/promote-source-noacceptedpost-20260703.json
The prior fastest TP1 practical variant is separate from the original BF16-LM-head AutoRound quantization:
../../patches/qwen36-27b-autoround-int4-b70/vllm-qwen27-active-source-diff-replayssm-draftint4-record-20260706.patch;../../patches/qwen36-27b-autoround-int4-b70/vllm-xpu-kernels-active-diff-replayssm-slotcopy-20260706.patch
(parity-tested but not the endpoint speed source);68.236 tok/s, p10 62.317, mean 67.830,
TTFT median 479.146 ms, cached_tokens=0 on every prompt;68.481 one-off native-slot-copy smoke, 66.871 native
slot-copy confirm, and 67.300 PyTorch slot-management fallback control;pass_all=true, baseline_match_all=true,
repeat_pass=true;cmr9atqb800msqr01u760xh0t;../../results/qwen36-27b-autoround-int4-b70/webhie-int8lmhead-bf16scale-draftint4-replayssm-current-confirm-20260706.json;../../experiments/qwen36-27b-autoround-int4-b70/notes/2026-07-06-replayssm-draftint4-valid-record-and-slotcopy-no-win.md.The previous fastest practical variant was webhie AutoRound W4A16 + runtime
INT8 LM-head (BF16 scales) at 65.276 tok/s, LocalMaxxing
cmr5iu3gk00bfq901nidgcana; keep
../../results/qwen36-27b-autoround-int4-b70/webhie-int8-lmhead-bf16scale-20260703.json
as the superseded baseline for attribution.
For the exact current max-throughput row, leave VLLM_XPU_LM_HEAD_INT8_SCOPE
unset (default all), set VLLM_XPU_LM_HEAD_INT8_SCALE_DTYPE=bf16, enable
the ReplaySSM/draft-INT4 flags documented in the result packet, and keep
VLLM_XPU_GDN_REPLAYSSM_SLOT_MGMT_TORCH_FALLBACK=1 for the conservative
headline unless retesting native slot-copy as an attribution experiment.
For service/max-context experiments, VLLM_XPU_LM_HEAD_INT8_SCOPE=target
remains an attribution idea, not a promoted webhie BF16-scale service recipe:
the older Intel-checkpoint target-only lane passed quality at 61.898 tok/s,
but the webhie BF16-scale target-only follow-up failed repeat32 once
(blue, green, red). Revalidate target-only for the exact checkpoint/revision
and scale dtype before use. See
../../experiments/qwen36-27b-autoround-int4-b70/notes/2026-07-03-int8-lmhead-scope-attribution.md
and
../../experiments/qwen36-27b-autoround-int4-b70/notes/2026-07-03-scale-scope-followup-no-headline-win.md.
Run one strict check for this variant:
cd /home/steve/llm-optimizations
LABEL=qwen27-webhie-int8lmhead-bf16scale-mtp3-cg8-realistic128-chat-tokenids-qwensuite \
MODEL_DIR=/mnt/fast-ai/llm-cache/hf/hub/models--webhie--Qwen3.6-27B-int4-AutoRound/snapshots/f5750c90b3776db658594df5fe8051098226dd8e \
GPU_INDEX=0 PORT=19410 \
VLLM_XPU_LM_HEAD_INT8=1 \
VLLM_XPU_LM_HEAD_INT8_SCALE_DTYPE=bf16 \
scripts/run-qwen36-27b-autoround-vllm-candidate.sh
Run a target-only service experiment (diagnostic until it passes a matching quality gate):
cd /home/steve/llm-optimizations
LABEL=qwen27-int8lmhead-targetonly-mtp3-cg8-realistic128-chat-tokenids-qwensuite \
GPU_INDEX=0 PORT=19410 \
VLLM_XPU_LM_HEAD_INT8=1 \
VLLM_XPU_LM_HEAD_INT8_SCOPE=target \
scripts/run-qwen36-27b-autoround-vllm-candidate.sh
Run the full quality gate after a speed pass:
cd /home/steve/llm-optimizations
MODEL_DIR=/mnt/fast-ai/llm-cache/hf/hub/models--webhie--Qwen3.6-27B-int4-AutoRound/snapshots/f5750c90b3776db658594df5fe8051098226dd8e \
GPU_INDEX=0 PORT=19410 MAX_MODEL_LEN=2048 MAX_NUM_BATCHED_TOKENS=1024 \
QWEN36_27B_ENABLE_MTP=1 NUM_SPECULATIVE_TOKENS=3 \
QWEN36_27B_ENABLE_XPU_GRAPH=1 \
VLLM_XPU_GDN_PROMOTE_ACCEPTED_SPEC_STATE=1 \
VLLM_XPU_GDN_NONSPEC_POSTPROCESS_ACCEPTED_STATE=0 \
VLLM_XPU_LM_HEAD_INT8=1 \
VLLM_XPU_LM_HEAD_INT8_SCALE_DTYPE=bf16 \
COMPILATION_CONFIG='{"cudagraph_mode":"PIECEWISE","max_cudagraph_capture_size":8}' \
experiments/qwen36-27b-autoround-int4-b70/scripts/serve-vllm.sh
/home/steve/.venvs/vllm-xpu/bin/python scripts/qwen36-text-quality-suite.py \
--base-url http://127.0.0.1:19410 \
--model qwen36-27b-int4-autoround \
--tokenizer /mnt/fast-ai/llm-cache/hf/hub/models--webhie--Qwen3.6-27B-int4-AutoRound/snapshots/f5750c90b3776db658594df5fe8051098226dd8e \
--repeat-runs 32 \
--long-context-tokens 1024 \
--chat-template-kwargs-json '{"enable_thinking":false}' \
--baseline-json data/qwen36-27b-autoround-int4-b70-baselines/quality-webhie-int8lmhead-mtp3-cg8-repeat32-ctx1024-20260703T170941Z.json
realistic-suite-v1.json is the Qwen27 copy of the fixed cold-response suite
used for promotion-style checks. It intentionally uses the same practical
prompt shapes as the Gemma lane, but has its own suite ID:
qwen36-27b-autoround-int4-b70-realistic-v1
Launch the current best service:
cd /home/steve/llm-optimizations
MODEL_DIR=/mnt/fast-ai/llm-cache/hf/hub/models--webhie--Qwen3.6-27B-int4-AutoRound/snapshots/f5750c90b3776db658594df5fe8051098226dd8e \
GPU_INDEX=0 PORT=19410 MAX_MODEL_LEN=2048 MAX_NUM_BATCHED_TOKENS=1024 \
QWEN36_27B_ENABLE_MTP=1 NUM_SPECULATIVE_TOKENS=3 \
QWEN36_27B_ENABLE_XPU_GRAPH=1 \
VLLM_XPU_GDN_PROMOTE_ACCEPTED_SPEC_STATE=1 \
VLLM_XPU_GDN_NONSPEC_POSTPROCESS_ACCEPTED_STATE=0 \
VLLM_XPU_LM_HEAD_INT8=1 \
VLLM_XPU_LM_HEAD_INT8_SCALE_DTYPE=bf16 \
COMPILATION_CONFIG='{"cudagraph_mode":"PIECEWISE","max_cudagraph_capture_size":8}' \
experiments/qwen36-27b-autoround-int4-b70/scripts/serve-vllm.sh
Run the strict realistic-suite gate against that service:
python3 scripts/bench-openai-realistic-suite.py \
--base-url http://127.0.0.1:19410 \
--model qwen36-27b-int4-autoround \
--api-mode chat \
--suite repro/qwen36-27b-autoround-int4-b70/realistic-suite-v1.json \
--max-tokens 128 \
--metric-tokens 100 \
--return-token-ids \
--request-extra-json '{"chat_template_kwargs":{"enable_thinking":false}}'
The primary metric comes from streamed token-id receipt timestamps. Text chunks are grouped and must not be treated as token counts.