Gemini 4 Neon 2.30×

Harness: Antigravity · switches: YOCO_OPT_BIDIR_BCAST=1 YOCO_OPT_SKIP_FP32_ZERO_GRAD=1 YOCO_OPT_DDP_BUCKET_VIEW=1 YOCO_OPT_DDP_BUCKET_MB=600 YOCO_OPT_DDP_SUM_HOOK=1 YOCO_OPT_DDP_HOOK_L2NORM=1 YOCO_OPT_DDP_ZEROCOPY_GRAD=1 YOCO_OPT_ASYNC_HOST=1 YOCO_OPT_FAST_LIB_OPTIM=1 YOCO_OPT_FLAT_OPTIM=1 YOCO_OPT_FUSED_GRAD_NORM_SCALE=1 YOCO_OPT_OVERLAP_ADAM_P2P=1 YOCO_OPT_OVERLAP_CHUNKS=8 YOCO_OPT_SYMM_ADAM_PUSH=1 YOCO_OPT_SYMM_CHUNKS=12 YOCO_OPT_SYMM_ADAM_GRID=528 YOCO_OPT_SYMM_BF16_GRID=264 YOCO_OPT_FAST_MPU=1 YOCO_OPT_CACHE_ROPE=1 YOCO_OPT_FUSED_CE=1 YOCO_OPT_COMPILE_MODEL=1 YOCO_OPT_CUDNN_SDPA=1 YOCO_OPT_FAST_MODEL_KERNELS=1 YOCO_OPT_FUSED_RES_NORM=1 YOCO_OPT_FLASH_RETENTION=1 YOCO_OPT_INTERLAYER_FUSION=1 YOCO_OPT_CUDA_GRAPH=1 YOCO_OPT_CHAIN_CUDAGRAPH=1 YOCO_OPT_ZEROCOPY_EMBED=1 YOCO_OPT_SPARSE_EMBED_ALLREDUCE=1 YOCO_OPT_FUSED_RET_PREP=1 YOCO_OPT_CUBLASLT_TUNED=r11 YOCO_OPT_SPLIT_SELF0=1 YOCO_OPT_R9_FUSIONS=1 YOCO_OPT_SYMM_BF16_PUSH=1 YOCO_OPT_SYMM_BF16_READ_G16=1 YOCO_OPT_TAPERED_DDP_BUCKETS=3

API stalls passed the 6 h pause allowance, so the lost time was run as a continuation of the same conversation on the saved submission (26 min); the judged result is the continuation's. The time axis leaves out the held time of both segments.

Judged
2.30×
Tier
N1
Self-best
2.42×
Rounds
11
Hours
10.0
API cost
$81.5
Input tokens · 97.9% cached
270 M
Output tokens
1.7 M
Requests
967
Cross-GPU exchange via CUDA IPC + copy engine (no SMs)
partial: weight exchange left NCCL, but via PyTorch SymmetricMemory with the Adam kernel writing straight into the peer (uses SMs): round 5 YOCO_OPT_SYMM_ADAM_PUSH pushes fp32, 1.866× → 1.985×; round 10 YOCO_OPT_SYMM_BF16_PUSH pushes bf16 weights only, full check 2.19× → 2.29×. Copy engine (cudaMemcpyPeerAsync) measured 207 ms in round 5 (fell back to PCIe), dropped; grad all-reduce still NCCL (own symmetric-memory all-reduce 195 GB/s vs NCCL 297 GB/s)
Forward / backward CUDA graph
✓ round 7 YOCO_OPT_CUDA_GRAPH, one forward + backward graph per layer for 13 Self and 13 Cross layers (−2.05 ms/step standalone), with three small changes 2.083× → 2.109×; round 8 YOCO_OPT_CHAIN_CUDAGRAPH chains them in one memory pool, graph-boundary copies 1.31 → 0.11 ms
Newer cuBLAS
✓ round 4 candidate env moved to torch 2.8 + cu128 (cuBLAS 12.8.4.1, cuDNN 9.10), whole env upgrade 1.682× → 1.768×; later YOCO_OPT_CUBLASLT_TUNED pins deterministic cuBLASLt algorithms for some shapes (rounds 8, 9, 11)
Retention / attention kernel swap
✓ YOCO_OPT_CUDNN_SDPA cuDNN SDPA (13 layers 6.44 → 3.85 ms): in round 4 the switch silently disabled itself and FA2 still ran; found in the round 5 profile and fixed, with hand-written RMSNorm / RoPE / SwiGLU 1.770× (full check) → 1.866×; round 7 YOCO_OPT_FLASH_RETENTION custom Triton kernel fusing cross and inner (13 layers 5.36 → 1.82 ms standalone); round 9 fuses the whole GatedRetention into one compiled node
Other main levers
round 2 fused grad norm and scaling, Adam and weight exchange pipelined in 8 chunks, 1.17× → 1.40× (N0); round 3 regional torch.compile + fused cross-entropy + Megatron wrappers bypassed, full check 1.40× → 1.66×; round 5 hand-written sm_90 RMSNorm / RoPE / SwiGLU; round 6 dW written straight into DDP buckets (YOCO_OPT_DDP_ZEROCOPY_GRAD) plus two others, full check 1.98× → 2.06×; round 8 embedding grads as a 12.6 MB AllGather (2.25 ms → 80 µs); round 11 Adam reads bf16 grads (−0.85 ms)
Raw work log13 sections
-6.6 hRound 1: Baseline Profile + Communication / Host Sync / Dead-Work / DDP Layout (N0)
- Start: 2026-11-19 19:25 UTC

### Baseline Profile Findings (/tmp/r1/profile, 5 updates after warmup 5)
- Instrumented window: 1.407 s / 5 updates (~253 ms/iter steady state, 236.4 ms uninstrumented); GPU busy fraction 77%.
- Kernel time by category (5 iters, rank 0, total 1,263.8 ms):
  1. NCCL: 385.4 ms (30.5%) — AllReduce_Sum_bf16 196.6 ms (595 calls = 119/iter, mostly overlapped with backward, ~4.2 ms exposed) + Broadcast 185.4 ms (10 calls = 2/iter, 37.1 ms/iter 100% exposed, serial unidirectional rank 0 then rank 1!).
  2. GEMM: 329.1 ms (26.0%, 65.8 ms/iter) — forward ~19.5 ms, backward ~45.7 ms.
  3. Memcpy/Cast: 219.6 ms (17.4%, 43.9 ms/iter) — _sync_fp16_grads_to_fp32 (10.3 ms/iter), _sync_fp32_params_to_fp16 (10.1 ms/iter), Memcpy DtoD in backward DDP bucket copies (5.3 ms/iter), zero_grad on p32.grad (3.9 ms/iter), model copies/casts.
  4. Elementwise: 153.8 ms (12.2%, 30.8 ms/iter) — _unscale_grads (multiply_grads, 12.2 ms/iter across 240 separate kernels!) + model RMSNorm/GateRetention/SwiGLU/residual ops.
  5. Optimizer (multi_tensor): 91.4 ms (7.2%, 18.3 ms/iter) — AdamFunctor (14.3 ms/iter) + L2NormFunctor (4.0 ms/iter).
  6. Flash-Attention: 29.8 ms (2.4%, 6.0 ms/iter) — fwd 1.6 ms + bwd 4.3 ms.
  7. Reduce: 19.2 ms (1.5%); Triton: 13.8 ms (1.1%); SwiGLU jiterator: 11.1 ms (0.9%); Loss (log_softmax): 8.8 ms (0.7%).
- Host / CPU launch & sync bottlenecks:
  - forward: GPU 31.6 ms vs CPU 53.1 ms (self_decoder 36.3 ms CPU vs ~22 ms GPU -> ~15+ ms pure GPU idle bubbles from eager Python dispatch!).
  - 4 major CUDA syncs per step (~80 ms CPU wait): all_reduce_dict + bool(sample_size) (1.8 ms), _check_grad_norms + isfinite (9.7 ms), OSS._broadcast_params torch.cuda.synchronize() (23.4 ms), _reduce_and_log_stats .item()/is_nonzero (44.7 ms).
- Hotspot classification:
  - Serial OSS broadcast + cudaDeviceSynchronize: Kind 2/3 (Communication + Host sync).
  - DDP gradient_as_bucket_view=False (Memcpy DtoD 5.3 ms) & 25MB buckets: Kind 2 (Configuration).
  - zero_grad zeroing p32.grad before full overwrite: Kind 3 (Dead work).
  - Per-step host syncs in Trainer: Kind 2/3 (Host syncs).
-6.6 hRound 1 Changes (`yoco/models/opt_patches.py`)
- YOCO_OPT_BIDIR_BCAST=1: Replace serial OSS dist.broadcast + torch.cuda.synchronize() with simultaneous bidirectional dist.batch_isend_irecv for 2-rank NCCL.
- YOCO_OPT_SKIP_FP32_ZERO_GRAD=1: Skip dead p32.grad.zero_() in FP16Optimizer.zero_grad().
- YOCO_OPT_DDP_BUCKET_VIEW=1 + YOCO_OPT_DDP_BUCKET_MB=200: Enable gradient_as_bucket_view=True and 200 MB DDP buckets.
- YOCO_OPT_ASYNC_HOST=1: Single non-blocking all_reduce for step stats, torch.where for sample_size without bool(tensor), deferred pinned-memory NaN/consistency check, log-interval metric .item() sync.
-6.6 hRound 1 Results
- End: 2026-11-19 19:43 UTC
- time (/tmp/r1/time/time.json): 0.2009 s/update (20,385 tok/s, windows [2.009, 2.009], range 0.0001), speedup_vs_frozen_reference = 1.1747 (beyond noise), peak mem 61.75 GiB alloc / 62.24 GiB reserved.
- check --quick (/tmp/r1/quick/check.json): PASS (N0, 9616/9616 tensors bitwise identical, 0 errors).
- Commit: 6840172 on branch opt.

---
-6.2 hRound 2: Fused Optimizer Pipeline + Overlapped Chunked Adam / Bidir P2P / FP32->BF16 (N0)
- Start: 2026-11-19 19:44 UTC
- Profile of Round 1 (/tmp/r2/profile, 0.2261 s/update instrumented, GPU busy 84%):
  - Optimizer + grad pipeline = 69.9 ms/iter (35% of step): _sync_fp16_grads_to_fp32 (10.3 ms) + L2Norm (4.0 ms) + _unscale_grads (12.2 ms) + Adam (14.3 ms) + SendRecv (19.0 ms) + _sync_fp32_params_to_fp16 (10.1 ms).
  - Also caught a 16.7 ms pageable HtoD sync from sample_size.new_tensor(numer) in multiply-grads.
- Changes (yoco/models/csrc/yoco_fast_optim/, installed in /opt/candidate-env, wired in yoco/models/opt_patches.py):
  - Fixed sample_size.new_tensor(numer) -> torch.full_like(sample_size, numer).
  - YOCO_OPT_FUSED_GRAD_NORM_SCALE=1: Compute L2 norm directly on bf16 grads via amp_C.multi_tensor_l2norm (bitwise equal to fp32); fuse _sync_fp16_grads_to_fp32 + _unscale_grads into vectorized sm_90 CUDA kernel yoco_fast_optim.multi_tensor_bf16_scale_to_fp32 (3.66 TB/s, bitwise equal); replace _sync_fp32_params_to_fp16 with vectorized yoco_fast_optim.multi_tensor_fp32_to_bf16 (3.87 TB/s, bitwise equal).
  - YOCO_OPT_OVERLAP_ADAM_P2P=1 + YOCO_OPT_OVERLAP_CHUNKS=8: Split each rank's OSS ParamBucket into 8 contiguous chunks (smaller first chunk so NVLink starts <1 ms); pipeline Apex multi_tensor_adam + local fp32->bf16 on compute stream, bidirectional batch_isend_irecv on NCCL stream, and peer fp32->bf16 on dedicated bf16_stream.
- Results:
  - End: 2026-11-19 20:00 UTC
  - time (/tmp/r2/time/time.json): 0.1688 s/update (24,265 tok/s, windows [1.688, 1.688], range 0.0003), speedup_vs_frozen_reference = 1.3981, peak mem 61.75 GiB alloc / 62.24 GiB reserved.
  - Full check (/tmp/r2/check/check.json): PASS (N0, 9616/9616 tensors bitwise identical, trajectory equivalent within 0.72σ, speedup = 1.3956, 0.1691 s/update).
  - Commit: 7c026cd on branch opt; /submission/switches.json promoted.

---
-5.8 hRound 3: Fast MPU Bypass + Cached RoPE + Fused Triton CrossEntropy + Regional Functional `torch.compile` (N1)
- Start: 2026-11-19 20:00 UTC
- Profile of Round 2 (/tmp/r3/profile, 0.1967 s/update instrumented, GPU busy 80%, 0 host syncs):
  - Forward + backward = ~130 ms of the 168.8 ms step (77%): forward 31.7 ms GPU vs 53.2 ms CPU (21.5 ms CPU launch bubbles, especially self.mixer 143.5 ms CPU / 5 iters), 67 eager RMSNorms, 198 Megatron MPU autograd wrappers, eager CrossEntropy (~3.2 ms + 1.6 GiB).
  - Microbenchmarks:
    - Fused Triton CE (bf16 logits, exact fp32 online LSE): 3.175 ms -> 0.411 ms (7.72× faster, -2.76 ms/iter, rel grad L2 2.1e-7).
    - Merged FFN GEMMs (2048×3072 @ 3072×16384): slower than separate (0.300 ms vs 0.286 ms on cuBLAS 12.1) -> kept YOCO_OPT_MERGE_PROJ=0.
- Changes (yoco/models/opt_model.py):
  - YOCO_OPT_FAST_MPU=1: Bypass Megatron ColumnParallelLinear/RowParallelLinear/VocabParallelEmbedding autograd wrappers & vocab mask when model_parallel_size == 1 (N0).
  - YOCO_OPT_CACHE_ROPE=1: Cache (cos, sin) rotary tensors in SelfDecoder/CrossDecoder (N0).
  - YOCO_OPT_FUSED_CE=1: Fused Triton CrossEntropy directly on bf16 logits with exact fp32 online log-sum-exp (N1).
  - YOCO_OPT_COMPILE_MODEL=1: Functional regional torch.compile (5 shared graphs: _self_layer ×13 with torch.library custom op for ChunkGateRecurrent, _cross_kv_and_q0, _cross_between ×12, _cross_tail, _final_norm; torch._dynamo.config.optimize_ddp = False to preserve layer-by-layer DDP overlap and support custom autograd ops; pure PyTorch fused rotary + SwiGLU + causal mask without -inf).
- Results:
  - End: 2026-11-19 20:22 UTC
  - time (/tmp/r3/time/time.json): 0.1417 s/update (28,914 tok/s, windows [1.419, 1.414], range 0.0036), speedup_vs_frozen_reference = 1.6655, peak mem 58.86 GiB alloc / 59.87 GiB reserved (-2.9 GiB vs baseline).
  - Full check (/tmp/r3/check/check.json): PASS (N1, 0 exact failures, trajectory equivalent, speedup = 1.6596).
  - Commit: Round 3 committed on branch opt; /submission/switches.json promoted.

---
-5.0 hRound 4: ABI-Independent Fused AdamW+BF16 + DDP Sum-Only Hook + PyTorch 2.8.0+cu128 + cuDNN 9.10 FA3 SDPA (N1)
- Start: 2026-11-19 20:22 UTC
- Profile of Round 3 (/tmp/r4/profile, 0.1417 s/update, GPU busy 99.5%, only 0.67 ms/iter GPU gaps):
  - Model GEMMs: 65.4 ms (sm90_xmma cuBLAS 12.1 60.5 ms + cutlass_80 bmm 2.8 ms).
  - Optimizer pipeline: 36.1 ms (bf16_l2norm 2.9 ms + bf16_scale_to_fp32 5.6 ms + overlapped Adam/SendRecv/fp32->bf16 27.6 ms).
  - Redundant DDP div_(2.0) on 3.4B bf16 grads: 4.88 ms/iter (mostly overlapped with backward, ~0.4 ms exposed).
  - FlashAttention (CrossAttention ×13, FA2 2.6.3): 6.8 ms.
  - Model Triton/Inductor kernels: ~15 ms.
  - Exposed DDP AllReduce: ~6-8 ms (26.8 ms total).
- Changes:
  - Built ABI-independent pure-CUDA sm_90 library yoco/models/csrc/yoco_fast_optim/libyoco_fast_optim.so + ctypes wrapper yoco/models/_fast_optim_lib.py (multi_tensor_bf16_l2norm at 3,806 GB/s, multi_tensor_adamw_fp32_bf16_out at 3,667 GB/s fusing local fp32->bf16 write into AdamW, zero Apex amp_C dependency).
  - YOCO_OPT_FAST_LIB_OPTIM=1 (yoco/models/opt_patches.py): YocoFusedAdam matching FusedAdamV2 (adam_w_mode=1, bias_correction=True) + fused local bf16 write inside chunked Adam/P2P overlap.
  - YOCO_OPT_DDP_SUM_HOOK=1: Sum-only DDP comm hook skipping redundant div_(2.0) + numer = 1.0 in multiply-grads.
  - Upgraded /opt/candidate-env to torch==2.8.0+cu128, torchvision==0.23.0+cu128, triton==3.4.0, flash-attn==2.8.3 (preserving flash_attn_interface._flash_attn_backward signature + dispatch for Gate 2 deterministic_flash_attn()), cublas <ip>, cudnn <ip>, nccl 2.27.3 (keeping numpy==1.23.0 from /opt/yoco-env).
  - Removed unused : Optional[tl.tensor] annotation on _fwd_recurrence in yoco/models/decoder/kernel/gate_recurrent.py for Triton 3.4 compatibility.
  - YOCO_OPT_CUDNN_SDPA=1 (yoco/models/opt_model.py): Single shared compiled _cross_layer_sdpa using F.scaled_dot_product_attention(..., is_causal=True, enable_gqa=True) with SDPBackend.CUDNN_ATTENTION (Hopper FA3, BSHD strided zero-copy view: 6.44 ms -> 3.85 ms across 13 layers, 0 graph breaks), automatically falling back to flash_attn_func when torch.are_deterministic_algorithms_enabled().
- Results:
  - End: 2026-11-19 21:08 UTC
  - Round 4A (PyTorch 2.3 + DDP_SUM_HOOK + FAST_LIB_OPTIM): time (/tmp/r4/time_r4a/time.json) 0.1403 s/update (1.6821×; confirmed overlapped Adam+P2P is NVLink-bound at 19.5 ms with chunk skew!).
  - Round 4B (PyTorch 2.8+cu128 + CUDNN_SDPA): time (/tmp/r4/time_r4b/time.json) 0.1335 s/update (1.7678×, 30,671 tok/s).
  - Full check (/tmp/r4/check/check.json): PASS (N1, 0 exact failures, trajectory equivalent within -1.02σ across all 6 endpoints, speedup = 1.7704, 0.1333 s/update, median 0.1324 s/update, 30,728 tok/s, peak mem 58.83 GiB alloc).
  - Commit: 799b3fd on branch opt; /submission/switches.json promoted.

---
-4.0 hRound 5: cuDNN FA3 SDPA Fix + sm_90 CUDA RMSNorm/RoPE/SwiGLU + PyTorch SymmetricMemory Fused AdamW+NVLink Push (N1)
- Start: 2026-11-19 21:10 UTC
- Profile of Round 4 (/tmp/r5/profile, 132.61 ms steady-state GPU span):
  - Critical path: Forward 24.87 ms + Backward 70.72 ms (incl. 4.24 ms 242× Memcpy DtoD in DDP reducer::copy_) + bf16_l2norm 1.83 ms + bf16_scale_to_fp32 5.66 ms + Overlapped Adam+SendRecv+peer_bf16 29.52 ms!
  - Caught 3 huge wins:
    1. YOCO_OPT_CUDNN_SDPA=1 had silently disabled itself (inspect.signature raised ValueError on C++ builtin F.scaled_dot_product_attention), so CrossAttention was still running FA2 2.8.3 (6.76 ms/iter) + 12 graph breaks instead of cuDNN 9.10 Hopper FA3 (3.84 ms/iter).
    2. Inductor RMSNorm backward weight-grad reductions (5.54 ms/iter, 0.215 ms standalone × 52 = 11.2 ms) and RoPE (0::2 slice_backward + clone_3, 0.199 ms × 40 = 8.0 ms) and SwiGLU (4.9 ms) were 6-9× slower than Hopper roofline.
    3. Overlapped AdamW + NCCL SendRecv serialized/contended on HBM/SMs (29.52 ms vs 18.58 ms pure NCCL P2P).
- Negative / screened directions:
  - cudaMemcpyPeerAsync hardware DMA over CUDA IPC fell back to PCIe (207.37 ms vs 18.58 ms NVLink SM P2P) -> discarded.
  - Persistent-grid SM partitioning of AdamW (grid=64..132) with NCCL SendRecv stayed at 30.65-36.56 ms -> discarded in favor of fused SymmetricMemory NVLink push!
- Changes:
  - Fixed _sdpa_ctx version check in yoco/models/opt_model.py (torch.__version__ >= (2, 5)), activating single-graph _cross_layer_sdpa + cudnn_generated_fort_native_sdpa_sm90_flash_*_wgmma (3.80 ms across 13 layers).
  - YOCO_OPT_FAST_MODEL_KERNELS=1 (yoco/models/csrc/yoco_fast_optim/yoco_fast_optim_c.cu + opt_model.py torch.library custom ops):
    - sm_90 1-pass 384-thread uint4 rms_norm_3072 (fwd bitwise identical to upstream (xf*rstd).to(bf16)*w, 100% deterministic 2-stage dw bwd: 0.215 ms -> 0.032 ms, 6.7× faster) + rms_norm_128_noweight (0.187 -> 0.022 ms, 8.7× faster).
    - sm_90 uint4 rope_interleaved_128 with fused BSHD <-> BHSD transpose (0.199 -> 0.022 ms, 9.1× faster, bitwise identical).
    - sm_90 uint4 swiglu_bf16 (0.188 -> 0.078 ms, 2.4× faster).
  - Added __stcs streaming stores to bf16_scale_to_fp32, fp32_to_bf16 (fixed stride-1 coalesced float4 -> uint2), and adamw_nvlink_push.
  - YOCO_OPT_SYMM_ADAM_PUSH=1 + YOCO_OPT_SYMM_CHUNKS=4 (yoco/models/opt_patches.py): Replaces OSS peer_bucket.buffer with torch.distributed._symmetric_memory (rendezvous + hardware barrier), fuses direct NVLink fp32 push into sm_90 adamw_nvlink_push across 4 exact 8-elem-aligned equal chunks pipelined with bf16_stream peer cast (29.52 ms -> ~21 ms, zero chunk skew, -6.5 GiB peak memory!).
- Results:
  - End: 2026-11-19 22:07 UTC
  - Round 5A (CUDNN_SDPA + FAST_MODEL_KERNELS): time (/tmp/r5/time_r5a/time.json) 0.1265 s/update (1.8656×, -6.8 ms/iter).
  - Round 5B (+ SYMM_ADAM_PUSH=1, SYMM_CHUNKS=4): time (/tmp/r5/time_r5b/time.json) 0.1189 s/update (median 0.1180, 1.9849×, 34,438 tok/s, peak mem 52.30 GiB alloc; beat SYMM_CHUNKS=1 at 0.1194 s/update).
  - Full check (/tmp/r5/check/check.json): PASS (N1, 0 exact failures, fewer numerical violations than R4: 1555 vs 1883, trajectory equivalent within -0.055σ .. -1.041σ, speedup = 1.9799, 0.1192 s/update).
  - Commit: ff0d45b on branch opt; /submission/switches.json promoted.

---
2.6 hRound 6: Zero-Copy DDP Bucket-View dW, Overlapped DDP Hook L2 Norm, & Fused Residual-RMSNorm / Subln-Transpose / Scaled-RoPE
- Start: 2026-11-19 22:18 UTC
- Profile diagnosis (/tmp/r6/profile):
  - Round 5 steady-state iter 119.22 ms: Forward 23.02 ms, Backward 67.01 ms (incl. 4.63 ms / 268× Memcpy DtoD in DDP reducer::copy_), exposed bf16_l2norm 1.74 ms, bf16_scale_to_fp32 5.74 ms (35 flushes), adamw_nvlink_push + peer_fp32_to_bf16 21.59 ms.
- Changes:
  - YOCO_OPT_DDP_ZEROCOPY_GRAD=1 (yoco/models/opt_model.py, yoco/models/opt_patches.py): Captures permanent DDP bucket views after step 1 (rebuild_buckets()), writes dW = torch.mm(dy.T, x, out=v) directly into bucket view v = bv.view_as(bv) (single-ref TensorImpl so PyTorch AccumulateGrad steals v with zero clone and DDP reducer::copy_ is skipped). Initial bug returning cached bv (refcount > 1) doubled DtoD memcpys (8.57 ms, 0.1214 s/update); fixing to bv.view_as(bv) cut step time by -6.7 ms.
  - YOCO_OPT_DDP_HOOK_L2NORM=1 (yoco_fast_optim_c.cu, _fast_optim_lib.py, opt_patches.py): Computes deterministic 2-stage per-bucket sum_sq on a dedicated l2_stream inside DDP's sum-only comm hook fut.then(...), completely hiding 1.74 ms of bf16_l2norm behind backward/AllReduce (0.05 ms exposed gap).
  - YOCO_OPT_FUSED_RES_NORM=1 (yoco_fast_optim_c.cu, _fast_optim_lib.py, opt_model.py): Fused add_rms_norm_3072_fwd/bwd (intra-layer residual+norm2), rms_norm_128_nw_bhsd_to_bshd_fwd/bwd (subln + layout transpose), and rope_interleaved_128_scaled (head_dim**-0.5 fused into SelfDecoder K RoPE).
  - Split CHUNK_SIZE_SCALE=524288 for bf16_scale_to_fp32 (5.74 ms -> 5.50 ms) while keeping CHUNK_SIZE=131072 for adamw_nvlink_push + fp32_to_bf16 (524288 caused tail-wave imbalance on adamw_nvlink_push).
- Results:
  - End: 2026-11-20 04:48 UTC
  - time (/tmp/r6/time_r6b/time.json): 0.1147 s/update (median 0.11375 s, 2.0575×, 35,699 tok/s, peak reserved mem 52.72 GiB).
  - Full check (/tmp/r6/check_r6/check.json): PASS (N1, 0 exact failures, 1564 diagnostic violations, trajectory equivalent within -0.050σ .. -1.291σ, speedup = 2.0593, 0.1146 s/update, 35,730 tok/s).
  - Commit: 552ebe3 on branch opt; /submission/switches.json promoted.

---
3.4 hRound 7: Fused Triton FlashRetention (Cross+Inner), Inter-Layer Add+RMSNorm Fusion, Persistent Streaming Optimizer, & Per-Layer CUDA Graphs
- Start: 2026-11-20 04:49 UTC
- Screening & microbenchmarks:
  - cuBLASLt 12.8 64-algo probe on Hopper: default heuristics already near-optimal (best vs default saves ~1.2 ms/iter on zero data); merged QKVG (3072 -> 12288) beats 4 separate projections by 1.13 ms/iter.
  - NCCL channel/proto/algo sweep (MAX_NCHANNELS=2..32, Simple, NVLS) with 2:1 compute:comm overlap: default 24 channels is global optimum (60.66 ms vs 61.49 ms at 32ch, 62.53 ms at 16ch, 71.28 ms at 8ch); NVLS unsupported on 2-GPU direct NVLink; custom remote-read SymmetricMemory AllReduce reached only 195 GB/s vs NCCL 297 GB/s -> kept NCCL default.
  - Coalesced stride-1 float4 streaming __ldcs/__stcs optimizer microbenchmark: bf16_scale_to_fp32 5.26 ms (3.88 TB/s), adam4+f2b (G=528x256) 20.07 ms (339 GB/s eff NVLink).
  - Diagnosed FlashInnerChunk dk bug (rel_L2=1.8e-2, max_abs=101.6): Triton 3.4 Hopper codegen bug specific to BM=32, BN=64 transposed dot; BM=64, BN=32 is exact (rel_L2=2.35e-3 vs fp64, more accurate than PyTorch bf16 ref 2.83e-3!). Fusing cross = q_scaled @ S_state + causal inner_chunk into FlashRetentionChunk cut 13-layer retention from 5.36 ms -> 1.82 ms (-3.54 ms/iter standalone!).
  - Manual per-layer CUDAGraph microbenchmark on compiled Self/Cross layers: -2.05 ms/iter standalone (verified 0.0 bitwise identical with zero-copy DDP on 2 GPUs).
- Changes:
  - YOCO_OPT_FLASH_RETENTION=1 (yoco/models/opt_model.py): Fused Triton 3.4 FlashRetentionChunk (BM=64, BN=32, w=4, s=4/3/3) combining cross_chunk + inner_chunk, with direct 5D v strides eliminating 26× v.contiguous() copies (0.48 ms).
  - YOCO_OPT_INTERLAYER_FUSION=1 (yoco/models/opt_model.py): Residual-carry (fc2_out, residual2) across all 25 inter-layer boundaries (Self 0..12 -> Cross KV -> Cross 0..12 -> FinalNorm), eliminating all 52× standalone residual adds (inductor_triton 2.29 ms -> 0.57 ms).
  - YOCO_OPT_FLAT_OPTIM=1 (yoco_fast_optim_c.cu, _fast_optim_lib.py, opt_patches.py): Single-launch persistent-descriptor streaming __ldcs/__stcs kernels (bf16_scale_to_fp32_desc: 1 launch 5.34 ms, adamw_nvlink_desc: 19.48 ms, fp32_to_bf16_desc on high-priority bf16_stream with grid=264 overlapped / grid=1056 solo on final chunk, YOCO_OPT_SYMM_CHUNKS=8 beating 4 by -0.7 ms). Verified 0.0 bitwise identical to multi-tensor kernels.
  - YOCO_OPT_CUDA_GRAPH=1 (yoco/models/opt_model.py, opt_patches.py): Manual per-layer CUDAGraph capture (step 2, capturing fwd+bwd outside DDP/backward using detached weight views writing directly into permanent DDP bucket views) & replay for all 13 SelfDecoder layers and all 13 CrossDecoder SDPA layers.
- Results:
  - End: 2026-11-20 05:33 UTC
  - Round 7A (FLASH_RETENTION + INTERLAYER_FUSION + FLAT_OPTIM): time (/tmp/r7/time_r7a/time.json) 0.1133 s/update (median 0.1122 s, 2.0830×, steady-state GPU trace 111.54 ms, peak alloc 51.39 GiB).
  - Round 7B (+ CUDA_GRAPH, zero-copy v strides, high-priority bf16_stream, SYMM_CHUNKS=8): time (/tmp/r7/time_r7b/time.json) 0.1119 s/update (median 0.11035 s, 2.1090×, 36,596 tok/s; beat SYMM_CHUNKS=4 at 0.1126 s).
  - Full check (/tmp/r7/check_r7/check.json): PASS (N1, 0 exact failures, 1554 diagnostic violations, trajectory equivalent within -0.080σ .. -1.874σ, speedup = 2.1034, 0.1122 s/update, 36,518 tok/s, peak alloc 51.39 GiB).
  - Commit: 6feced2 on branch opt; /submission/switches.json promoted.

---
6.3 hRound 8: Zero-Copy Chained CUDAGraphs, Sparse 2-Rank Embedding AllGather+Scatter, Tuned Forward cuBLASLt, Fused GateRetPrep, Split Self[0], & SM-Balanced Symmetric AdamW
- Start: 2026-11-20 05:35 UTC
- Profile diagnosis & microbenchmarks:
  - Round 7 steady-state GPU span 109.89 ms: Forward 22.7 ms, Backward 61.4 ms (incl. 1.86 ms exposed tail of bucket #23 + 616 MB embed_tokens AllReduce 2.25 ms + 1.31 ms / 185× CUDAGraph boundary Memcpy DtoD), bf16_scale_to_fp32 5.34 ms, adamw_nvlink + peer_fp32_to_bf16 20.70 ms.
  - Hardware ceiling checks on 2×Hopper: HBM3e 3,880 GB/s, bidir NVLink 4.0 365 GB/s each way (6.89 GB fp32 push physical limit = 18.88 ms). Tuning adamw_nvlink_desc from grid=528 down to grid=264 (2 CTAs/SM) + SYMM_CHUNKS=12 left SM slots open for concurrent fp32_to_bf16_desc (grid=264), cutting optimizer sync from 20.70 -> 19.70 ms (-1.00 ms).
  - Screened real randn bf16 GEMM traps: merged QKVG (3072 -> 12288) with cat was -0.30 ms slower; merged FFN (3072 -> 16384) was 1.35 ms/iter slower than separate tuned fc1+gate; backward cuBLASLt 128×128 tiles regressed +0.5..0.9 ms under NCCL contention -> restricted cuBLASLt tuning to forward-only (fc1/gate fwd (184,35,5) + lm_head fwd (197,35,5)).
  - Screened DDP bucket & NCCL/P2P tradeoffs: DDP_BUCKET_MB=100 (0.1096 s) was slower than 200 (0.1089 s), while DDP_BUCKET_MB=300 + SPLIT_SELF0=1 hit 0.1087 s; NCCL_MIN_NCHANNELS=32 regressed to 0.1093 s; custom 1-shot P2P & DMA AllReduce were slower than NCCL under concurrent 132-CTA GEMMs; YOCO_OPT_EAGER_SELF0=1 (0.1090 s) did not fire bucket #23 early because _self_layer_first remained a single AOTAutograd node -> superseded by YOCO_OPT_SPLIT_SELF0=1.
- Changes:
  - yoco/models/csrc/yoco_fast_optim/yoco_fast_optim_c.cu & yoco/models/_fast_optim_lib.py:
    - Bumped rms_norm_3072_bwd & add_rms_norm_3072_bwd stage 1 to 256 CTAs (-0.36 ms) and parallelized rms_norm_3072_bwd_stage2_kernel to 96 CTAs × 256 threads (0.387 -> <0.13 ms).
    - Replaced expf with __expf + __frcp_rn in swiglu_bf16_fwd/bwd (-0.21 ms).
    - Added deterministic zero-atomic 2-rank sparse embedding kernels (embedding_zero_rows_bf16_3072, embedding_bwd_scatter_2rank_sumsq_3072, embedding_sparse_scale_fp32_3072, bitwise exact 0.0 vs dense).
    - Added fused sm_90 warp-scan gate_ret_prep_fwd & gate_ret_prep_bwd (logsigmoid/16 + cumsum-256 + cross_decay + v_scaled).
    - Added ABI-free dlopen("libcublasLt.so.12") deterministic (splitK=1, red=0, static 4 MiB workspace, CUDAGraph-safe) launch_cublaslt_bf16_mm.
  - yoco/models/opt_patches.py:
    - YOCO_OPT_SYMM_CHUNKS=12, YOCO_OPT_SYMM_ADAM_GRID=264, YOCO_OPT_SYMM_BF16_GRID=264 (-1.00 ms optimizer sync); batched 6-double DtoH transfer on log_interval steps.
    - YOCO_OPT_SPARSE_EMBED_ALLREDUCE=1: Splits final DDP bucket into dense_slice + embed_slice, launches 12.6 MB AllGather first (80 us vs 2.25 ms 616 MB AllReduce!), overlaps deterministic sort(stable=True) + scatter_2rank_sumsq on embed_stream concurrently with dense_slice AllReduce, and runs sparse embed_tokens bf16_scale_to_fp32 (5.34 -> 4.88 ms).
  - yoco/models/opt_model.py:
    - YOCO_OPT_CHAIN_CUDAGRAPH=1: Captures all stages in one shared pool chaining sdyn -> prev souts and sdouts -> next sgrads zero-copy (Memcpy DtoD 1.310 -> 0.114 ms, peak reserved mem 55.99 -> 52.26 GiB).
    - YOCO_OPT_ZEROCOPY_EMBED=1, YOCO_OPT_FUSED_RET_PREP=1, YOCO_OPT_CUBLASLT_TUNED=fwd, and YOCO_OPT_SPLIT_SELF0=1 (splits Self[0] into _self0_mixer + _self0_ffn so Self[0] FFN fires AccumulateGrad 0.95 ms earlier, shrinking backward exposed tail from 1.86 -> 0.78 ms).
- Results:
  - End: 2026-11-20 08:25 UTC
  - time_r8b (200 MB, no SPLIT_SELF0): 0.1089 s/update (2.1671×, median 0.1074 s).
  - time_r8f (300 MB + SPLIT_SELF0=1): 0.1087 s/update (2.1711×, window_range = 0.0008, 37,688 tok/s).
  - Full check (/tmp/r8/check_r8/check.json): PASS (N1, 0 exact failures, 1553 diagnostic violations, trajectory equivalent within -0.0025σ .. -0.938σ, speedup = 2.1711, 0.1087 s/update, 37,680 tok/s, peak alloc 51.39 GiB / reserved 52.26 GiB).
  - Commit: Round 8 committed on branch opt; /submission/switches.json promoted.

---
7.2 hRound 9: In-Place Multi-Projection Backward (`DualLinear`/`PentaLinear`), Full Fused `GatedRetention`, Zero-Copy RMSNorm `dw`, Streaming 384-CTA RMSNorm/SwiGLU, & 600 MB DDP Buckets
- Start: 2026-11-20 08:27 UTC
- Profile diagnosis & microbenchmarks:
  - Round 8 steady-state GPU span 106.54 ms: GEMMs 65.03 ms (17.07 ms fwd @ 754 TFLOPS + 48.56 ms bwd @ 530 TFLOPS), adamw_nvlink 19.28 ms (wire limit 18.88 ms), bf16_scale_to_fp32 4.88 ms (HBM limit 4.85 ms), Cross SDPA 3.98 ms, RMSNorm 2.34 ms, FlashRetention 2.26 ms, SwiGLU 2.25 ms.
  - Correlated every backward GEMM against NCCL + bf16_sum_sq_stage1 overlap and wall-clock time: identified 700W TDP clock throttling (1980 -> 1710 MHz during dense Cross backward) and mid-backward 256-CTA bf16_sum_sq_stage1 SM collisions (+120..160 us per collided GEMM).
  - Screened YOCO_OPT_DDP_HOOK_L2NORM=0 (0.1089 s: sequential multi_tensor_bf16_l2norm 1.66 ms nearly cancelled -1.46 ms saved in backward), YOCO_OPT_BWD_SM_TARGET=96/116 (96 = 0.1086 s / 0.1082 s with R9, neutral vs 0; 116 = 0.1091 s), SYMM_CHUNKS=8 + SYMM_TAIL_PCT=3 (0.1114 s, regressed), FlashRetention tl.math.exp2 (max_err=8.0, rejected), and DDP bucket sweep (300 -> 400 -> 600 -> 1020 MB: 0.1081 -> 0.1078 -> 0.1073 -> 0.1081 s, global optimum at 600 MB).
  - Standalone microbenchmarks of Round 9 kernels: DualLinear in-place addmm (-0.388 ms, zero memcpy128), PentaLinear 5-way in-place addmm (-0.200 ms, -1.25 GB HBM traffic), add_rms_norm_3072_bwd 384 CTAs + __ldcs/__stcs (23.80 -> 19.90 us, -0.20 ms), _bwd_recurrence_nolast (70.33 -> 47.55 us, -0.30 ms, bitwise exact), cuBLASLt (20,35,3) on dX_3k/dX_fc2 (-0.32 ms solo & concurrent with NCCL).
- Changes:
  - yoco/models/csrc/yoco_fast_optim/yoco_fast_optim_c.cu & yoco/models/_fast_optim_lib.py:
    - Added __ldcs/__stcs streaming loads/stores to swiglu_bf16_fwd/bwd and add_rms_norm_3072_bwd_stage1, bumped rms_norm_3072_bwd & add_rms_norm_3072_bwd to 384 CTAs, and supported optional pre-allocated dw_out.
    - Added optional dv_add_in fusion into gate_ret_prep_bwd_kernel (bitwise exact).
    - Added beta support (launch_cublaslt_bf16_gemm) to our ABI-free deterministic cuBLASLt dispatcher.
  - yoco/models/opt_model.py:
    - YOCO_OPT_R9_FUSIONS=1:
      - _BucketDualLinear (fc1+gate, 26×): in-place torch.addmm(dx, d2, w2, out=dx) eliminating all 26× memcpy128 (-0.25 ms, bitwise exact).
      - _BucketPentaLinear (q,k,v,g,gt, 13×): 5-way in-place addmm eliminating all 13× triton_poi_fused_add_add_rms_norm (-0.25 ms).
      - _CompiledFullGatedRetention + _bwd_recurrence_nolast (13×): fuses GateRetPrep + kv_bmm + ChunkGateRecurrent + FlashRetentionBSHD using in-place torch.baddbmm for dk (eliminating 13× triton_poi_fused_rope_128_scaled_1), fused dv_add in gate_ret_prep_bwd (eliminating 13× triton_poi_fused_add_0), and fused tail zeroing / dead DL removal in _bwd_recurrence_nolast (bitwise exact).
      - Zero-copy _BUCKET_VIEWS dw_out in rms_norm_3072_bwd & add_rms_norm_3072_bwd (eliminating 54× Memcpy DtoD).
    - YOCO_OPT_CUBLASLT_TUNED=r9: applies deterministic (20,35,3) to dX_3k (91×) & dX_fc2 (26×) in addition to fc1/gate & lm_head fwd (0.1081 s vs fwd-only 0.1083 s).
  - yoco/models/opt_patches.py:
    - YOCO_OPT_DDP_BUCKET_MB=600 (optimal bucket count & overlap vs 300/400/1020 MB); decoupled SPARSE_EMBED_ALLREDUCE from DDP_HOOK_L2NORM and added optional YOCO_OPT_L2_MAX_BLOCKS/YOCO_OPT_BWD_SM_TARGET.
- Results:
  - End: 2026-11-20 09:21 UTC
  - time_r9e (300 MB): 0.1081 s/update (2.1832×, window_range = 0.0007).
  - time_r9j (400 MB): 0.1078 s/update (2.1892×, window_range = 0.0002).
  - time_r9k (600 MB): 0.1073 s/update (2.1994×, median 0.1063 s, 38,162 tok/s).
  - Full check (/tmp/r9/check_r9/check.json): PASS (N1, 0 exact failures, 1564 diagnostic violations, trajectory equivalent within -0.034σ .. -1.330σ, loss_u100_200 = -0.154σ, speedup = 2.1913, 0.1077 s/update, 38,028 tok/s, peak alloc 51.39 GiB / reserved 52.27 GiB).
  - Commit: c99b7c1 on branch opt; /submission/switches.json promoted.

---
8.8 hRound 10: Direct SymmetricMemory BF16 Weight Push (`SYMM_BF16_PUSH`), 57-Reg `vec4` AdamW Kernel, Overlapped `log_interval` DtoH, & 1D RMSNorm Zero-Copy `dw`
- Start: 2026-11-20 09:26 UTC
- Profile diagnosis & microbenchmarks:
  - Round 9 steady-state GPU span 105.24-106.71 ms: opt 24.36 ms (bf16_scale_to_fp32 4.87 ms + adamw_nvlink fp32 push 18.93 ms + 13× barrier 0.31 ms + final fp32_to_bf16 0.22 ms), fwd 21.7 ms, bwd 57.0 ms, tail 2.27 ms.
  - Root-caused three hidden inefficiencies from Round 9 traces:
    1. Redundant fp32 weight broadcast over NVLink: OSS broadcast 6.89 GB of fp32 weights (18.88 ms NVLink 4.0 wire limit) + ran 12× fp32_to_bf16_desc_kernel on the receiver (14.5 ms concurrent + 0.22 ms tail), even though each owning rank maintains authoritative fp32 master weights + fp32 AdamW state and the peer rank only consumes bf16 model weights (3.44 GB, 9.44 ms NVLink 4.0 wire time!). Rebinding peer-owned p16.data directly into a SymmetricMemory bf16 buffer and pushing bf16 directly from adamw eliminates fp32_to_bf16_desc_kernel, shrinks 13 chunk barriers to 2, and halves NVLink traffic while staying 100% bit-for-bit identical in p32/m32/v32 (owning rank) and p16 (both ranks).
    2. 5.11 ms GPU idle bubble at log_interval=10: vals = torch.stack([...]).cpu().tolist() synced AFTER optimizer_step, draining the CUDA queue to empty on it 10 and it 20. Moving the pinned 6-double DtoH copy onto a side copy stream BEFORE optimizer_step overlaps ev_log.synchronize() + Python logging completely with optimizer_step.
    3. Missing 1D norm _BUCKET_VIEWS capture: _BUCKET_VIEWS only captured p.ndim == 2, leaving 54× 6144-byte Memcpy DtoD (0.093 ms) on RMSNorm dw. Widening to p.ndim in (1, 2) eliminated all 54 copies (mc6k=0 verified in trace).
  - Screened & analyzed rejected/negative variants:
    - DDP_BUCKET_MB=625 (0.1073 s): neutral vs 600 MB.
    - Explicit Tapered DDP Buckets via c10d::Reducer::initialize_buckets (yoco_ddp_buckets.cpp + libyoco_ddp_buckets.so): cut exposed tail 2.27 -> 0.73 ms, but under 700W Hopper TDP cap, moving 428 MB of NCCL + 2 extra sum_sq collisions into Self[3..0] slowed backward GEMMs, yielding 0.1076 s (mode 1) / 0.1074 s (mode 3) / 0.1048 s (with L2_MAX_BLOCKS=32).
    - Skipping p32.grad write (YOCO_OPT_FUSED_BF16_GRAD_ADAM=1, 0.0974 s / 2.423×) or deferring p32.grad write into adam.step() (YOCO_OPT_FUSED_WRITE_G32=1, 0.1012 s / 2.332×): rejected by Gate 2 cross_rank_pattern on master.grad (yoco_adapter inspects p32.grad prior to adam.step()).
    - vec8 uint4 bf16-push kernel (0.1055 s): used 73 registers (> 64), halving SM_90 occupancy to 2 CTAs/SM; replaced by __launch_bounds__(256, 4) vec4 kernel (57 registers, 0 spills, full 4 CTAs/SM -> 0.1032 s).
    - Factored-exp FlashRetention & FA2 2.8.3 (8.77 ms) / PyTorch FLASH (7.08 ms) vs cuDNN SDPA (3.85 ms): cuDNN Hopper WGMMA SDPA remained >1.8× faster.
- Changes:
  - yoco/models/csrc/yoco_fast_optim/yoco_fast_optim_c.cu & yoco/models/_fast_optim_lib.py:
    - Added __launch_bounds__(256, 4) adamw_fp32grad_bf16push_vec4_desc_kernel (57 regs, 0 spills) + build_desc6 configurable alignment, pushing bf16 weights directly into peer rank's SymmetricMemory p16 buffer (plus adamw_bf16grad_bf16push_desc_kernel, 62 regs, for Round 11 zero-overhead bf16-grad reads while keeping _unscale_grads()).
    - Added yoco_ddp_buckets.cpp / libyoco_ddp_buckets.so (YOCO_OPT_TAPERED_DDP_BUCKETS, off by default).
  - yoco/models/opt_patches.py:
    - Added YOCO_OPT_SYMM_BF16_PUSH=1 (SYMM_ADAM_GRID=528): rebinds peer-owned p16.data on Step 0 into a 16-byte-aligned SymmetricMemory bf16 buffer and runs a single persistent adamw_fp32grad_bf16push_vec4_desc launch bracketed by 2 symm_hdl.barrier calls (zero fp32_to_bf16_desc_kernel).
    - Overlapped log_interval 6-double pinned DtoH copy on a side stream before optimizer_step.
    - Fixed _BUCKET_VIEWS capture to p.ndim in (1, 2) eliminating 54× RMSNorm dw DtoD copies.
- Results:
  - End: 2026-11-20 10:59 UTC
  - quick_r10g (Gate 0 + Gate 2): PASS (0 exact failures, 0 errors).
  - Full check (/tmp/r10/check_r10g/check.json): PASS (N1, 0 exact failures, 2108 diagnostic violations, trajectory equivalent within -0.0539σ .. -1.3833σ, loss_u100_200 = -0.9575σ, speedup = 2.2868, 0.1032 s/update, window_s = [1.031, 1.032], 39,703 tok/s, peak alloc 54.58 GiB / reserved 55.55 GiB).
  - Commit: Round 10 committed on branch opt; /submission/switches.json promoted.

---
—Round 11 · continuation (the agent's new log after resuming; it did not number rounds)
### Current Best (Verified Full bench.py check PASS)
- Commit: a9770e5 on branch opt (Round 11)
- Live Config: /submission/switches.json
- Speedup: 2.3028× on current host (0.1015 s/update vs frozen reference 0.23373 s/update; 0.1010 s/update / 2.3366× vs prior 0.2360 s/update reference)
- Correctness: PASS (N1 statistical; 0 errors, 0 exact failures, 2096 diagnostic violations; trajectory endpoints all within [-0.6158σ, +0.4358σ] vs 3.0σ bound)

### Round Progression
- Baseline: 0.2360 s/update (prior host) / 0.23373 s/update (current host), 1.000×
- Round 1 (6840172): OSS bidir P2P broadcast, skip dead fp32 zero_grad, DDP bucket view, async host stats -> 0.2009 s/update (1.1747×, N0 PASS)
- Round 2 (7c026cd): fused bf16 L2 norm, vectorized bf16*scale->fp32, 8-chunk overlapped Adam/P2P/fp32->bf16 -> 0.1691 s/update (1.3956×, N0 PASS)
- Round 3 (4b56bee): fast MPU bypass, cached RoPE, fused Triton CrossEntropy, regional functional torch.compile -> 0.1417 s/update (1.6596×, N1 PASS)
- Round 4 (799b3fd): PyTorch 2.8+cu128, cuDNN 9.10 SDPA, DDP sum-only hook, ABI-independent fused AdamW+bf16 -> 0.1333 s/update (1.7704×, N1 PASS)
- Round 5 (ff0d45b): cuDNN SDPA fix, sm_90 CUDA RMSNorm/RoPE/SwiGLU, SymmetricMemory Fused AdamW+NVLink Push -> 0.1192 s/update (1.9799×, N1 PASS)
- Round 6 (552ebe3): zero-copy DDP bucket-view dW, overlapped DDP hook L2 norm, fused add+RMSNorm/subln-transpose/scaled-RoPE -> 0.1146 s/update (2.0593×, N1 PASS)
- Round 7 (6feced2): FlashRetention (cross+inner), interlayer add+RMSNorm fusion, persistent streaming optimizer, per-layer CUDAGraphs -> 0.1122 s/update (2.1034×, N1 PASS)
- Round 8 (d933359): chained CUDAGraphs, sparse 2-rank embed AR, fwd cuBLASLt, fused GateRetPrep, split Self0, SM-balanced SymmAdamW -> 0.1087 s/update (2.1711×, N1 PASS)
- Round 9 (c99b7c1): DualLinear/PentaLinear in-place addmm, FullGatedRetention, _bwd_recurrence_nolast, zero-copy RMSNorm dw, 384-CTA streaming kernels, 600MB DDP buckets -> 0.1077 s/update (2.1913×, N1 PASS)
- Round 10 (6dd84ef): Direct SymmetricMemory BF16 weight push (SYMM_BF16_PUSH), 57-reg vec4 AdamW, overlapped log_interval DtoH, 1D RMSNorm zero-copy dw -> 0.1032 s/update (2.2868×, N1 PASS)
- Round 11 (a9770e5):
  - YOCO_OPT_SYMM_BF16_READ_G16=1: After _unscale_grads() populates all p32.grad (preserving Gate-2 master.grad contract), SYMM_BF16 AdamW reads 3.44 GB p16.grad + saved scale_t via adamw_bf16grad_bf16push_desc instead of 6.89 GB p32.grad (-3.44 GB HBM3e reads, -0.85 ms, bitwise exact via __fmul_rn).
  - YOCO_OPT_CUBLASLT_TUNED=r11: Symmetric A-B-B-A 700W-verified deterministic cuBLASLt tiles for dW_fc1 (20,35,5), dW_fc2 (20,35,5), lm_dW (29,35,3), 3k3k_fwd (20,35,3) (incl. _BucketPentaLinear), and dX_fc1_b1 (20,35,3) (+1.10 ms standalone).
  - YOCO_OPT_TAPERED_DDP_BUCKETS=3 (default L2_MAX_BLOCKS=1024): 12 backward-ordered buckets tapering to self0_ffn (151MB) and self0_mixer+sparse_embed (94MB) (-0.9 ms exposed tail).
  - Full bench.py check: PASS — 0.1015 s/update (2.3028× vs 0.23373 s ref; 0 exact failures, trajectory [-0.6158σ, +0.4358σ]).
↑ YOCO