glitchfix

16 Oct 2026 · 3 min · modded-nanogpt #344, merged · record #90

My nanoGPT record is accepted

My nanoGPT PR #344 merged on 18 September. It is now entry #90 in the world record history, listed at 1.13 minutes on 8xH100. The accepted time was 68.0 seconds.

The first version I wrote about in July took 1.297 minutes and was still behind the record. I kept working on the packing and memory traffic, rebased onto the newer training code, and submitted another set of runs in August. That is the version that was eventually merged, with a shorter schedule after review.

What went in

The idea was to make Q and K narrower while leaving V alone. Q and K determine where attention goes; V carries the values. In this model I could reduce Q/K head width from 128 to 96, keep V at 128, and still reach the required loss.

The projection width drops from 128 + 128 + 128 = 384 to 96 + 96 + 128 = 320. I packed those projections into FP8 and added Triton kernels for normalization, RoPE, and the layout work around them. The later revision also moved the MLP backward work into FP8.

There were smaller savings around that. The row-major and transposed FP8 weight layouts now come from one weight read per update. For squared ReLU, the stored output lets us recover the positive pre-activation with a square root, so there is no need to save another activation tensor for backward. Those details are in the PR along with the code and logs.

The final runs

I ran the candidate and baseline back to back on the same 8xH100 node. Times and validation losses below are means:

runstepssecondsloss
baseline, two runs1,28573.8973.276600
candidate, four seeds1,31570.0943.274725

That is 5.15% less training time on the same hardware. The candidate’s loss passed the track’s significance requirement, with a one-sided p-value of 0.001585 against 3.28.

There is a small distinction here that I got muddled in the August post. The raw candidate mean was 70.094 seconds, or 1.1682 minutes. Applying the same-node ratio to the published 1.23-minute record gives 1.1667 minutes. That normalized value is the 1.167 in the PR title. I have corrected the older post’s table.

Before merging, ClassicLarry removed twenty more steps and revalidated. The three losses at 1,295 steps were 3.2769, 3.2794, and 3.2785, all below the 3.28 target. The accepted record came to 68.0 seconds.

fig 1 · the last 45 steps of the submitted schedule; twenty were removed before acceptance and the shorter run was checked again · rendered with manim · scene source

That 68.0 is the maintainer’s accepted time, recorded as 73.8 - 5.8 in the merge comment. It comes from a separate comparison. You cannot get it by subtracting twenty estimated step times from my 70.094-second mean.

I had been concentrating on making each step faster. The review also checked whether all of the steps were needed. In this case there was enough room below the loss threshold to remove some. I would check the schedule earlier next time.

The board has moved on again since this result. Mine remains record #90, dated 3 August for the submitted evidence and merged on 18 September. It is good to finally update the earlier posts from “submitted” to “accepted.”

The world record table, accepted PR, and run logs and statistics script are all public.