Hy4 1.04×

Harness: Codex · switches: NANOCHAT_INDUCTOR_MAX_AUTOTUNE=1 NANOCHAT_INDUCTOR_COORD_DESC=1 NANOCHAT_INDUCTOR_MAX_AUTOTUNE_POINTWISE=1 NANOCHAT_FP8_BWD_FAST_ACCUM_GW=1 NANOCHAT_FP8_BWD_FAST_ACCUM_GW_SHAPES=6144x1536,1536x6144 NANOCHAT_FP8_BWD_FAST_ACCUM_GI=1 NANOCHAT_FP8_BWD_FAST_ACCUM_GI_SHAPES=6144x1536,1536x6144 NANOCHAT_OVERLAP_GRAD_REDUCE=1

Judged
1.04×
Tier
N0
Self-best
1.05×
Rounds
19
Hours
10.0
API cost
$5.41
Input tokens · 95.3% cached
59 M
Output tokens
0.3 M
Requests
401
Micro-batch regrouping 4×16 → 2×32
✗ not in the log; the micro-batch layout was never changed
Scope of hand-written kernels replacing Inductor glue
✗ no kernel written, although Inductor's Triton glue kernels were 40.9% of GPU time; only Inductor options (autotuning, see last column)
Per-shape cuBLASLt algorithm selection
✗ no per-shape selection; a global switch to cuBLASLt (NANOCHAT_PREFER_CUBLASLT) gave only 1.0026×
FP8 weights quantized once per step
✗ tried (NANOCHAT_CACHE_FP8_WEIGHT, bitwise identical), only 1.0005×, not adopted
Fast accum on backward GEMMs
✓ only on the two MLP weight shapes: NANOCHAT_FP8_BWD_FAST_ACCUM_GW + NANOCHAT_FP8_BWD_FAST_ACCUM_GI, 1.0231 → 1.0421× (lower precision: no periodic FP32 promotion while accumulating); on all shapes it failed the statistical gate
Other main levers
Inductor autotuning (three NANOCHAT_INDUCTOR_* switches), → 1.0231×, at the cost of a ~677 s cold compile; NANOCHAT_OVERLAP_GRAD_REDUCE launches the grad reductions during the last micro-batch's backward, 1.0421 → 1.0437× (within noise)
Raw work log60 sections
0.1 hRound 1 — baseline profile and timing
- Start: 2026-11-19 (UTC; exact time recorded in the command logs).
- Tree: unchanged upstream reference, switches /submission/switches.json = {"environment": {}}.
- Goal: establish the judge's stage/kernel hotspot profile and one cold-cache time baseline before edits.
- Commands and artifacts: pending.
- GPU state before run: no visible compute processes, 1143 MiB/GPU, but nvidia-smi reports ~100% SM utilization and ~690 W; noted as a possible shared/power-cap noise source.
- Long job: profile updates 12..13, then one 34-update time run; both with /submission/switches.json.
- Round-1 start time: 2026-11-19T01:46:39Z, long-job PID: 224691, log: /tmp/nc-r1-20261119T014639Z.log, profile out: /tmp/nc-r1-profile-20261119T014639Z, time out: /tmp/nc-r1-time-20261119T014639Z.
0.1 hRound 1 result
- End: 2026-11-19T01:52:56Z.
- Profile (/tmp/nc-r1-profile-20261119T014639Z/timing_profile.trace.json, table timing_profile.profile.txt):
  - GPU kernel total over two profiled updates: 1.964 s; forward compiled graph 589 ms (29.9%, 73.7 ms/call), backward compiled graph 1.280 s (64.9%, 160.0 ms/call), optimizer/communication ~148 ms (7.5%).
  - Coarse kernel buckets: FP8/cuBLAS nvjet GEMMs 872 ms (44.4%); Inductor Triton pointwise/reduction/layout kernels 803 ms (40.9%); FA3/CUTLASS attention 213 ms (10.9%); NCCL 48 ms (2.5%); ATen elementwise 20 ms (1.0%).
  - Largest individual kernels: nvjet_qrtst_128x160... 310 ms (15.8%), nvjet_qqtst_256x128... 169 ms (8.6%), nvjet_qrtst_144x128... 160 ms (8.1%), the fused backward quantization/ReLU Triton kernel 127 ms (6.5%), nvjet_qqtst_192x192... 89 ms (4.6%), nvjet_qrtst_144x128..._TNN 85 ms (4.3%), FA3 backward 84+48 ms (6.7%).
  - Classification: compute + memory/layout, dominated by backward FP8 GEMMs and the quantization/layout kernels between them; not host-bound (GPU kernel time ≈ wall time per update).
- time: /tmp/nc-r1-time-20261119T014639Z/time.json, speedup_vs_frozen_reference=1.0007, s_per_update=0.9945, windows [0.9892, 0.9962, 0.9982], peak allocated 55.94 GiB, FA3 active, no invalid signatures.
- check: none (baseline already passed in preparation); no code change, no commit.
- Next hotspot: backward FP8 GEMM path — first screen use_fast_accum and a lossless cross-micro-batch FP8 weight/layout cache, each behind its own switch.
0.1 hCurrent summary (after round 1)
- Current switch file: /submission/switches.json = {"environment": {}} (unchanged reference path).
- Latest full check: none in this session; preparation's reference full check was UNAVAILABLE/no_benefit at 1.0014.
- Gain breakdown: baseline time 1.0007; no accepted optimization yet.
- Directions not yet tried: FP8 backward fast accumulation, weight quantization/layout caching, compile modes, QKV packing, loss fusion, optimizer batching, communication overlap.
- Best evidence-backed submission: unchanged tree with empty switches; keep N0 until a gated change passes.
0.4 hRound 2 — FP8 backward GEMM/quantization switches
- Start: 2026-11-19T02:02:47Z.
- Profile used: round-1 baseline (backward FP8 GEMMs + quantization/layout are the largest class).
- Change: nanochat/fp8.py gains two off-by-default switches: NANOCHAT_FP8_BWD_FAST_ACCUM=1 uses use_fast_accum=True in the two backward FP8 GEMMs; NANOCHAT_CACHE_FP8_WEIGHT=1 caches each weight's FP8 quantization and column-major copy for the four micro-batches of one optimizer update (invalidated by the parameter version counter).
- Switch files: /tmp/nc-sw-fast.json, /tmp/nc-sw-cache.json, /tmp/nc-sw-both.json; /submission/switches.json remains empty until evidence.
- Long job PID/log: recorded below.
- Round-2 screening job PID: 255696, log: /tmp/nc-r2-screen-20261119T020247Z.log, output prefix: /tmp/nc-r2-20261119T020247Z.
0.4 hRound 2 screening (first job)
- time fast-only: /tmp/nc-r2-20261119T020247Z-time-fast/time.json, speedup_vs_frozen_reference=1.0275, windows [0.9643, 0.9692, 0.9722], s/update 0.9686.
- time cache-only and both: ERROR during compile (shape [16, 2048, 6144] is invalid for input of size 50331648). Cause: id()-keyed cache reused a FakeTensor entry for a different linear during Dynamo tracing. Fixed by storing a weak reference to the weight and checking identity plus _version.
- check --quick default switches: PASS, tier N0. Fast-only: NOT_BITWISE (exact items pass, parameter hashes differ). Cache-only and both: ERROR from the same compile bug.
- Next job: retest cache/both timing and exactness; run check --n1 on fast-only for the statistical gate.
- Round-2 validation job start: 2026-11-19T02:14:49Z, PID: 286376, log: /tmp/nc-r2-validate-20261119T021449Z.log, output prefix: /tmp/nc-r2v-20261119T021449Z.
0.4 hRound 2 validation and conclusion
- End: 2026-11-19T02:30:21Z.
- Cache fix: weak-reference identity check prevents FakeTensor id() reuse; time cache-only now runs but speedup_vs_frozen_reference=1.0005 (/tmp/nc-r2v-20261119T021449Z-time-cache/time.json), and check --quick cache-only is PASS/N0. No measurable end-to-end gain, so the cache is not adopted alone.
- time both switches: speedup_vs_frozen_reference=1.0325 (/tmp/nc-r2v-20261119T021449Z-time-both/time.json); check --quick both is NOT_BITWISE with exact items passing.
- check --n1 fast-only: INCORRECT / different (/tmp/nc-r2v-20261119T021449Z-n1-fast/check.json). Every endpoint is beyond 3 sigma: -4.30, -4.96, -8.06, -15.36, -10.15, -6.67 sigma; loss is systematically lower by ~0.06-0.25. Fast accumulation is rejected by the judge despite 1.0275 timing.
- The both-switch 1.0325 timing is not deployable because it contains the same rejected fast-accumulation change; no N1 run is needed to reject it.
- Submission remains with /submission/switches.json empty (N0 reference path).
0.4 hCurrent summary (after round 2)
- Current switch file: /submission/switches.json = {"environment": {}}; code has off-by-default switches only.
- Latest full check: none in this session; latest full check-equivalent evidence is check --n1 fast-only INCORRECT and check --quick default/cache PASS N0.
- Gain breakdown: baseline 1.0007; fast accum 1.0275 but rejected N1; cache 1.0005 N0/no benefit; both 1.0325 but rejected by association.
- Directions that did not work: backward use_fast_accum=True (N1 different, all endpoints beyond 3 sigma), cross-micro-batch FP8 weight/layout cache (bitwise N0 but no measurable gain).
- Best evidence-backed submission: unchanged behavior with empty switches; no passing full check yet.
- Next: screen compile-time autotuning/configuration (allowed by the task) and split fast accumulation by GEMM only if needed; keep every candidate behind its own switch.
0.9 hRound 3 — Inductor autotuning and CUDA graphs
- Start: 2026-11-19T02:34:08Z.
- Profile used: round-1 baseline (current best tree is still the unchanged reference path; Inductor Triton kernels are 40.9% of GPU time, FP8/cuBLAS GEMMs 44.4%).
- Change: scripts/base_train.py sets global Inductor options from three off-by-default switches before any torch.compile decorators are imported: NANOCHAT_INDUCTOR_MAX_AUTOTUNE, NANOCHAT_INDUCTOR_COORD_DESC, NANOCHAT_INDUCTOR_CUDAGRAPHS. Compile-time autotuning is explicitly allowed by the task.
- Switch files: /tmp/nc-sw-autotune.json (max-autotune + coordinate descent), /tmp/nc-sw-cudagraphs.json, /tmp/nc-sw-autotune-cudagraphs.json (all three).
- Long job PID/log: recorded below.
- Round-3 time job PID: 346531, log: /tmp/nc-r3-time-20261119T023408Z.log, output prefix: /tmp/nc-r3-20261119T023408Z.
0.9 hRound 3 conclusion
- End: 2026-11-19T03:00:21Z.
- GPU state during this round changed: after the earlier hidden ~690 W/100% load disappeared, GPUs were idle (~0%, ~120 W, ~8 GiB) for the later runs. Frozen-reference comparisons may therefore be optimistic; final evaluation pairs fresh references.
- time max-autotune + coordinate descent: /tmp/nc-r3-20261119T023408Z-time-autotune/time.json, speedup_vs_frozen_reference=1.0197, s_per_update=0.976, windows [0.9720, 0.9761, 0.9799], wall 720 s due to cold autotuning compile. This is just below the 1.02 benefit bar; correctness not yet checked.
- time CUDA graphs only: ERROR, rank 1 SIGSEGV; /tmp/nc-r3-20261119T023408Z-time-cudagraphs/time.json.
- time autotune + CUDA graphs: ERROR, both ranks SIGSEGV; /tmp/nc-r3-20261119T023408Z-time-autotune-cudagraphs/time.json. Drop CUDA graphs globally.
- No check run yet for autotune; submission still uses empty switches.
0.9 hCurrent summary (after round 3)
- Current switch file: /submission/switches.json = {"environment": {}}; code has off-by-default FP8 and Inductor switches.
- Latest full check: none in this session. Latest correctness evidence: default/cache quick PASS N0; fast accum N1 INCORRECT.
- Gain breakdown: baseline 1.0007; fast accum 1.0275 rejected; cache 1.0005 N0/no gain; Inductor max-autotune+coordinate-descent 1.0197 (below bar, correctness pending); CUDA graphs ERROR.
- Directions that did not work: backward fast accumulation (N1 different), weight/layout cache (N0 no gain), global CUDA graphs (SIGSEGV).
- Best evidence-backed submission: unchanged behavior with empty switches; no passing full check yet.
- Next: validate autotune correctness and search compile configs (max_autotune_gemm, aggressive/benchmark fusion); split fast accumulation by GEMM only if a smaller numeric perturbation passes N1.
1.6 hRound 4 — profile autotune path and isolate backward GEMM precision
- Start: 2026-11-19T03:17:40Z.
- Profile used: round-1 baseline; round-4 profiles the strongest unvalidated configuration (Inductor max-autotune + coordinate descent) before further changes.
- Long job PID: 429616, log: /tmp/nc-r4-profile-20261119T031500Z.log, profile out: /tmp/nc-r4-profile-20261119T031500Z.
- Submission remains /submission/switches.json = {"environment": {}} while experiments are screened.
1.6 hRound 4 conclusion
- End: 2026-11-19T03:49:28Z.
- Profile (/tmp/nc-r4-profile-20261119T031500Z/timing_profile.profile.txt): cold autotune compile took 677 s to first update; profiled GPU kernel total 1.932 s over two updates vs 1.971 s baseline. Backward compiled graph 1.265 s (65.5%), forward 561.5 ms (29.1%), FP8/cuBLAS GEMMs 838 ms (43.4%), FA3 backward 164 ms (8.5%), optimizer 83.0 ms (4.3%). Autotune mainly reduced forward Inductor work (589→562 ms); GEMMs and backward quantization/layout are unchanged.
- Change: off-by-default NANOCHAT_FP8_BWD_FAST_ACCUM_GI / _GW split the two backward FP8 GEMMs; NANOCHAT_PREFER_CUBLASLT selects cuBLASLt; finer Inductor autotune/fusion switches were added. Non-deterministic production switches use a deterministic reference path when torch.are_deterministic_algorithms_enabled() is true; empty switches remain unchanged.
- time results: cuBLASLt 1.0026, fast-GI 1.0122, fast-GW 1.0181, fast-GI+cuBLASLt 1.0146 (/tmp/nc-r4-20261119T033500Z-time-*/time.json). Round-2 both-GEMM fast accum was 1.0275 but N1 INCORRECT.
- check --quick with all GEMM switches: PASS / N0 (/tmp/nc-r4-20261119T033500Z-quick-all-gemm/check.json), confirming deterministic guards and exact items.
- Submission still uses /submission/switches.json = {"environment": {}}; no candidate has yet passed a full check or exceeded the 1.02 benefit bar alone.
1.6 hCurrent summary (after round 4)
- Current switch file: /submission/switches.json = {"environment": {}} (unchanged reference path).
- Latest full check: none in this session; preparation's reference full check was UNAVAILABLE/no_benefit at 1.0014.
- Gain breakdown: baseline 1.0007; autotune+coordinate descent 1.0197 (below bar, production correctness pending); fast-GW 1.0181; fast-GI 1.0122; cuBLASLt 1.0026; both fast accum 1.0275 rejected N1; FP8 cache 1.0005 N0/no gain; CUDA graphs ERROR.
- Directions that did not work: backward fast accumulation on both GEMMs (N1 different), FP8 weight/layout cache (N0 no gain), global CUDA graphs (SIGSEGV), cuBLASLt alone (no meaningful gain).
- Best evidence-backed submission: unchanged behavior with empty switches; no passing full check yet.
- Next: run check --n1 on fast-GW and fast-GI separately, then combine the passing split with Inductor autotune to exceed the 1.02 bar and validate the combined production path.
2.2 hRound 5 — statistical screen and combined timing
- Start: 2026-11-19T03:50:00Z.
- Profile used: round-4 autotune profile and round-1 baseline (no code change this round; same GEMM/Inductor hotspot class).
- Long job: PID logged below; output prefix /tmp/nc-r5-20261119T035000Z.
- Submission remains /submission/switches.json = {"environment": {}} until a full check passes.
- Round-5 long job PID: 565390, log: /tmp/nc-r5-screen-20261119T035000Z.log, output prefix: /tmp/nc-r5-20261119T035000Z.
2.2 hRound 5 conclusion
- End: 2026-11-19T04:17:29Z.
- check --n1 fast-GW: INCORRECT; only probe_s050_080 is beyond the bound (-0.04222 vs -0.04155), with endpoint biases -0.05σ, -0.07σ, -2.32σ, -3.05σ, -1.69σ, -0.74σ.
- check --n1 fast-GI: INCORRECT; four endpoints beyond the bound, up to -8.29σ (bias -0.115).
- check --n1 autotune+coordinate descent: PASS / N1, all endpoints within 0.17σ (/tmp/nc-r5-20261119T035000Z-n1-autotune/check.json). Autotune compile makes this run 14.4 minutes.
- No combined timing was run because neither split fast-accum path passed N1; submission remains empty switches.
2.2 hCurrent summary (after round 5)
- Current switch file: /submission/switches.json = {"environment": {}}.
- Latest full check: none in this session; preparation's reference full check was UNAVAILABLE/no_benefit at 1.0014.
- Gain breakdown: baseline 1.0007; autotune+coordinate descent 1.0197 and N1 PASS (below 1.02 bar); fast-GW 1.0181 but N1 INCORRECT; fast-GI 1.0122 but N1 INCORRECT; both fast accum 1.0275 rejected N1; cuBLASLt 1.0026; FP8 cache 1.0005 N0/no gain; CUDA graphs ERROR.
- Directions that did not work: all backward fast-accum variants tested so far (N1 different), FP8 weight/layout cache (N0 no gain), global CUDA graphs (SIGSEGV), cuBLASLt alone (no meaningful gain).
- Best evidence-backed submission: unchanged behavior with empty switches; autotune alone is the only N1-passing candidate but does not clear the benefit bar.
- Next: search Inductor autotune/fusion configs for a clean >1.02 gain, then full-check the winning configuration; shape-restricted fast-GW remains a fallback.
2.6 hRound 6 — Inductor configuration search
- Start: 2026-11-19T04:18:00Z.
- Profile used: round-4 autotune profile (forward Inductor kernels improved, backward/GEMM dominant) and round-1 baseline (Inductor pointwise/reduction ~40.9% GPU time).
- Switch screening: pointwise autotune, pointwise+GEMM autotune, and aggressive/benchmark fusion, each combined with the N1-passing autotune+coordinate-descent baseline.
- Submission remains /submission/switches.json = {"environment": {}}.
- Round-6 long job PID: 664982, log: /tmp/nc-r6-screen-20261119T041800Z.log, output prefix: /tmp/nc-r6-20261119T041800Z.
2.6 hRound 6 conclusion (aborted and fixed)
- End: 2026-11-19T04:32:38Z.
- Finding: check --quick with autotune flags enabled still benchmarked many tiny Triton GEMM configurations in deterministic record mode (/tmp/nc-r6-20261119T041800Z-quick-autotune/record_cand.log), despite the bench's first-configuration patch. The run exceeded 12 minutes with no result, so the round-6 GPU job was stopped and its child processes terminated.
- Change: all Inductor autotune/fusion switches are now disabled when torch.are_deterministic_algorithms_enabled() is true, so gate 2 uses the unchanged reference compile path; production timing/traj still uses the requested autotune configuration. This is the deterministic path required for code with no deterministic implementation.
- time: none completed in this round; prior autotune-only result remains 1.0197.
- check: none completed in this round; quick check will be rerun after the guard.
- Submission remains /submission/switches.json = {"environment": {}}.
2.9 hRound 7 — guarded Inductor configuration search
- Start: 2026-11-19T04:34:00Z.
- Profile used: round-4 autotune profile and round-1 baseline; hotspot class remains Inductor pointwise/reduction kernels (~40.9% GPU time).
- Screening: deterministic-mode N0 quick check for autotune-only, then time for pointwise autotune and aggressive/benchmark fusion, then quick check for the best config.
- Submission remains /submission/switches.json = {"environment": {}}.
- Round-7 long job PID: 728306, log: /tmp/nc-r7-screen-20261119T043400Z.log, output prefix: /tmp/nc-r7-20261119T043400Z.
2.9 hRound 7 conclusion
- End: 2026-11-19T05:09:00Z.
- check --quick autotune-only with deterministic guard: PASS / N0 (/tmp/nc-r7-20261119T043400Z-quick-autotune/check.json), 2.1 minutes.
- time pointwise autotune (NANOCHAT_INDUCTOR_MAX_AUTOTUNE_POINTWISE=1): speedup_vs_frozen_reference=1.0216, s_per_update=0.9742, windows [0.9698, 0.9741, 0.9788] (/tmp/nc-r7-20261119T043400Z-time-pointwise/time.json). This clears the 1.02 benefit bar.
- Fusion config (aggressive_fusion + benchmark_fusion + benchmark_combo_kernel) benchmarked 98 Triton choices per GEMM and exceeded 19 minutes without completing; the run was stopped and this direction dropped.
- check --quick for the best config was not reached before stopping the fusion run; the full check will validate gate 2 directly.
- /submission/switches.json is now the pointwise-autotune config, the best evidence-backed candidate.
2.9 hCurrent summary (after round 7)
- Current switch file: /submission/switches.json = {"environment": {"NANOCHAT_INDUCTOR_MAX_AUTOTUNE": "1", "NANOCHAT_INDUCTOR_COORD_DESC": "1", "NANOCHAT_INDUCTOR_MAX_AUTOTUNE_POINTWISE": "1"}}.
- Latest full check: pending (starting /tmp/nc-full-20261119T051000Z).
- Gain breakdown: baseline 1.0007; autotune+coordinate descent 1.0197 and N1 PASS; pointwise autotune 1.0216 (best, full check pending); fast-GW 1.0181 but N1 INCORRECT; fast-GI 1.0122 but N1 INCORRECT; both fast accum 1.0275 rejected N1; cuBLASLt 1.0026; FP8 cache 1.0005 N0/no gain; CUDA graphs ERROR.
- Directions that did not work: all backward fast-accum variants tested so far (N1 different), FP8 weight/layout cache (N0 no gain), global CUDA graphs (SIGSEGV), cuBLASLt alone (no meaningful gain), aggressive/benchmark fusion (compile too slow).
- Best evidence-backed submission: pointwise-autotune config; full check pending.
- Next: full check; shape-restricted fast-GW in /tmp/nc-mask-tree remains a fallback if the full check rejects the candidate.
- Full-check long job PID: 944333, log: /tmp/nc-full-20261119T051000Z.log, output: /tmp/nc-full-20261119T051000Z/check.json.
2.9 hFull check result (after round 7)
- End: 2026-11-19T05:39:17Z.
- /tmp/nc-full-20261119T051000Z/check.json: status=PASS, speedup=1.0231, tier=N0, verdict=bitwise.
- Gate 1 windows: candidate [0.9678, 0.9743, 0.9760] s/update, ratios [1.0224, 1.0218, 1.0252], reference spread 0.0019.
- Gate 2: bitwise identical (deterministic guard keeps the record path unchanged); gate 3: PASS / equivalent.
- Submission is now at a full-check-passing candidate. Further rounds experiment only with other switch files or separate trees; /submission/switches.json stays at this passing config unless a new candidate also passes a full check.
4.0 hRound 8 — GEMM+pointwise autotune screen
- Start: 2026-11-19T05:40:00Z.
- Profile used: round-4 autotune profile and round-1 baseline; GEMM and Inductor pointwise/reduction kernels remain the dominant class.
- Screening: /tmp/nc-sw-autotune-gemm-pointwise.json adds NANOCHAT_INDUCTOR_MAX_AUTOTUNE_GEMM=1 to the passing pointwise config; time plus check --quick.
- Submission remains at the full-check-passing pointwise config.
- Round-8 long job PID: 1085879, log: /tmp/nc-r8-screen-20261119T054000Z.log, output prefix: /tmp/nc-r8-20261119T054000Z.
4.0 hRound 8 conclusion
- End: 2026-11-19T05:47:00Z.
- time GEMM+pointwise autotune was stopped after 6 minutes: its log shows the same 98-choice-per-GEMM benchmarking as the rejected fusion config, so compile time would be impractically long. No time.json or check result.
- Submission remains at the full-check-passing pointwise config.
4.1 hRound 9 — shape-restricted fast-GW fallback
- Start: 2026-11-19T05:48:00Z.
- Profile used: round-4 autotune profile and round-1 baseline; FP8 backward GEMMs remain the largest compute class.
- Screening: separate tree /tmp/nc-mask-tree adds an off-by-default shape mask for grad-weight fast accumulation; switch file /tmp/nc-sw-ma<key>.json combines the MLP-only mask with the passing pointwise-autotune config.
- Sequence: check --quick, check --n1, time. Submission tree and /submission/switches.json remain at the full-check-passing candidate.
- Round-9 long job PID: 1112765, log: /tmp/nc-r9-screen-20261119T054800Z.log, output prefix: /tmp/nc-r9-20261119T054800Z.
4.1 hRound 9 conclusion
- End: 2026-11-19T06:16:22Z.
- check --quick MLP-mask + pointwise autotune: PASS / N0 (/tmp/nc-r9-20261119T054800Z-quick-mask/check.json).
- check --n1 same candidate: PASS / N1, all endpoint biases below 0.05σ (/tmp/nc-r9-20261119T054800Z-n1-mask/check.json).
- time same candidate: speedup_vs_frozen_reference=1.0349, s_per_update=0.9616, windows [0.9565, 0.9627, 0.9656] (/tmp/nc-r9-20261119T054800Z-time-mask/time.json). This improves the previous full-check speedup 1.0231.
- Change merged into /submission/nanochat/nanochat/fp8.py and committed; /submission/switches.json now enables pointwise autotune plus the MLP-only grad-weight fast-accum mask. Previous passing switch file saved at /tmp/nc-switches-prev-pass.json.
4.1 hCurrent summary (after round 9)
- Current switch file: /submission/switches.json = pointwise autotune + MLP-only grad-weight fast-accum mask.
- Latest full check: previous config /tmp/nc-full-20261119T051000Z/check.json PASS 1.0231 N0; new combined candidate full check pending at /tmp/nc-full2-20261119T061700Z.
- Gain breakdown: baseline 1.0007; pointwise autotune 1.0216 screening / 1.0231 full check; MLP mask + pointwise autotune 1.0349 screening, N0 quick and N1 PASS; autotune+coordinate descent 1.0197 N1 PASS; fast-GW 1.0181 N1 INCORRECT; fast-GI 1.0122 N1 INCORRECT; both fast accum 1.0275 rejected N1; cuBLASLt 1.0026; FP8 cache 1.0005 N0/no gain; CUDA graphs ERROR; aggressive fusion and GEMM+pointwise compile too slow.
- Directions that did not work: unrestricted backward fast accumulation, FP8 weight/layout cache, global CUDA graphs, cuBLASLt alone, aggressive/benchmark fusion, GEMM+pointwise autotune.
- Best evidence-backed submission: combined MLP-mask candidate pending full check; previous passing config retained at /tmp/nc-switches-prev-pass.json.
- Next: full check of combined candidate; revert to previous passing config if it fails.
- Combined full-check long job PID: 1256197, log: /tmp/nc-full2-20261119T061700Z.log, output: /tmp/nc-full2-20261119T061700Z/check.json.
4.1 hCombined full check result (after round 9)
- End: 2026-11-19T06:46:03Z.
- /tmp/nc-full2-20261119T061700Z/check.json: status=PASS, speedup=1.0339, tier=N0, verdict=bitwise.
- Gate 1 ratios [1.0333, 1.0333, 1.0352], reference spread 0.0019; gate 2 bitwise identical; gate 3 PASS / equivalent.
- Submission is at the combined MLP-mask candidate and has passed a full check.
5.1 hRound 10 — broader attention-shape mask screen
- Start: 2026-11-19T06:47:00Z.
- Profile used: round-4 autotune profile and round-1 baseline; FP8 backward GEMMs remain the largest compute class.
- Screening: separate tree /tmp/nc-mask-tree with switch file /tmp/nc-sw-ma<key>.json (attention-shape mask + passing pointwise autotune). Sequence: check --quick, check --n1, time.
- Submission remains at the full-check-passing MLP-mask + pointwise-autotune config.
5.1 hRound 10 conclusion
- End: 2026-11-19T07:15:48Z.
- Profile findings used: round-1 aten::_scaled_mm 42.41% CUDA time, largest FP8 GEMM kernels 15.75%/8.56%/8.12%, FA3 backward 8.28%, fused FP8 cast/quantize pointwise 6.43%; round-4 profile showed the same GEMM/pointwise class after pointwise autotune.
- Change screened only in a separate tree: broader 1536x1536 grad-weight fast-accum mask; no submission code or switch change.
- check --quick: PASS / N0 (/tmp/nc-r10-20261119T064700Z-quick-attn/check.json); check --n1: PASS / equivalent, all endpoint biases within 0.79σ (/tmp/nc-r10-20261119T064700Z-n1-attn/check.json).
- time: speedup_vs_frozen_reference=1.0218, s_per_update=0.9740, windows [0.9698, 0.9734, 0.9789] (/tmp/nc-r10-20261119T064700Z-time-attn/time.json).
- Rejected: this is slower than the current full-check winner 1.0339; the MLP-only mask remains enabled.
5.1 hCurrent summary (after round 10)
- Current switch file: /submission/switches.json = pointwise autotune + coordinate descent + MLP-only grad-weight fast-accum mask.
- Latest full check: /tmp/nc-full2-20261119T061700Z/check.json, PASS, speedup 1.0339, verdict bitwise / N0, gate 3 equivalent.
- Gain breakdown: baseline 1.0007; pointwise autotune 1.0216 screening / 1.0231 full check; MLP mask + pointwise autotune 1.0349 screening / 1.0339 full check; attention-shape mask 1.0218 screening; autotune+coordinate descent 1.0197 N1 PASS; unrestricted fast-GW 1.0181 N1 INCORRECT; fast-GI 1.0122 N1 INCORRECT; both fast accum 1.0275 rejected N1; cuBLASLt 1.0026; FP8 cache 1.0005 N0/no gain; CUDA graphs ERROR; aggressive fusion and GEMM+pointwise autotune compile too slowly.
- Directions that did not work: unrestricted backward fast accumulation, attention-only fast accumulation, FP8 weight/layout cache, global CUDA graphs, cuBLASLt alone, aggressive/benchmark fusion, GEMM+pointwise autotune.
- Best evidence-backed submission: current combined candidate, full check PASS 1.0339.
- Next: profile the current full-check winner to choose one fresh hotspot; keep all experiments in separate trees/configs until a full check beats it.
5.6 hRound 11 — profile current full-check winner
- Start: 2026-11-19T07:16:00Z.
- Profile command: bench.py profile --tree /submission/nanochat --config /submission/switches.json --out /tmp/nc-r11-profile-20261119T071600Z --from 12 --iters 2.
- Detached bench PID: 1537585; log: /tmp/nc-r11-profile-20261119T071600Z.log; output: /tmp/nc-r11-profile-20261119T071600Z/.
- Submission remains unchanged at the full-check-passing MLP-mask + pointwise-autotune config.
5.6 hRound 11 conclusion
- End: 2026-11-19T07:29:45Z.
- Fresh profile of the current full-check winner: /tmp/nc-r11-profile-20261119T071600Z/timing_profile.profile.txt.
- Top CUDA shares: aten::_scaled_mm 42.94%, leading FP8 GEMM kernels 16.20%/8.85%/7.81%/4.24%, FA3 backward 8.48%, fused FP8 cast/quantize pointwise 6.32%, optimizer step 4.38%, record_param_comms 2.51%. The FP8 backward GEMM class remains the dominant hotspot.
- No change and no timing/check in this profiling round; submission remains at the full-check-passing MLP-mask + pointwise-autotune config.
5.6 hCurrent summary (after round 11)
- Current switch file: /submission/switches.json = pointwise autotune + coordinate descent + MLP-only grad-weight fast-accum mask.
- Latest full check: /tmp/nc-full2-20261119T061700Z/check.json, PASS, speedup 1.0339, verdict bitwise / N0, gate 3 equivalent.
- Gain breakdown: baseline 1.0007; pointwise autotune 1.0216 screening / 1.0231 full check; MLP grad-weight mask + pointwise autotune 1.0349 screening / 1.0339 full check; attention-shape grad-weight mask 1.0218 screening; autotune+coordinate descent 1.0197 N1 PASS; unrestricted fast-GW 1.0181 N1 INCORRECT; fast-GI 1.0122 N1 INCORRECT; both fast accum 1.0275 rejected N1; cuBLASLt 1.0026; FP8 cache 1.0005 N0/no gain; CUDA graphs ERROR; aggressive fusion and GEMM+pointwise autotune compile too slowly.
- Directions that did not work: unrestricted backward fast accumulation, attention-only grad-weight fast accumulation, FP8 weight/layout cache, global CUDA graphs, cuBLASLt alone, aggressive/benchmark fusion, GEMM+pointwise autotune.
- Best evidence-backed submission: current combined candidate, full check PASS 1.0339.
- Next: screen an MLP-only grad-input fast-accum mask in an isolated tree; run N1 only if its judge timing beats 1.0339, and require a full check before adoption.
5.9 hRound 12 — isolated MLP grad-input fast-accum screen
- Start: 2026-11-19T07:33:30Z.
- Profile used: round-11 fresh profile of the current best tree; FP8 backward GEMMs 42.94% CUDA time are the chosen hotspot.
- Isolated tree: /tmp/nc-gi-tree-r11/nanochat/fp8.py adds an off-by-default NANOCHAT_FP8_BWD_FAST_ACCUM_GI_SHAPES mask, deterministic guard unchanged.
- Switch file: /tmp/nc-sw-gi-mlp-r11.json enables the current winner plus MLP-only grad-input fast accumulation.
- Sequence: check --quick, time, then check --n1 only if screening speedup exceeds 1.0339; all output dirs under /tmp/nc-r12-20261119T073000Z-*.
- Detached screen script PID: 1606856; log: /tmp/nc-r12-screen-20261119T073000Z.log.
- Submission remains unchanged at the full-check-passing MLP grad-weight mask + pointwise-autotune config.
5.9 hRound 12 conclusion
- End: 2026-11-19T08:02:18Z.
- Profile used: round-11 fresh profile; aten::_scaled_mm 42.94% CUDA time, leading FP8 GEMM kernels 16.20%/8.85%/7.81%/4.24%, FA3 backward 8.48%.
- Isolated change: /tmp/nc-gi-tree-r11/nanochat/fp8.py adds off-by-default NANOCHAT_FP8_BWD_FAST_ACCUM_GI_SHAPES and restricts grad-input fast accumulation to MLP shapes 6144x1536,1536x6144; deterministic path remains unchanged.
- check --quick: PASS / bitwise / N0 (/tmp/nc-r12-20261119T073000Z-quick-gi/check.json).
- time: speedup_vs_frozen_reference=1.0426, s_per_update=0.9545, windows [0.9499, 0.9563, 0.9575] (/tmp/nc-r12-20261119T073000Z-time-gi/time.json). This improves the current full-check winner 1.0339 by about 0.84%.
- check --n1: PASS / equivalent; endpoint biases are within 0.09σ (/tmp/nc-r12-20261119T073000Z-n1-gi/check.json).
- Full check on the isolated candidate is now running before adoption; /submission remains at the previous full-check-passing config.
- Full check command: check --tree /tmp/nc-gi-tree-r11 --config /tmp/nc-sw-gi-mlp-r11.json --out /tmp/nc-full3-20261119T080300Z; detached PID 1747812, log /tmp/nc-full3-20261119T080300Z.log.
5.9 hCurrent summary (after round 12)
- Current switch file: /submission/switches.json = pointwise autotune + coordinate descent + MLP-only grad-weight fast-accum mask (previous full-check winner).
- Latest passing full check: /tmp/nc-full2-20261119T061700Z/check.json, PASS, speedup 1.0339, verdict bitwise / N0, gate 3 equivalent.
- Pending full check: /tmp/nc-full3-20261119T080300Z/check.json for the isolated MLP grad-input + grad-weight mask candidate.
- Gain breakdown: baseline 1.0007; pointwise autotune 1.0216 screening / 1.0231 full check; MLP grad-weight mask + pointwise autotune 1.0349 screening / 1.0339 full check; MLP grad-input + grad-weight mask + pointwise autotune 1.0426 screening, quick N0, N1 PASS; attention-shape grad-weight mask 1.0218 screening; autotune+coordinate descent 1.0197 N1 PASS; unrestricted fast-GW 1.0181 N1 INCORRECT; fast-GI 1.0122 N1 INCORRECT; both fast accum 1.0275 rejected N1; cuBLASLt 1.0026; FP8 cache 1.0005 N0/no gain; CUDA graphs ERROR; aggressive fusion and GEMM+pointwise autotune compile too slowly.
- Directions that did not work: unrestricted backward fast accumulation, attention-only grad-weight fast accumulation, FP8 weight/layout cache, global CUDA graphs, cuBLASLt alone, aggressive/benchmark fusion, GEMM+pointwise autotune.
- Best evidence-backed submission: previous combined candidate, full check PASS 1.0339. Do not switch until full3 passes.
- Next: if full3 PASSes above 1.0339, merge the isolated code into /submission/nanochat, update /submission/switches.json, and commit separately; otherwise log the failure and keep the previous config.
5.9 hFull check result (after round 12)
- End: 2026-11-19T08:31:38Z.
- /tmp/nc-full3-20261119T080300Z/check.json: status=PASS, speedup=1.0421, tier=N0, verdict=bitwise, gate 3 equivalent.
- Gate 1 window ratios [1.0413, 1.0408, 1.0442], reference spread 0.0019.
- Merged into /submission/nanochat/nanochat/fp8.py and committed as 950469f ("Add shape-restricted grad-input fast accumulation (N0 deterministic/N1 production; time 1.0426)"). /submission/switches.json now enables both MLP-only grad-input and grad-weight fast-accum masks; previous passing switch file saved at /tmp/nc-switches-prev-pass2.json.
6.9 hRound 13 — profile merged full-check winner
- Start: 2026-11-19T08:32:00Z.
- Profile command: bench.py profile --tree /submission/nanochat --config /submission/switches.json --out /tmp/nc-r13-profile-20261119T083200Z --from 12 --iters 2.
- Detached bench PID: 1886173; log: /tmp/nc-r13-profile-20261119T083200Z.log; output: /tmp/nc-r13-profile-20261119T083200Z/.
- Submission remains unchanged at the full-check-passing MLP grad-input + grad-weight mask config.
6.9 hRound 13 conclusion
- End: 2026-11-19T08:44:46Z.
- Fresh profile of the merged full-check winner: /tmp/nc-r13-profile-20261119T083200Z/timing_profile.profile.txt.
- Top CUDA shares: aten::_scaled_mm 42.59%, leading FP8 GEMM kernels 8.87%/7.78%/6.97%/4.77%/4.71%/4.24%/4.09%, FA3 backward 8.48%, fused FP8 cast/quantize pointwise 6.33%, optimizer step 4.49%, record_param_comms 2.60%. The FP8 backward GEMM class remains dominant; the 128x160 kernel dropped from 16.20% in round 11 to 6.97% after MLP grad-input fast accumulation.
- No change and no timing/check in this profiling round; submission remains at the full-check-passing MLP grad-input + grad-weight mask config.
6.9 hCurrent summary (after round 13)
- Current switch file: /submission/switches.json = pointwise autotune + coordinate descent + MLP-only grad-input and grad-weight fast-accum masks.
- Latest full check: /tmp/nc-full3-20261119T080300Z/check.json, PASS, speedup 1.0421, tier N0, verdict bitwise.
- Gain breakdown: baseline 1.0007; pointwise autotune 1.0216 screening / 1.0231 full check; MLP grad-weight mask + pointwise autotune 1.0349 screening / 1.0339 full check; MLP grad-input + grad-weight mask + pointwise autotune 1.0426 screening / 1.0421 full check; attention-shape grad-weight mask 1.0218 screening; autotune+coordinate descent 1.0197 N1 PASS; unrestricted fast-GW 1.0181 N1 INCORRECT; fast-GI 1.0122 N1 INCORRECT; both fast accum 1.0275 rejected N1; cuBLASLt 1.0026; FP8 cache 1.0005 N0/no gain; CUDA graphs ERROR; aggressive fusion and GEMM+pointwise autotune compile too slowly.
- Directions that did not work: unrestricted backward fast accumulation, attention-only grad-weight fast accumulation, FP8 weight/layout cache, global CUDA graphs, cuBLASLt alone, aggressive/benchmark fusion, GEMM+pointwise autotune.
- Best evidence-backed submission: current merged candidate, full check PASS 1.0421.
- Next: screen the lm-head shape in both fast-accum masks using only a switch file; require a full check above 1.0421 before adoption.
7.1 hRound 14 — lm-head shape-mask screen
- Start: 2026-11-19T08:45:00Z.
- Profile used: round-13 fresh profile; FP8 backward GEMMs 42.59% CUDA time remain the chosen hotspot.
- Switch file: /tmp/nc-sw-ma<key>.json adds 32768x1536 (lm_head) to both MLP shape masks; no tree changes.
- Sequence: check --quick, time, then check --n1 only if screening speedup exceeds the current full-check winner 1.0421; output dirs under /tmp/nc-r14-20261119T084500Z-*.
- Detached screen script PID: 1956302; log: /tmp/nc-r14-screen-20261119T084500Z.log.
- Submission remains unchanged at the full-check-passing MLP grad-input + grad-weight mask config.
7.1 hRound 14 conclusion
- End: 2026-11-19T09:13:27Z.
- Profile used: round-13 fresh profile; FP8 backward GEMMs 42.59% CUDA time were the chosen hotspot.
- Isolated switch: /tmp/nc-sw-ma<key>.json added 32768x1536 to both MLP shape masks; no tree changes.
- check --quick: PASS / bitwise / N0 (/tmp/nc-r14-20261119T084500Z-quick-lmhead/check.json).
- time: speedup_vs_frozen_reference=1.0424, s_per_update=0.9547, windows [0.9523, 0.9561, 0.9558] (/tmp/nc-r14-20261119T084500Z-time-lmhead/time.json); only 0.0003 above the full-check winner, within noise.
- check --n1: INCORRECT / different (/tmp/nc-r14-20261119T084500Z-n1-lmhead/check.json); endpoint biases range from -4.175σ to -13.384σ.
- Rejected: lm-head fast accumulation changes numerics too much for a negligible speedup. No full check and no submission change.
7.1 hCurrent summary (after round 14)
- Current switch file: /submission/switches.json = pointwise autotune + coordinate descent + MLP-only grad-input and grad-weight fast-accum masks.
- Latest full check: /tmp/nc-full3-20261119T080300Z/check.json, PASS, speedup 1.0421, tier N0, verdict bitwise.
- Gain breakdown: baseline 1.0007; pointwise autotune 1.0216 screening / 1.0231 full check; MLP grad-weight mask + pointwise autotune 1.0349 screening / 1.0339 full check; MLP grad-input + grad-weight mask + pointwise autotune 1.0426 screening / 1.0421 full check; lm-head shape-mask extension 1.0424 screening but N1 INCORRECT; attention-shape grad-weight mask 1.0218 screening; autotune+coordinate descent 1.0197 N1 PASS; unrestricted fast-GW 1.0181 N1 INCORRECT; fast-GI 1.0122 N1 INCORRECT; both fast accum 1.0275 rejected N1; cuBLASLt 1.0026; FP8 cache 1.0005 N0/no gain; CUDA graphs ERROR; aggressive fusion and GEMM+pointwise autotune compile too slowly.
- Directions that did not work: unrestricted backward fast accumulation, attention-only grad-weight fast accumulation, lm-head shape-mask extension, FP8 weight/layout cache, global CUDA graphs, cuBLASLt alone, aggressive/benchmark fusion, GEMM+pointwise autotune.
- Best evidence-backed submission: current merged candidate, full check PASS 1.0421.
- Next: screen isolated Inductor compile-configuration switches; require a full check above 1.0421 before adoption.
7.6 hRound 15 — Inductor compile-configuration screen
- Start: 2026-11-19T09:14:00Z.
- Profile used: round-13 fresh profile of the current best tree; fused FP8 pointwise/reduction kernels (6.33% plus several 1–2% kernels) and optimizer/launch overhead (4.49%) are the chosen class.
- Isolated tree: /tmp/nc-inductor-tree-r14/scripts/base_train.py adds off-by-default NANOCHAT_INDUCTOR_MULTI_KERNEL and NANOCHAT_INDUCTOR_GROUP_FUSION switches; deterministic guard unchanged.
- Switch file: /tmp/nc-sw-inductor-r14.json enables both on top of the current winning config.
- Sequence: check --quick, time, then check --n1 only if screening speedup exceeds 1.0421; output dirs under /tmp/nc-r15-20261119T091400Z-*.
- Detached screen script PID: 2093431; log: /tmp/nc-r15-screen-20261119T091400Z.log.
- Submission remains unchanged at the full-check-passing MLP grad-input + grad-weight mask config.
7.6 hRound 15 conclusion
- End: 2026-11-19T09:25:22Z.
- Profile used: round-13 fresh profile; fused pointwise/reduction kernels and optimizer/launch overhead were the chosen class.
- Isolated tree: /tmp/nc-inductor-tree-r14/scripts/base_train.py added off-by-default NANOCHAT_INDUCTOR_MULTI_KERNEL and NANOCHAT_INDUCTOR_GROUP_FUSION; deterministic guard unchanged.
- check --quick: PASS / N0 (/tmp/nc-r15-20261119T091400Z-quick-inductor/check.json).
- time: ERROR (/tmp/nc-r15-20261119T091400Z-time-inductor/time.json); the production autotuner hit TypeError: only integer tensors of a single element can be converted to an index in Inductor's multi-kernel static CUDA launcher. No speedup and no N1 result.
- Rejected: multi-kernel compile autotuning is incompatible with this workload/runtime. No submission change; group_fusion alone remains a possible later screen.
7.6 hCurrent summary (after round 15)
- Current switch file: /submission/switches.json = pointwise autotune + coordinate descent + MLP-only grad-input and grad-weight fast-accum masks.
- Latest full check: /tmp/nc-full3-20261119T080300Z/check.json, PASS, speedup 1.0421, tier N0, verdict bitwise.
- Gain breakdown: baseline 1.0007; pointwise autotune 1.0216 screening / 1.0231 full check; MLP grad-weight mask + pointwise autotune 1.0349 screening / 1.0339 full check; MLP grad-input + grad-weight mask + pointwise autotune 1.0426 screening / 1.0421 full check; lm-head shape-mask extension 1.0424 screening but N1 INCORRECT; attention-shape grad-weight mask 1.0218 screening; autotune+coordinate descent 1.0197 N1 PASS; unrestricted fast-GW 1.0181 N1 INCORRECT; fast-GI 1.0122 N1 INCORRECT; both fast accum 1.0275 rejected N1; cuBLASLt 1.0026; FP8 cache 1.0005 N0/no gain; CUDA graphs ERROR; aggressive fusion and GEMM+pointwise autotune compile too slowly; Inductor multi-kernel timing ERROR.
- Directions that did not work: unrestricted backward fast accumulation, attention-only grad-weight fast accumulation, lm-head shape-mask extension, FP8 weight/layout cache, global CUDA graphs, cuBLASLt alone, aggressive/benchmark fusion, GEMM+pointwise autotune, Inductor multi-kernel autotuning.
- Best evidence-backed submission: current merged candidate, full check PASS 1.0421.
- Next: screen earlier gradient-reduction overlap in an isolated tree; require a full check above 1.0421 before adoption.
7.8 hRound 16 — gradient-reduction overlap screen
- Start: 2026-11-19T09:26:00Z.
- Profile used: round-13 fresh profile; record_param_comms 2.60%, NCCL all-gather 1.31%, reduce-scatter 1.29%/0.75%, and optimizer step 4.49% identify the communication/optimizer stage as the chosen hotspot.
- Isolated tree: /tmp/nc-overlap-tree-r16/nanochat/optim.py and scripts/base_train.py add off-by-default NANOCHAT_OVERLAP_GRAD_REDUCE; post-accumulate-grad hooks launch the same _reduce_adamw / _reduce_muon collectives during the final backward, and optimizer.step() reuses their futures. Deterministic mode registers no hooks and keeps the original path.
- Switch file: /tmp/nc-sw-overlap-r16.json enables overlap on top of the current winning config.
- Sequence: check --quick, time, then check --n1 only if screening speedup exceeds the current best 1.0421; output dirs under /tmp/nc-r16-20261119T092600Z-*.
- Detached screen script PID: 2145173; log: /tmp/nc-r16-screen-20261119T092600Z.log.
- Submission remains unchanged at the full-check-passing MLP grad-input + grad-weight mask config.
7.8 hRound 16 conclusion
- End: 2026-11-19T09:54:22Z.
- Profile used: round-13 fresh profile; communication (record_param_comms 2.60%, NCCL all-gather 1.31%, reduce-scatter 1.29%/0.75%) and optimizer step 4.49% were the chosen hotspot.
- Isolated change: post-accumulate-grad hooks start the unchanged AdamW/Muon reductions during the final backward and optimizer.step() reuses their futures; deterministic mode keeps the original path.
- check --quick: PASS / bitwise / N0 (/tmp/nc-r16-20261119T092600Z-quick-overlap/check.json).
- time: speedup_vs_frozen_reference=1.0431, s_per_update=0.9541, windows [0.9507, 0.9541, 0.9575] (/tmp/nc-r16-20261119T092600Z-time-overlap/time.json); about 0.10% above the current full-check winner.
- check --n1: PASS / equivalent; endpoint biases within 0.064σ (/tmp/nc-r16-20261119T092600Z-n1-overlap/check.json).
- Committed the inert switchable code as f7037f7 ("Add switchable gradient-reduction overlap (N0 deterministic/N1 production; time 1.0431)"). /submission/switches.json deliberately remains at the full-check-winning config because this candidate has not yet passed a full check.
- No full check yet; adoption requires a full check above 1.0421 with the overlap switch enabled.
7.8 hCurrent summary (after round 16)
- Current switch file: /submission/switches.json = pointwise autotune + coordinate descent + MLP-only grad-input and grad-weight fast-accum masks; overlap code is committed but its env switch is off.
- Latest full check: /tmp/nc-full3-20261119T080300Z/check.json, PASS, speedup 1.0421, tier N0, verdict bitwise.
- Pending candidate: gradient-reduction overlap, quick N0, N1 PASS, screening 1.0431, full check pending.
- Gain breakdown: baseline 1.0007; pointwise autotune 1.0216 screening / 1.0231 full check; MLP grad-weight mask + pointwise autotune 1.0349 screening / 1.0339 full check; MLP grad-input + grad-weight mask + pointwise autotune 1.0426 screening / 1.0421 full check; gradient-reduction overlap 1.0431 screening, N0/N1 PASS; lm-head shape-mask extension 1.0424 screening but N1 INCORRECT; attention-shape grad-weight mask 1.0218 screening; autotune+coordinate descent 1.0197 N1 PASS; unrestricted fast-GW 1.0181 N1 INCORRECT; fast-GI 1.0122 N1 INCORRECT; both fast accum 1.0275 rejected N1; cuBLASLt 1.0026; FP8 cache 1.0005 N0/no gain; CUDA graphs ERROR; aggressive fusion and GEMM+pointwise autotune compile too slowly; Inductor multi-kernel timing ERROR.
- Directions that did not work: unrestricted backward fast accumulation, attention-only grad-weight fast accumulation, lm-head shape-mask extension, FP8 weight/layout cache, global CUDA graphs, cuBLASLt alone, aggressive/benchmark fusion, GEMM+pointwise autotune, Inductor multi-kernel autotuning.
- Best evidence-backed submission: current committed tree with the full-check-winning switch file, full check PASS 1.0421.
- Next: screen group fusion alone; then run one full check on the best switch combination (overlap alone or overlap + group fusion) before enabling any new switch.
8.2 hRound 17 — group-fusion-only screen
- Start: 2026-11-19T09:55:00Z.
- Profile used: round-13 fresh profile; fused pointwise/reduction kernels (6.33% plus several 1–2% kernels) remain the chosen class.
- Isolated tree: /tmp/nc-groupfusion-tree-r17/scripts/base_train.py adds off-by-default NANOCHAT_INDUCTOR_GROUP_FUSION only; deterministic guard unchanged. This isolates r15's failure from multi_kernel.
- Switch file: /tmp/nc-sw-groupfusion-r17.json enables group fusion on top of the current winning config; overlap remains off in this screen.
- Sequence: check --quick, time, then check --n1 only if screening speedup exceeds the current best 1.0421; output dirs under /tmp/nc-r17-20261119T095500Z-*.
- Detached screen script PID: 2286812; log: /tmp/nc-r17-screen-20261119T095500Z.log.
- Submission remains unchanged at the full-check-passing MLP grad-input + grad-weight mask config.
8.2 hRound 17 conclusion
- End: 2026-11-19T10:24:30Z.
- Profile used: round-13 fresh profile; fused pointwise/reduction kernels were the chosen class.
- Isolated change: /tmp/nc-groupfusion-tree-r17/scripts/base_train.py adds off-by-default NANOCHAT_INDUCTOR_GROUP_FUSION only; deterministic guard unchanged.
- check --quick: PASS / bitwise / N0 (/tmp/nc-r17-20261119T095500Z-quick-groupfusion/check.json).
- time: speedup_vs_frozen_reference=1.0430, s_per_update=0.9542, windows [0.9504, 0.9550, 0.9570] (/tmp/nc-r17-20261119T095500Z-time-groupfusion/time.json).
- check --n1: PASS / equivalent; endpoint biases within 0.049σ (/tmp/nc-r17-20261119T095500Z-n1-groupfusion/check.json).
- Committed the inert switchable code as 4ec54c7 ("Add switchable Inductor group fusion (N0 deterministic/N1 production; time 1.0430)"). /submission/switches.json remains at the full-check-winning config; no full check yet.
8.2 hCurrent summary (after round 17)
- Current switch file: /submission/switches.json = pointwise autotune + coordinate descent + MLP-only grad-input and grad-weight fast-accum masks; overlap and group-fusion code are committed but their env switches are off.
- Latest full check: /tmp/nc-full3-20261119T080300Z/check.json, PASS, speedup 1.0421, tier N0, verdict bitwise.
- Pending candidates: gradient-reduction overlap 1.0431 screening, N0/N1 PASS; group fusion 1.0430 screening, N0/N1 PASS; combined screen pending.
- Gain breakdown: baseline 1.0007; pointwise autotune 1.0216 screening / 1.0231 full check; MLP grad-weight mask + pointwise autotune 1.0349 screening / 1.0339 full check; MLP grad-input + grad-weight mask + pointwise autotune 1.0426 screening / 1.0421 full check; gradient-reduction overlap 1.0431 screening; group fusion 1.0430 screening; lm-head shape-mask extension 1.0424 screening but N1 INCORRECT; attention-shape grad-weight mask 1.0218 screening; autotune+coordinate descent 1.0197 N1 PASS; unrestricted fast-GW 1.0181 N1 INCORRECT; fast-GI 1.0122 N1 INCORRECT; both fast accum 1.0275 rejected N1; cuBLASLt 1.0026; FP8 cache 1.0005 N0/no gain; CUDA graphs ERROR; aggressive fusion and GEMM+pointwise autotune compile too slowly; Inductor multi-kernel timing ERROR.
- Directions that did not work: unrestricted backward fast accumulation, attention-only grad-weight fast accumulation, lm-head shape-mask extension, FP8 weight/layout cache, global CUDA graphs, cuBLASLt alone, aggressive/benchmark fusion, GEMM+pointwise autotune, Inductor multi-kernel autotuning.
- Best evidence-backed submission: current committed tree with the full-check-winning switch file, full check PASS 1.0421.
- Next: screen overlap + group fusion together; then run one full check on the best switch combination before enabling any new switch.
8.7 hRound 18 — combined overlap + group-fusion screen
- Start: 2026-11-19T10:25:00Z.
- Profile used: round-13 fresh profile; communication/optimizer stage and fused pointwise/reduction kernels were chosen in rounds 16 and 17.
- Isolated tree: /tmp/nc-combined-tree-r18 contains the already-committed overlap code plus the group-fusion switch; switch file /tmp/nc-sw-combined-r18.json enables both on top of the current winning config.
- Sequence: check --quick, time, then check --n1 only if the combined screening speedup exceeds the best individual screening 1.0431; output dirs under /tmp/nc-r18-20261119T102500Z-*.
- Detached screen script PID: 2429525; log: /tmp/nc-r18-screen-20261119T102500Z.log.
- Submission remains unchanged at the full-check-passing MLP grad-input + grad-weight mask config.
8.7 hRound 18 conclusion
- End: 2026-11-19T10:39:36Z.
- Profile used: round-13 fresh profile; combined communication/optimizer and fused-kernel changes were screened.
- Combined tree/switch: /tmp/nc-combined-tree-r18 with /tmp/nc-sw-combined-r18.json enables both overlap and group fusion.
- check --quick: PASS / bitwise / N0 (/tmp/nc-r18-20261119T102500Z-quick-combined/check.json).
- time: speedup_vs_frozen_reference=1.0427, s_per_update=0.9544 (/tmp/nc-r18-20261119T102500Z-time-combined/time.json), below the best individual screening 1.0431; N1 was skipped by the screen.
- Rejected: stacking group fusion with overlap gives no gain. No submission switch change.
- Full check now running on the best individual candidate (overlap only): check --tree /submission/nanochat --config /tmp/nc-sw-overlap-r16.json --out /tmp/nc-full4-20261119T104000Z; detached PID 2501457, log /tmp/nc-full4-20261119T104000Z.log. Current switch file backed up at /tmp/nc-switches-pre-full4.json.
8.7 hCurrent summary (after round 18)
- Current switch file: /submission/switches.json = pointwise autotune + coordinate descent + MLP-only grad-input and grad-weight fast-accum masks; overlap and group-fusion code are committed but their env switches are off.
- Latest passing full check: /tmp/nc-full3-20261119T080300Z/check.json, PASS, speedup 1.0421, tier N0, verdict bitwise.
- Pending full check: /tmp/nc-full4-20261119T104000Z/check.json for overlap-only production path.
- Gain breakdown: baseline 1.0007; pointwise autotune 1.0216 screening / 1.0231 full check; MLP grad-weight mask + pointwise autotune 1.0349 screening / 1.0339 full check; MLP grad-input + grad-weight mask + pointwise autotune 1.0426 screening / 1.0421 full check; gradient-reduction overlap 1.0431 screening, N0/N1 PASS; group fusion 1.0430 screening, N0/N1 PASS; overlap + group fusion 1.0427 screening, no gain; lm-head shape-mask extension 1.0424 screening but N1 INCORRECT; attention-shape grad-weight mask 1.0218 screening; autotune+coordinate descent 1.0197 N1 PASS; unrestricted fast-GW 1.0181 N1 INCORRECT; fast-GI 1.0122 N1 INCORRECT; both fast accum 1.0275 rejected N1; cuBLASLt 1.0026; FP8 cache 1.0005 N0/no gain; CUDA graphs ERROR; aggressive fusion and GEMM+pointwise autotune compile too slowly; Inductor multi-kernel timing ERROR.
- Directions that did not work: unrestricted backward fast accumulation, attention-only grad-weight fast accumulation, lm-head shape-mask extension, FP8 weight/layout cache, global CUDA graphs, cuBLASLt alone, aggressive/benchmark fusion, GEMM+pointwise autotune, Inductor multi-kernel autotuning, stacking overlap with group fusion.
- Best evidence-backed submission: current committed tree with the full-check-winning switch file, full check PASS 1.0421.
- Next: if full4 PASSes above 1.0421, copy /tmp/nc-sw-overlap-r16.json to /submission/switches.json; otherwise keep the current switch file.
8.7 hFull check result (after round 18)
- End: 2026-11-19T11:08:52Z.
- /tmp/nc-full4-20261119T104000Z/check.json: status=PASS, speedup=1.0437, tier=N0, verdict=bitwise, gate 3 equivalent.
- Gate 1 window ratios [1.0442, 1.0428, 1.0440], reference spread 0.0019.
- Adopted /tmp/nc-sw-overlap-r16.json as /submission/switches.json: current config now enables gradient-reduction overlap on top of pointwise autotune, coordinate descent, and both MLP-only fast-accum masks. Group-fusion code remains committed but its switch is off.
9.5 hRound 19 — ATEN-only GEMM-backends screen
- Start: 2026-11-19T11:09:00Z.
- Profile used: round-13 fresh profile; FP8 GEMMs 42.59% CUDA time dominate, but the earlier unrestricted GEMM autotune tried 98 Triton choices per kernel and was too slow. This round restricts compile-time GEMM autotune to ATEN backends.
- Isolated tree: /tmp/nc-gemmbackends-tree-r19/scripts/base_train.py adds off-by-default NANOCHAT_INDUCTOR_MAX_AUTOTUNE_GEMM_BACKENDS; deterministic guard unchanged.
- Switch file: /tmp/nc-sw-gemmbackends-r19.json enables NANOCHAT_INDUCTOR_MAX_AUTOTUNE_GEMM=1 and NANOCHAT_INDUCTOR_MAX_AUTOTUNE_GEMM_BACKENDS=ATEN on top of the adopted overlap config.
- Sequence: check --quick, time, then check --n1 only if screening speedup exceeds the current full-check winner 1.0437; output dirs under /tmp/nc-r19-20261119T110900Z-*.
- Detached screen script PID: 2642810; log: /tmp/nc-r19-screen-20261119T110900Z.log.
- Submission remains unchanged at the full-check-passing overlap config.
9.5 hRound 19 conclusion
- End: 2026-11-19T11:29:47Z.
- Profile used: round-13 fresh profile; FP8 GEMMs 42.59% CUDA time dominate, and this round restricted compile-time GEMM autotune to ATEN backends to avoid the earlier 98-choice Triton search.
- Isolated change: /tmp/nc-gemmbackends-tree-r19/scripts/base_train.py adds off-by-default NANOCHAT_INDUCTOR_MAX_AUTOTUNE_GEMM_BACKENDS; deterministic guard unchanged.
- check --quick: PASS / bitwise / N0 (/tmp/nc-r19-20261119T110900Z-quick-gemmbackends/check.json).
- time: speedup_vs_frozen_reference=1.0471, s_per_update=0.9504, windows [0.9462, 0.9510, 0.9539] (/tmp/nc-r19-20261119T110900Z-time-gemmbackends/time.json); about 0.33% above the current full-check winner.
- check --n1: PASS / equivalent; endpoint biases within 0.109σ (/tmp/nc-r19-20261119T110900Z-n1-gemmbackends/check.json).
- Committed the inert switchable code as de73098 ("Add switchable ATEN-only GEMM autotune backends (N0 deterministic/N1 production; time 1.0471)"). /submission/switches.json remains at the full-check-winning overlap config.
- Full check now running on the isolated candidate: check --tree /tmp/nc-gemmbackends-tree-r19 --config /tmp/nc-sw-gemmbackends-r19.json --out /tmp/nc-full5-20261119T113000Z; detached PID 2760960, log /tmp/nc-full5-20261119T113000Z.log. Current switch file backed up at /tmp/nc-switches-pre-full5.json.
9.5 hCurrent summary (after round 19)
- Current switch file: /submission/switches.json = pointwise autotune + coordinate descent + MLP-only grad-input and grad-weight fast-accum masks + gradient-reduction overlap; group fusion and GEMM-backend switches are off.
- Latest passing full check: /tmp/nc-full4-20261119T104000Z/check.json, PASS, speedup 1.0437, tier N0, verdict bitwise.
- Pending full check: /tmp/nc-full5-20261119T113000Z/check.json for ATEN-only GEMM autotune backends.
- Gain breakdown: baseline 1.0007; pointwise autotune 1.0216 screening / 1.0231 full check; MLP grad-weight mask + pointwise autotune 1.0349 screening / 1.0339 full check; MLP grad-input + grad-weight mask + pointwise autotune 1.0426 screening / 1.0421 full check; + gradient-reduction overlap 1.0431 screening / 1.0437 full check; ATEN-only GEMM backends 1.0471 screening, N0/N1 PASS; group fusion 1.0430 screening, N0/N1 PASS but not adopted; overlap + group fusion 1.0427 screening, no gain; lm-head shape-mask extension 1.0424 screening but N1 INCORRECT; attention-shape grad-weight mask 1.0218 screening; autotune+coordinate descent 1.0197 N1 PASS; unrestricted fast-GW 1.0181 N1 INCORRECT; fast-GI 1.0122 N1 INCORRECT; both fast accum 1.0275 rejected N1; cuBLASLt 1.0026; FP8 cache 1.0005 N0/no gain; CUDA graphs ERROR; aggressive fusion and unrestricted GEMM+pointwise autotune compile too slowly; Inductor multi-kernel timing ERROR.
- Directions that did not work: unrestricted backward fast accumulation, attention-only grad-weight fast accumulation, lm-head shape-mask extension, FP8 weight/layout cache, global CUDA graphs, cuBLASLt alone, aggressive/benchmark fusion, unrestricted GEMM+pointwise autotune, Inductor multi-kernel autotuning, stacking overlap with group fusion.
- Best evidence-backed submission: current committed tree with full-check-winning switch file, full check PASS 1.0437.
- Next: if full5 PASSes above 1.0437, copy /tmp/nc-sw-gemmbackends-r19.json to /submission/switches.json; otherwise keep the current switch file. Then consider the prepared FP8 grad-weight output-dtype screen.
↑ NanoChat