b70-optimization-lab

Qwen27 DFlash + SYCL Single-B70 Optimization Lane

Created: 2026-07-12

Closed as active lane: 2026-07-13. The one-B70 100 tok/s and multi-B70 single-session 200 tok/s objectives were not reached. The final strict Q4_0/DFlash record is 47.818818 tok/s, approved by LocalMaxxing as cmrjbx8bc02g8mj01yzz2v701. Read the consolidated closure and transfer note before reopening this lane. Unfinished QKVZAB, Q5_K GDN-output, and exact-Q4 trace artifacts are preserved as unvalidated research, not promoted wins.

Goal: maximum decode tok/s for Qwen3.6-27B on a single Intel Arc Pro B70 (608 GB/s, 32 GB GDDR6, Xe2/Battlemage), using GGUF + llama.cpp/SYCL + DFlash speculative decoding. Apples-to-apples comparison with hipfire’s 213 tok/s single-R9700 result.

This is a new research path, separate from the existing experiments/qwen36-27b-autoround-int4-b70 (vLLM/XPU AutoRound INT4) and experiments/qwen36-27b-mtp-gguf-q4-b70 (llama.cpp/SYCL MTP-only GGUF) lanes.

Plan

The controlling requirements and ordered execution plan is:

../../plans/2026-07-12-qwen27-tp1-max-speed-requirements-and-execution.md

It fixes the target at TP1 on one B70, uses the four cards as independent TP1 workers, defines the persistent cache/model-pack architecture, and provides the validation ladder, kill rules, fusion order, Xe2 verifier plan, and MTP/DFlash policy.

The earlier exploratory plan remains at ../../plans/2026-07-12-qwen27-dflash-sycl-single-b70-plan.md as historical context. It is superseded where the controlling plan differs.

Identity

Prior Work In This Repo

Current July 13 State

Native DFlash has crossed the first local high-ceiling milestone. The earlier near-zero acceptance was not evidence that DFlash or Q4 was unusable. It came from Q8_0 native-draft KV: the missing FA-on/F16-KV control restored 94.3% acceptance and 73.47 tok/s. Flash attention is valid for the DFlash graph when draft KV is F16; no DFlash-specific FA bypass is required.

The importance is architectural: DFlash remains a credible route to the 100/200 tok/s objectives, and the next bottleneck is now measured as the generic small-M target verifier. Do not spend the next iteration optimizing the roughly 1 ms feature-injection path ahead of the verifier. Full evidence: ../../notes/2026-07-13-qwen36-native-dflash-sycl-fa-isolation.md.

Prior July 12 foundation

TP1 And Cache Requirements

The first Phase 1 implementation is in harness/. It provides a validated four-worker assignment, dry-run-safe persistent server control, explicit model-pack and golden-corpus manifests, and a populated checksum-addressed disk cache plus atomic shared-RAM stage for all 187 promoted Xe2 M6 gate/up and down packs. A guarded protected llama.cpp loader binding now consumes a helper-deep-validated stage with CPU-pack fallback; device-state restore is not implemented.

Implementation and validation are recorded in notes/2026-07-12-phase1-persistent-harness-foundation.md.

Cold-Start Validation Policy

All headline results must be cold-start validated:

Diagnostic sweeps may use synthetic or repeated prompts, but headline submissions require the strict cold gate. DFlash acceptance is genre-conditional (code prompts get 7-9 accepted tokens; prose gets 1.2-1.7), so report results by genre or use a mixed realistic suite that reflects the target workload.