b70-optimization-lab

Laguna M8 direct-XCCL runtime-graph preregistration

Date: 2026-07-24 America/Toronto

Scope

This authorizes one component-only probe of the runtime graph substrate. It does not load the Laguna target or DFlash draft, start an endpoint, generate a token, time endpoint throughput, stage a payload, use the network, or submit to LocalMaxxing.

The approved record remains unchanged:

The experimental target-only integration is separately committed at vLLM e09f34a008c31cb4c691697215a6eff3aa2eb5be. It is default-off, keeps the DFlash drafter eager, forces every target call except the true single-request DFlash-7 M=8 verifier eager before graph padding/dispatch, pins the graph output, and rejects any replay-time tensor pointer/offset/shape/stride/dtype or device drift. Its focused CPU gate passed 17/17 and an independent re-audit found no remaining dynamic-input blocker.

Question

Can the installed XPU graph and XCCL stack directly record and replay the incumbent Laguna collective pattern without stale data or changed BF16 bytes?

The probe records one graph containing exactly:

It then performs 32 changing-input epochs with four unique replays per epoch. Every replay checks the raw uint8 view of all 97 gathered tensors, all 97 fixed-rank sums, and the final all-reduce. This is 24,960 raw comparisons per rank and 99,840 across the four-card process group. Source and output digests must change on all 127 transitions.

The final all-reduce fixture uses small integral BF16 values so its expected sum is order-independent. The 97 rank sums use the literal incumbent rank-ordered BF16 boundaries.

Frozen identity

The tool rejects any output outside the internal-NVMe artifact subtree, requires a new root, and verifies its backing mount is ext4 on an NVMe block device. The external Corsair/NTFS volume is forbidden.

Frozen command

After a read-only four-card discovery/process check confirms no foreign XPU work:

env \
  PYTHONDONTWRITEBYTECODE=1 \
  PYTHONNOUSERSITE=1 \
  ONEAPI_DEVICE_SELECTOR=level_zero:0,1,2,3 \
  ZE_AFFINITY_MASK=0,1,2,3 \
  CCL_ATL_TRANSPORT=ofi \
  CCL_TOPO_P2P_ACCESS=1 \
  FI_TCP_IFACE=eno1 \
  CCL_KVS_IFACE=eno1 \
  LD_LIBRARY_PATH=/home/steve/.venvs/deepseek-v4-xpu/lib:/opt/intel/oneapi/umf/1.1/lib:/opt/intel/oneapi/compiler/2026.0/lib:/opt/intel/oneapi/compiler/2026.0/opt/compiler/lib \
  timeout --signal=TERM --kill-after=15s 240s \
  /home/steve/.venvs/deepseek-v4-xpu/bin/python \
  -m torch.distributed.run \
  --standalone \
  --nproc_per_node=4 \
  /home/steve/llm-optimizations/experiments/laguna-s-2.1-xpu-b70/tools/probe_laguna_m8_xccl_graph.py \
  --output-root /mnt/fast-ai/llm-optimization-artifacts/laguna-s-2.1/runs/laguna-m8-xccl-direct-graph-d9e88ff06-20260724T141124Z \
  --epochs 32 \
  --replays-per-epoch 4

Decision rule