Building a State-of-the-Art LLM Framework Took 10 Months, Not 3

A primer on GPUs and kernel optimization

Building a State-of-the-Art LLM Framework Took 10 Months, Not 3

A first-person account of building the Jam reinforcement learning framework after Claude Opus 4.5 made a three-month timeline seem realistic — ten months later, it's fast and state of the art. This primer covers GPU fundamentals: floating-point formats like fp8 and bf16, threads, warps, blocks, and SMs, HBM versus registers and shared memory, occupancy, and streams, then moves into kernel optimization and the author's workflow for developing kernels with LLMs.

Overall, this was a foolish idea, no matter what the results are.
  1. augment_me

    Crazy to not see a word about benchmarking/evaluation of the kernels.

    IMO at this time when all performant GPU kernels are generated/hill-climbed, its the largest source of error we see.

    Should be kernel run with a hot or cold cache in practice? Should your kernel be bitwise equivalent to a ref? What error margins should your kernel have to ref? How many times are you running the kernel to avoid thermal noise? Are you running on separate GPUs to avoid overfitting the current hardware? Can you cudagraph-compiling your kernel to remove launch overhead? Are you A/B B/A interleaving your kernel/reference runs to avoid running thermal bias?

  2. saagarjha

    > On the H200s used for most of this work, the GPU's main memory is HBM, or high-bandwidth memory. Ironically, this is the slowest memory on the chip.

    Nit: HBM is off chip, unlike shared memory and registers

  3. brcmthrowaway

    Someone needs to write a book on this

More from this day

2026-11-09