The protocol by which TR-2 measures Mica beside PyTorch, in its public parts. It was written on 2026-10-01, before the first measurement it governs; every later change was an amendment, dated, with its reason, and TR-2 lists all eight. Where this page names the compiler, it states the compiler as of release 7.8.1.

The protocol governs every statement that compares Mica with PyTorch, wherever it appears: step time, memory, footprint and loss. A number no run of the protocol produced is not published.

The rules

  1. Fixed before measuring. The models, configurations, number of runs, statistics and success criteria are written down first, and no result decides which configuration is the comparison.
  2. PyTorch at its best. The comparison is against the fastest of PyTorch’s four modes, as measured on that card, for that model and precision. nanoGPT’s model code is never changed.
  3. One instrument for both sides. One outside clock times both programs. Each program’s own reading is recorded beside it and never replaces it.
  4. Every number carries its conditions: the number of runs, the median and the range, the card, every software version, the date, the Mica commit, and a link to the raw logs.
  5. A deficit is published as measured, in the same table and the same type as a lead.
  6. Speed is published only for a configuration whose correctness check passed.
  7. The raw data is published: every log, kernel table, loss curve and script, so anyone can compute every number again from the container.
  8. A measurement is not a projection. A statement is a result of the protocol or it is labelled a hypothesis.
  9. Published numbers come from the released compiler.

The cards

CardWhereRole
NVIDIA RTX 4090, 24 GBa workstationevery configuration timed, and the five-seed correctness check of every model and precision
NVIDIA RTX 3090 Ti, 24 GBa workstationevery configuration timed, with a one-seed check of its own
NVIDIA L4Google Cloud’s g2-standard-8, a machine anyone can rentan Ada card like the 4090, timed and checked with one seed; its series stands in the container beside TR-2

Before every run the card must hold no other program. During every run its clocks, temperature and power are sampled every second, and its peak memory is read by nvidia-smi for both sides alike. The clocks are not locked: the cards run as their owners’ do, and the samples show what they did.

What is measured

  • Models. nanoGPT’s Shakespeare model as it ships (6 layers, 384 channels, a context of 256, 10.7 million parameters), GPT-2’s small shape (about 124 million parameters, a context of 1,024) and GPT-2’s medium shape (about 350 million), the last two on nanoGPT’s Shakespeare text in GPT-2’s tokens.
  • Precisions. float32 with TF32 products, nanoGPT’s own setting; bfloat16 and float16 as nanoGPT trains them, with float32 weights, and float16 with PyTorch’s loss scaling, which the Mica program writes out the same way.
  • PyTorch’s modes. Eager; torch.compile in its default mode, as nanoGPT ships; reduce-overhead, which adds CUDA graphs; and max-autotune, which adds autotuning. The newest PyTorch and nanoGPT are pinned when a series starts.
  • Mica. The program built with --optimize O2,fp_tensor_float32, every check of O2 on, and in the half precisions also with fp_half_intermediates, which permits the roundings PyTorch makes there; both builds are measured and stand in the same table. Each product’s routine is chosen by timing it on the card, as PyTorch’s fastest mode does, and the choice is kept, so every timed run prints the same digits. Mica writes every kernel in its intermediate language; Dragon’s NVIDIA provider renders it as CUDA C, NVIDIA’s NVRTC compiles it to the card’s machine code, and matrix products run in cuBLAS.

How a run is timed

One reader starts each program and stamps every line of its output with the monotonic clock as the line arrives. Both sides print a line every ten steps right after a loss read that waits for the card, so the time from step 100 to step 400 is 300 whole steps with nothing in flight at either end; a run’s step time is that time divided by 300. Steps 0 to 99 are warm-up and never measured: compilation, autotuning, the capture of CUDA graphs, memory pools growing and clocks rising.

Each configuration runs five times, each in a fresh process, in five rounds whose order rotates, so heat and drift touch every configuration alike; one discarded run of each comes first and fills the caches. The Mica program’s own reading must agree with the outside clock within 1%, or the run is void. Profiled runs, which slow the card’s launches, are separate and yield kernel tables, never a step time.

The same model, trained alike

A speed means nothing unless both sides train the same model to the same loss. Two methods, both required:

  • Five seeds a side. Each side trains the model’s whole schedule with five seeds on the RTX 4090. The two stacks draw different dropout masks and batches, so their curves are compared as families: the check passes when, at every evaluation from step 1,000 on, the two sides’ median validation losses differ by no more than the larger of their ranges.
  • One shared start. Both sides start from one set of initial weights and read one recorded batch order, without dropout and in plain float32, so only the order of their sums differs. The check passes when the losses agree within 1e-5 relative at step 0 and within 1% at each of the first 200 steps; for GPT-2 medium the first 100, since float32 alone carries two runs of PyTorch a percent apart by step 200. Each card runs it.

How a result is reported

Per configuration, the median of its five step times and their range. Per card, model and precision, Mica’s median stands against the median of PyTorch’s fastest mode, both ranges beside them, under one of three verdicts:

VerdictCondition
fasterMica’s slowest run is faster than PyTorch’s fastest run
levelnot faster, and Mica’s median stands less than 5% above PyTorch’s
slowerMica’s median stands 5% or more above PyTorch’s, published with the ratio of the medians

A configuration that runs out of the card’s memory, on either side and in any run, is recorded as such with its log and has no time; where a PyTorch mode ran out, the verdict compares the modes that ran. Beside the times, every series publishes both sides’ kernel tables by name, PyTorch’s attention kernels and graph breaks among them, the NVIDIA libraries each program opened, and the smallest container image in which each side trains, built from Dockerfiles the container publishes.

What the numbers do not say

  • A verdict belongs to its card, its model and its precision. No card’s result stands for another’s.
  • Small models favour a lean runtime. In nanoGPT’s model of 10.7 million parameters and a 256-character context, launches and small products weigh more than in larger models; GPT-2’s shapes stand beside it for that reason.
  • Kernel tables explain a step time; they never stand in for one. They come from profiled runs, which are slower.
  • A one-seed check gives no verdict. The RTX 3090 Ti’s and the L4’s single seeds are published beside the RTX 4090’s families, which judge each model and precision.
  • Training on the processor is not measured against PyTorch’s CPU path, and nothing about it is published.