b70-optimization-lab

Qwen3.6 27B AutoRound Handoff

Last updated: 2026-07-11

This is the bookmark for Intel/Qwen3.6-27B-int4-AutoRound on Intel Arc Pro B70.

July 11 Active Frontier

The promoted strict-valid record is the two-GPU webhie/AutoRound lane with FP16 target compute, pinned public oneCCL, captured intrinsic-MTP draft, and a graph-safe FlashAttention full target graph plus exact ReplaySSM transaction fusions: median 95.384867741895 tok/s, p10 86.97541500323224, mean 95.62305049791388. Exact cases, repeat128, baseline parity, and the 1K needle passed, and every strict prompt reported cached_tokens=0. The transaction path writes pending metadata in the recurrent kernel and writes pure-spec output directly to the final core view. Both swapped crossover assignments favored it. LocalMaxxing approved it as cmrh35ct50092mj01h7jgydqj; the prior 93.036 full-graph row is cmrgue7kl007pmj01yrkcyqmv.

The current result, bisection, and reproduction paths are:

Three July 11 follow-ups are now closed. Three statically bound compiled position-FC wrappers loaded and captured correctly but reached only 89.286 tok/s on the strict fixed suite, -4.03% versus the promoted record. A fresh four-GPU MTP3-specific position-FC training matrix improved offline accepted drafts/start by at most +0.1343, below its +0.2056 endpoint gate. See ../../experiments/qwen36-27b-autoround-int4-b70/notes/2026-07-11-static-position-mtp3-endpoint.md and ../../data/qwen36-27b-autoround-int4-b70-baselines/qwen27-position-fc-mtp3-4gpu-fixed-suite-20260711.json.

The old offline acceptance gate was subsequently found to include prompt positions: 850/2,338 starts were prefill rather than decode. The evaluator now starts at num_prompt_tokens - 1, recomputes a matched shared control, and labels the repeatedly used 12-prompt corpus as a selection set rather than an untouched promotion gate. On the corrected 1,488 decode starts, shared was 1.338710, prior all-step CE was 1.512097, and the best new margin objective was 1.516801. The seven-token margin over CE is noise and all candidates miss the estimated +0.205609 endpoint threshold. Conditional-prefix variants also failed to improve. Close loss-only position-FC adaptation; see ../../experiments/qwen36-27b-autoround-int4-b70/notes/2026-07-11-acceptance-objectives-and-decode-boundary.md.

The oneDNN W4A16 accumulation-mode lane is also closed. Its first diagnostic model incorrectly used TP1/BF16 global shapes; the corrected harness now defaults to record-matched per-rank TP2/FP16 shapes. Four-card rotation found bit-identical outputs and unstable sign-changing timing for f16, relaxed, and any, so no endpoint was justified. See ../../experiments/qwen36-27b-autoround-int4-b70/notes/2026-07-11-w4a16-accumulation-modes-no-win.md. The next source work must reduce the dominant target verifier body, not tune more drafter losses against the reused selection corpus.

Dense-MLP W4A16 gate/up + SwiGLU fusion was then implemented and closed at the real-weight graph microbenchmark gate. The control local MLP boundary measured 199.56-202.97 us/layer; the paired scalar-U4 candidate measured 454.25-457.53 us/layer and was not bit-exact. Standalone cached SwiGLU was only 11.1-12.2 us/layer, capping activation-only savings near 0.7 ms/step. Do not repeat a scalar paired-column W4 kernel; a future fusion must live in an equally fast systolic/JIT producer. See ../../experiments/qwen36-27b-autoround-int4-b70/notes/2026-07-11-w4a16-swiglu-fusion-no-win.md.

That Q/K reuse lane was subsequently implemented and is now closed no-win. On the corrected TP2/FP16 local shape, four cards measured the control at 36.66-36.79 us/layer and the precompute candidate at 44.91-45.42 us/layer (+22.52% to +23.46%). The precomputed consumer alone was slower and parity had small FP16-order differences, so even fusing away the separate prep launch cannot recover it. See ../../experiments/qwen36-27b-autoround-int4-b70/notes/2026-07-11-replayssm-qk-precompute-no-win.md.

The installed oneCCL Gold-2021.17.2 runtime failed the deterministic BF16 [4,5120] XPUGraph all-reduce oracle on 510/512 and 511/512 replays. The pinned public oneCCL parent b52f40c / libccl 4ceafd1 passed direct 256/256 and graph 512/512 on both ranks. Its direct draft all-gather also passed 512/512 blocking and async-wait graph replays; the actual draft blocker was Inductor’s functional wait_tensor. The default-off compiled all-gather custom-op patch fixes that lowering and enables draft graph capture. Small oneCCL ring/two-shot/generic-path tuning is now closed. Next, use the full-graph base to improve verified accepted tokens per step or fuse a measured GDN producer boundary; the target remains 100+ tok/s. For longer context, replace the short-context forced chunk-decode fallback with a graph-safe paged-decode launch first.

TP1 remains a separate active record class; it was not proven exhausted. A July 11 audit confirmed that the valid historical 68.236 tok/s TP1 high already captured the intrinsic MTP draft, while the TP2 custom all-gather fix has no world-size-one operation to improve. A swapped four-GPU TP1 crossover measured graph 65.164 versus eager 65.196 tok/s (-0.05%, no effect). Three subsequent isolated full-suite rows reached 65.359, 66.716, and 65.420 tok/s; all were strict fresh/cached-zero, and the first passed exact, repeat64, baseline parity, and the 1K check. Keep 68.236 as the valid historical high, but use 65.4-66.7 as the current reproduced band. Start TP1 from ../../experiments/qwen36-27b-autoround-int4-b70/scripts/run-tp1-current-candidate.sh and read ../../experiments/qwen36-27b-autoround-int4-b70/notes/2026-07-11-tp1-draftgraph-attribution-and-reconfirmation.md.

Current State

The lane has passed initial TP1 bring-up. The repository scaffolding exists, the pinned Intel snapshot is downloaded under /mnt/fast-ai/llm-cache/hf, and one B70 can serve the model through vLLM/XPU at max_model_len=2048.

Known-good smoke:

Current Intel-checkpoint baseline valid fresh-response result:

Prior TP1 fastest quality-gated variant:

Previous fastest quality-gated variant:

Current prompt-processing / long-context service baseline:

Current next-execution plan:

Prior Intel-checkpoint quality-gated runtime-quantized variant:

Service-oriented scoped INT8 variant:

Recent ladder controls:

Post-baseline follow-up:

Current synthetic diagnostic optimization state:

Fresh-gate instrumentation status:

Read in order:

  1. README.md
  2. reproduce.md
  3. validity-gates.md
  4. bugs-failed-paths.md
  5. ../../experiments/qwen36-27b-autoround-int4-b70/README.md
  6. ../../experiments/qwen36-27b-autoround-int4-b70/research-plan.md

Current Goal

Continue INT4 optimization without promoting synthetic scores: