Date: 2026-07-13
Status: active planning and low-cost bring-up
This is the controlling plan for the DeepSeek V4 Flash lane on four Intel Arc Pro B70 32 GB GPUs. It replaces the earlier assumption that the full Intel AutoRound checkpoint could be taken directly into a TP4 smoke test.
Proceed with the vLLM/XPU program, but do not commit the large-model investment
to a predetermined K180 W4A16 artifact.
The user explicitly authorized downloading a runnable candidate while the
low-cost gates continue. Research found a lower-risk first executable artifact:
0xSero/DeepSeek-V4-Flash-180B revision
7c360e1cd4a5168099dbc54d16d929bf6df04990 is a uniform-K160, standard
safetensors checkpoint with native packed MXFP4 experts and 40 experts per TP4
rank. It avoids heterogeneous loader work and is therefore the first smoke and
performance candidate.
This does not replace the quality plan. The public K160 prunes hash layers 0-2, its referenced raw observations are unavailable, and its rank-discounted top-k frequency is not the REAP paper metric. It must not be called the smartest fitting variant until it passes the frozen quality suite. The official source, teacher evidence, and a true-REAP hash-preserved nested pack remain required for the final quality decision. The official-source transfer was paused before any weight shard completed so bandwidth could prioritize K160; it remains resumable.
The program will:
deepseek-ai/DeepSeek-V4-Flash revision
60d8d70770c6776ff598c94bb586a859a38244f1 as the immutable source;bullerwins/DeepSeek-V4-Flash-GGUF IQ3_XXS revision
2be25f699d3efe806def93b0ae5dc632a824abb1 as a secondary all-expert behavior
control, not as source truth or the assumed production runtime;This is a strategic go and a tactical no-go on downloading, pruning, or requantizing the full checkpoint before the small gates below pass.
DeepSeek V4 Flash is the smartest DeepSeek V4 variant that is even plausibly in scope for this hardware. The official model is 284B total / 13B activated per token. DeepSeek V4 Pro is far outside the memory envelope. The official Flash checkpoint uses native MXFP4 experts and mostly FP8 dense weights.
vLLM plus the Intel XPU kernel package is the only current route that combines:
It is not turnkey. DeepSeek V4 is absent from the current optimized XPU model matrix, its MXFP4/W4A16 loader work is still incomplete upstream, and the current model code assumes a global expert count. Those are precisely the risks this plan tests before the expensive model build.
Primary source pointers:
n_routed_experts, so a correct implementation needs per-layer
expert counts and exact old-ID to new-ID mappings.XPUExpertsWNA16 for symmetric INT4 or the native MXFP4
fused MoE path. A successful load with BF16 expansion is a failed gate.The exact source tensor-header audit is recorded in
../experiments/deepseek-v4-flash-reap-xpu-b70/data/fit-audit-20260713.json.
The official source occupies about 148.648 GiB of tensor payload. The direct
native-MXFP4 projection below keeps the hash layers and all non-routed tensors,
removes the attached MTP tensors for the initial nonspeculative lane, and
scales only routed experts in layers 3-42:
| Later-layer experts | Projected tensor payload |
|---|---|
| K128 | 81.710 GiB |
| K144 | 89.679 GiB |
| K160 | 97.648 GiB |
| K168 | 101.632 GiB |
| K176 | 105.617 GiB |
| K180 | 107.609 GiB |
| K192 | 113.585 GiB |
| K200 | 117.570 GiB |
These are file-payload projections, not promises of resident memory. Loader repacking, duplicated scales, collectives, activations, KV cache, kernel scratch, and graph pools must be measured. K160 is the first full artifact; K180 is only an upper candidate.
The initial table excludes the attached MTP tensors. A same-K MTP projection is 99.640 GiB at K160, 103.724 GiB at K168, 107.808 GiB at K176, and 109.850 GiB at K180. Preserving the full 256-expert MTP adds 3.188 GiB to the base artifact. Stage 8 therefore requires a fresh capacity decision and may force a step down in K.
The full Intel W4A16 AutoRound checkpoint is 155,590,474,496 bytes (144.905 GiB) across its current safetensor shards. It cannot be resident on this host and must not be downloaded as the deployment candidate.
vllm-xpu-kernels; do not develop in the protected dirty Qwen trees.cached_tokens=0.Use content-addressed artifacts so model construction happens once and kernel iteration remains fast:
/mnt/usb-models/llm-cache/hf;/mnt/fast-ai/llm-models/deepseek-v4-flash-xpu;/mnt/fast-ai/bench-results/deepseek-v4-flash-xpu;experiments/deepseek-v4-flash-reap-xpu-b70/data/;experiments/deepseek-v4-flash-reap-xpu-b70/patches/;experiments/deepseek-v4-flash-reap-xpu-b70/results/experiment-ledger.md.Cache keys must include source revision, REAP manifest hash, candidate K, packing format, group size, tensor layout version, runtime revision, and kernel ABI revision. Preserve:
Storage is itself a gate. On 2026-07-13 the external archive had about 2.5 TiB free, while the internal NVMe had only about 11 GiB free. Before Stage 4, require at least 800 GiB free in the archive workspace and make a reviewed decision that preferably frees at least 140 GiB internally for the hot pack and compile/runtime cache. Do not delete or relocate existing artifacts ad hoc.
The executable acceptance details live in
../experiments/deepseek-v4-flash-reap-xpu-b70/benchmarks/stage-gates.md.
Create clean DeepSeek-specific worktrees and an environment pinned to exact vLLM, XPU-kernel, PyTorch XPU, oneAPI, oneCCL, and driver revisions. Record the four-card topology and usable memory. Do not reset or clean the Qwen trees.
Exit: clean builds import on B70, all identities are captured, and the source model revisions above are frozen.
Without full model weights, exercise H=4096, I=2048, top-k=6, BF16 activations, M=1/4/8 and local-expert counts 40/42/44/45/64 where applicable. Compare:
Measure correctness, bytes, latency, graph capture/replay, and backend identity.
Exit: at least one low-bit path is correct, uses the Xe2 native fused kernel, replays without rerecording, does not materialize full BF16 expert weights, and is at least 1.5x faster than the explicit BF16 expert reference at both M=1 and M=4. Record M=8, but do not let it hide a weak single-session path.
Stop: neither low-bit path can enter the native kernel or reusable graph path.
Patch and test per-layer expert counts:
tid2eid, router rows, correction metadata, and exact REAP maps.Construct all 43 layers with dummy weights. Verify selectors and parameter mappings without downloading full shards.
Exit: dummy TP4 construction passes, every layer has the intended router and expert shape, and native quantized methods are asserted in tests.
Run isolated correctness fixtures for sparse MLA, FP8 KV layout, compressor, indexer, inverse RoPE, hash routing, mHC, collectives, and sampler. Test eager and graph modes separately.
Exit: all fixtures pass against reference implementations and no CUDA-only path is entered.
Before the source download, either validate a complete reproducible public old-ID ranking/map or commit a calibration-v1 plan with prompt hashes, domain weights, REAP metric, tokenizer/source revision, seeds, and runner revision. The K candidates must be nested prefixes of one ranking, and hash layers 0-2 remain unpruned. Freeze the quality suite, scoring, critical cases, generation settings, and numerical tolerances before candidate outputs are visible.
Exit: mapping provenance and calibration/quality identities are complete and reproducible.
Only after Stages 1-3.5 pass, download the frozen official source once to the archive cache. Build one deterministic pruning/packing tool that can emit K160/K168/K176/K180 from the same ranking manifest without recalibration. Write directly into the runtime’s preferred per-rank layout; avoid repeated load-time transforms. Derive or validate the nested ranking once on a frozen calibration mix covering code, tool use, research/knowledge, math/science, planning, and general QA. A public REAP selection may seed the ranking only if its full old-ID mapping and calibration provenance can be reproduced.
Exit: the K160 manifest, checksums, tensor inventory, exact size, and one-layer packed parity all pass.
Capture official-source teacher logits/task results on a fixed tractable quality subset before pruning. This may use a slow streamed/offloaded reference path and is never a performance result.
Load K160 at 8K with speculation, prefix caching, and performance experiments disabled. Prove full residency and capture per-rank memory before and after warm graph capture. Run one token, p64/n16, deterministic routing coverage, greedy decode, and degeneration checks.
Exit: correct text, deterministic canaries, native low-bit kernel traces, no host/offload path, and at least 3 GiB warm free memory on every rank.
Compare K160 first with the frozen official-source teacher subset, then with full IQ3_XXS on coding, math/reasoning, tools/JSON, instruction following, and user workloads. IQ3 is a secondary quantized/runtime-confounded control; upstream llama.cpp support exists but current four-B70 allocation failures make it unsuitable as the production assumption.
If K160 passes quality and memory, emit K168, then K176, then K180 without rerunning calibration. Select the largest K that:
Do not call any REAP candidate “smartest” until this bakeoff passes.
Establish a cold baseline and exact cycle timeline. Compare TP4, TP4+EP, and PP4/layer partitioning for one session. Profile expert compute/routing, collectives, sparse attention/cache, graph gaps, and sampling in that order.
Milestones:
Stop/reassess if the full decode cycle remains above 40 ms and PCIe collectives dominate with no measured fusion or placement route capable of closing the gap.
Only after the base path approaches 40-50 tok/s, test native target-verified MTP first. DFlash/EAGLE are later alternatives, not initial dependencies. Speculation must preserve the selected target’s outputs under rejection and state rollback/commit tests. Re-run the full warmed memory gate including the MTP tensors and step down K if necessary to retain 3 GiB free per rank.
Run the fixed realistic cold suite, repeatability gate, full identity capture, and final quality suite. Promote a result packet and LocalMaxxing submission only for a verified matching record.
The next permitted implementation work is limited to Stages 0-3.5:
Do not start a 100+ GiB model download or full checkpoint construction until the Stage 1-3.5 evidence is recorded as passed in the experiment ledger.