b70-optimization-lab

Qwen 35B on 4x B70 Optimization Options

Created: 2026-06-20

Target context: Qwen3.6-35B-A3B / Qwen 35B on 4x Intel Arc Pro B70, currently using vLLM-XPU and local XPU kernel work. No implementation is proposed here; this is a prioritized research-to-implementation menu.

Ground Rules

Latest Deep-Dive Additions

The June 20 deeper pass changed the priority order in three ways:

The immediate implication: before deeper local kernel invention, do a controlled upstream-delta bakeoff and cherry-pick review. It is likely cheaper than rediscovering fixes already landing upstream.

Priority 0 - Highest-Value Leads

0. Bake off upstream XPU kernel/runtime deltas before new local tuning

Why it can help:

What is involved:

Validation gate:

Main sources:

Risk:

0b. Bake off upstream vLLM XPU control-plane deltas

Why it can help:

What is involved:

Validation gate:

Main sources:

Risk:

0c. Stabilize and fingerprint B70 runtime/topology before TP4 speed work

Why it can help:

What is involved:

Validation gate:

Main sources:

Risk:

0d. Bake off Triton-XPU attention, FP8, and grouped-GEMM backend deltas

Why it can help:

What is involved:

Validation gate:

Main sources:

Risk:

0e. Add PyTorch XPU and XCCL canaries to the B70 stack gate

Why it can help:

What is involved:

Validation gate:

Main sources:

Risk:

1. Port ReplaySSM GDN spec verification to XPU

Why it can help:

What is involved:

Validation gate:

Main sources:

Risk:

2. Make the W8A8 MoE layerlet/workspace path real on endpoint

Why it can help:

What is involved:

Validation gate:

Main sources:

Risk:

3. Port DFlash support as an XPU verifier-proposer path, not as a shortcut

Why it can help:

What is involved:

Validation gate:

Main sources:

Risk:

Priority 1 - Strong Follow-Ups

4. Fix async + PIECEWISE graph replay correctness

Why it can help:

What is involved:

Main sources:

Risk:

5. Remove or overlap sampled-token output materialization

Why it can help:

What is involved:

Main sources:

Risk:

6. Route-aware grouped GEMM and B70-specific MoE autotune

Why it can help:

What is involved:

Main sources:

Risk:

6b. Port narrow upstream vLLM GDN/Mamba performance patches

Why it can help:

What is involved:

Validation gate:

Main sources:

Risk:

7. Re-evaluate TP, EP, PP, and data-parallel layouts for c1 decode

Why it can help:

What is involved:

Main sources:

Risk:

8. Fix worker-to-device visibility and XPU communicator path

Why it can help:

What is involved:

Main sources:

Risk:

Priority 2 - Useful, But Not Current Lead

9. Clean stack/BKC bakeoff

Why it can help:

What is involved:

Main sources:

Risk:

10. OpenVINO GenAI, llama.cpp SYCL, and archived IPEX-LLM as pattern sources

Why it can help:

What is involved:

Main sources:

Risk:

11. TurboQuant or quantized KV cache

Why it can help:

What is involved:

Main sources:

Risk:

Known Low-Value Or Already-Screened Directions

Suggested Next Research Actions

  1. Produce a ReplaySSM XPU port checklist from local /home/steve/src/ReplaySSM and SGLang PR 28695. Output should list tensors, shapes, state ownership, and which parts become torch XPU vs SYCL later.
  2. Build the upstream-delta matrix: local vllm-xpu-kernels, upstream v0.1.10, PR 392, PR 401, PR 422, PR 429, PR 424, and the Jason graph-padded metadata commit. Add the medium-value fork leads from fork-audit-2026-06-20.md. Mark each as already present, cleanly cherry-pickable, conflicting, superseded, pattern-only, or runtime-only.
  3. Finish the W8A8 full-layerlet gate trace and prove whether the endpoint can call qwen36_moe_w8a8_full_layerlet.
  4. Make a DFlash XPU port checklist: Triton kernels, non-causal attention, graph-padded metadata, hidden-state transfer, GDN verifier, and canary plan.
  5. Capture route-window fixtures that can feed grouped GEMM/route-aware MoE microbenchmarks.
  6. Build a clean-stack comparison table from Intel AI containers, local stack, LocalMaxxing public rows, Puget’s B70 article, and upstream vLLM-XPU kernel release notes.
  7. Add the PyTorch/XPU stack canary and XCCL/DeviceMesh split probe from pytorch-sglang-platform-audit-2026-06-20.md before the next TP4 stack comparison.
  8. Mine SGLang PR 28723 into a concrete MoE tuning harness checklist using captured Qwen route histograms, explicit XPU resources, and XPUGraph timing.