· 31 min readView source

Two months of Alpha: 19 September to 19 November 2026#

Between 19 September and 19 November 2026 the Alpha repository took about 2,170 commits. In the first week Alpha's compiler proved a 56-instruction GPU kernel correct, and the kernel wrote zeros on a real card. A month later it had trained a 1.38-billion-parameter language model for six and a half hours on two H100s, with every GPU instruction generated from Alpha source and no CUDA compiler, cuBLAS or PyTorch on the training path.

This post covers the whole two months: what was built, what ran on real hardware, what each run measured, and what failed. It is long. Each section stands on its own, so use the outline to jump.

Three labels recur, because they are different strengths of claim:

  • On a card means the result came from a physical GPU, and the post names which.
  • In the emulator means it came from Alpha's CPU model of the GPU.
  • Type-checked means the compiler accepted a proof and nothing was run.

Hosted CI has not been able to run since late October, because the GitHub Actions budget is spent. Every pass count below is from a local run on a shared eight-core machine.

The short version#

  • Kernels. Alpha writes NVIDIA machine code directly. A kernel proved correct on 22 September wrote eleven zeros on an RTX 3090, because the machine model delivered results instantly and the card does not. Each fault found on silicon since then became a compiler refusal and a test that must fail.
  • Cards. Alpha-generated code ran on an RTX 3070, an RTX 3090, a DGX Spark (GB10) and H100s. Two targets were new: Blackwell (sm_121) in September and Hopper (sm_90) on 17 October.
  • Hopper. On an H100, Alpha's tensor-core loop reached 989.4 TFLOP/s, the same as NVIDIA's own compiler. A full matrix product reached 628 to 653 TFLOP/s against cuBLAS's 863.
  • GPT-2 small. On an RTX 3070 it trained at 37,372 tokens a second, against 35,898 for llm.c with cuDNN. On an H100 one update took 11.01 ms against llm.c's 11.37 ms.
  • A 1.38-billion-parameter model. nanochat's d24 model ran its full schedule on two H100s: 5.84 billion tokens in 6 h 32 min at 247,865 tokens a second. Its quality score missed the target, 0.2089 against 0.2565.
  • AlphaOS. One resident program per GPU that schedules tasks, loads code, keeps files and answers a shell. It booted in the emulator on 22 October and on two RTX 3070s the next day. A GPT-2-shaped model trains inside it.
  • 100,000 tokens a second. That was the two-card target for GPT-2 on AlphaOS. It was not reached: main is at about 49,500 and an unmerged branch measured 72,300.
  • Knots. A line of preregistered experiments on watching and writing into a running model. Seven claims held, including text that follows a piece of music. Composing two writes failed in three rounds and was closed.
  • The language. The whole workspace moved to a new syntax with far fewer parentheses, and a tool proved for every rewritten module that the program did not change. Fifty-one language forms were frozen, and writing their contracts exposed a soundness hole.
  • The compiler. A warm rebuild of an unchanged program fell from 43.8 s to 0.58 s. The test suite fell from 134 s to 43 s.
  • Focus. Sixteen learning systems were archived on 8 November. Four remain: GPT-2, GPT-2 on AlphaOS, AlphaOS and Midget.

What Alpha is#

Alpha is a dependently typed programming language with its own compiler. A dependent type can state a fact about values, such as "this buffer holds exactly 4,096 rows" or "these two byte strings are equal", and the compiler checks it. A proof is a program the checker accepts. The simplest one is refl, which claims two expressions are equal and is accepted only if both reduce to the same term.

The project uses that to compile a whole learning system into one executable: the model's mathematics, the optimiser, the GPU instructions and the host program that drives the card. Nothing from NVIDIA's toolchain is in the output. NVIDIA's assembler and disassembler are used as oracles, to check that Alpha's instruction encodings match theirs bit for bit.

The compiler in daily use is written in Haskell and called Stage 0. A second compiler written in Alpha itself is in progress; its state is in Self-hosting.

Two months in numbers#

19 September19 November
Commits on main in the periodabout 2,170
Gate scripts in scripts/ci/0260
Cases in the root test suite67265
Cases across all live suites644 in 29 suites
Proof roots498 in tests/qualification, 112 under systems/
Tracked Alpha source files5,134
Language features with a frozen contract0 of 7851 of 92
Diagnostic codes127183
Documentation pages with every reference checked757 pages, 4,438 references, none unresolved

Commits by ISO week, from the week of 14 September: 111, 279, 365, 234, 278, 307, 309, 96, 123, 68. The drop in November is the syntax migration and the experiments, which are fewer and larger commits.

Writing GPU kernels without NVIDIA's compiler#

A GPU kernel is a list of 128-bit instruction words in NVIDIA's native machine code, called SASS. NVIDIA publishes the names of the operations but not their bit layouts. Alpha has a typed constructor for each instruction and its own encoder. The laws that hold the encoder to NVIDIA's assembler are Alpha proofs.

Each word also carries scheduling. An instruction has a stall count, the number of cycles before the next instruction may issue. Results that arrive late, such as a load from memory, are guarded by scoreboard barriers that make later instructions wait. If either is wrong, the kernel assembles, disassembles correctly, and computes garbage.

The first proved kernel wrote zeros#

On 22 September a 56-instruction training step for a tiny linear model was decided correct against Alpha's machine model of the Ampere instruction set in 0.85 s. That was type-checked. On an RTX 3090 it wrote eleven zeros.

The loads had no barrier, and the model had delivered their results instantly. A scoreboard model was added, the kernel was rescheduled, and three reruns on the card were bit-identical. The step was then proved for every shape and any input.

That set the method for everything after it. A scheduler is an untrusted proposer; a small checker accepts or refuses what it proposes. For an 8 by 8 step, stall cycles fell from 6,870 to 879 compacted and 559 interleaved, and the result ran correctly ten times out of ten on an RTX 3070.

Late reads#

The fault that cost the most across the period has one cause. A store reads its registers when the memory pipeline takes it, which can be after a later instruction has overwritten them. It showed up three ways:

  • DGX Spark. 19,193 such overwrites in one system's 53 kernels. An input that failed eight times in ten failed zero times in twenty after the fix.
  • H100. Zeros in every second tile of a product.
  • RTX 3070. An optimiser that diverged about once in a hundred updates.

The planner now refuses any Ampere region with this hazard, and the assembler inserts the read barrier itself.

An emulator held to silicon#

Alpha has a CPU emulator of the Ampere streaming multiprocessor. It decodes a word only if re-encoding it reproduces all 128 bits. It replays 23 recorded runs from real cards (20 from an RTX 3070, 3 from an RTX 3090) byte for byte. Two approximate reciprocal-square-root words are recorded as divergences, where the card is one unit in the last place below the correctly rounded answer.

The emulator has also been wrong. Training on the card was not reproducible until diverged warp lanes were modelled, and a single spinning lane is still not modelled. An emulator pass is treated as weaker evidence than a card run for that reason.

Limit. Kernels and launch plans are still written by hand for each realization. They are not derived from the model.

New targets: DGX Spark and Hopper#

DGX Spark (GB10, Blackwell)#

A back end lowers the Ampere kernels to Blackwell's sm_121, and an AArch64 host program drives the card. A 57.7-million-parameter transformer called Coppelius ran 1,000 AdamW updates on the GB10 on 25 September, with loss falling from 9.34 to 8.03.

Its step time on the card then fell by a factor of nine in a day:

ChangeMilliseconds a step
Paged arenaabout 430
Arena cached on the GPU128.2
Streaming attention75.96
Fused activation, residuals inside products46.70
AdamW writing the half-precision copies45.35

Two later runs were byte-identical to the one before them. On the way, a gradient check against autograd found four defects in the backward pass, and two cases where a kernel and its launch disagreed. The record says plainly that every earlier Coppelius run had trained on those wrong gradients.

Hopper (H100)#

The H100's fast path uses instructions that Ampere lacks: matrix multiplies issued by a group of four warps (128 threads), a copy engine called TMA that moves tiles into shared memory, and transaction barriers that signal when a copy has landed. The nvidia-sm90 package landed on 17 October with encodings for all of them. A Haskell byte-rewriting pass that had stood in for it was deleted the same day.

Everything below ran on an H100 between 17 and 19 October. All but the FP8 result is in the microbenchmark record:

  • First tile. The first warpgroup product was wrong. One instruction had a stall of 1 where NVIDIA's assembler writes 2. After the fix, five probes were bit-exact.
  • TMA and barriers. Every probe hung until the barrier state moved from an odd register to an even pair. The encoder now refuses odd pairs.
  • Peak rate. 989.4 TFLOP/s, equal to NVIDIA's compiler on the same loop and to the datasheet peak.
  • A real product, 4096 cubed. 628 to 653 TFLOP/s against cuBLAS's 863, about 75%.
  • FP8. 1,161 TFLOP/s against cuBLAS's 1,298, with every element of the result identical.

Early readings of about 158 TFLOP/s turned out to be the pod's clock governor idling at 345 MHz, not the kernel.

Several ideas were tried and dropped: a one-stage ring deadlocks; an early-exit form is correct but 35 ms a step slower; ping-pong consumers are bit-identical and no faster.

Limits. There is no checked machine model for Hopper yet, so its asynchronous scheduling controls are copied from NVIDIA's assembler. The H100's results differ from the RTX 3070's by about one part in ten thousand, and the cause is open.

GPT-2 small, from a rented RTX 3070 to an H100#

GPT-2 small (124 million parameters) is written in Alpha and began training on a rented RTX 3070 on 6 October. The dashboard shows every invocation.

DateCardResult
7 OctRTX 3070169.6 ms an update, 24,151 tokens/s
9 OctRTX 3070109.6 ms, 37,372 tokens/s. llm.c with cuDNN: 35,898. nanochat d12: 20,200
10 OctH100Ampere kernels lowered to Hopper: 22.22 ms. PyTorch 20.99, llm.c with cuDNN 12.57
17 OctH100With Hopper products: 18.40 ms
18 OctH100Median 11.01 ms against llm.c with cuDNN's 11.37, over four rounds

The last row is recorded here. Alpha's losses were the same bits in every round.

The first training run did not go well, and the reason was not a bug. Over four days the RTX 3070 trained on 9.03 billion tokens of OpenWebText in 441 invocations and stalled at a loss of 4.29, with a HellaSwag score of 25.9% against a chance rate of 25%. The diagnosis was the recipe: updates of 4,096 tokens at a constant learning rate. On 10 October the run adopted llm.c's FineWeb recipe. Validation loss fell from 5.087 to 3.617 in five invocations, and the run reached 6.8 billion tokens, 69% of its horizon, with HellaSwag near 0.27. llm.c's reference run ends near 3.28 and 0.299.

About thirty kernel experiments are logged in the performance notebook. Most tile changes were slower and were reverted. Vocabulary tiles of 256 rows gave non-finite losses or hangs.

A 1.38-billion-parameter model on two H100s#

nanochat's d24 model has 1,384,122,122 parameters, and a public record exists for training it to "GPT-2 grade" on eight H100s. Alpha states the same model in GPT2.Speedrun, and each kernel of the record's FP8 training step was matched bit for bit against the record's own kernels. The exceptions are in the step document: a few kernels it lists as "written, unverified", and the attention kernel's numerics, which it marks "to do".

One card. In bfloat16 the step took 12.85 s. The first FP8 step took 13.13 s, then 8.49 s, then 8.364 to 8.370 s. nanochat's own step on the same card is 8.442 s.

Two cards. Four virtual ranks on one card first matched their one-card twin: 16 of 16 losses and 36,700,242 master words equal. Two physical H100s then ran at 241,705 tokens a second, 1.961 times one card. nanochat on the same two cards runs at 247,886.

The full run, 22 October, two H100 SXM cards joined by NVLink:

MeasureValue
Steps5,568 of 2^20 tokens each, the record's full schedule
Tokens5,838,471,168
Wall time6 h 32 min (23,555 s)
Throughput247,865 tokens/s averaged over the whole run
Loss10.398 to 2.456
The two ranks' final imagesbyte-identical
CORE score0.2089 (target 0.2565; the record's run scores 0.2626)

The run is recorded here. After nanochat's own fine-tuning script, the chat model scored 48.70% on ARC-Easy and 33.34% on MMLU.

The miss. CORE is below the gate, and validation is 0.754 bits per byte against the record's 0.718. The suspects are data order and FP8 rounding paths. Step 0's losses match the reference exactly, but by step 23 they agree only to within 5.3e-4. The eight-card run has not been booked, and the planned 20% single-card lead was not reached.

AlphaOS: one program that lives on the card#

A conventional trainer has the host launch thousands of short GPU kernels for each step. Alpha's own earlier trainer made 5,017 launches in one 829 ms update on an RTX 3090. AlphaOS turns that around. The host launches one program per GPU, once, and that program runs until it is told to shut down. After that the host only serves files, a terminal and tokens, through memory that both sides map.

Inside the card, AlphaOS has:

  • Nodes. One per streaming multiprocessor, 46 on an RTX 3070. A node runs tasks.
  • Tasks. A unit of work that becomes ready when its inputs are complete. Nodes claim tasks by compare-and-swap.
  • A mailbox. Host memory mapped into the GPU, holding status, a command word, a directory, rings and views.
  • A loader. The host can install newly compiled machine code into the running system.
  • Files, processes and pipes, which persist across boots.
  • A shell. alpha os shell gives ps, ls, cat, load, run, spawn, kill and more against a live system.

AlphaOS went from a planning document to silicon in two days:

  • 22 October, in the emulator. It booted on 46 nodes, loaded programs, and trained a small byte-level transformer called Midget, whose loss fell from 5.58 to 3.41 in eight steps.
  • 23 October, on two RTX 3070s. Thirteen test roots ran and all exited cleanly. Eight matched the emulator byte for byte, two differed only in which processor ran which task, and the Midget runs differed by at most two units in the last place. The record is here.

The cards showed four things the emulator had not: a predicate that needs 13 cycles before a branch can read it, two registers the hardware reserves, the late-reading stores described above, and warps that split and never merge. Each was then added to the emulator.

More arrived over the following week:

  • An HTTP server that runs on the GPU, answering GET /status, /start/P, /stop/P and /load/P.
  • alphaos-top, a terminal view of every host instruction beside the programs running on the card. One of those programs is a raycaster in the style of Doom, drawing one screen column per GPU lane.
  • A live view that streams a scene ray-traced on the card to a browser at 22 frames a second at 480 by 270.
  • DGX Spark. The shell, loader and views run natively on the GB10, where the daemon boots the system in 35 ms.

A stall, found and fixed. Long runs stopped because the NVIDIA driver timed out a context switch (error Xid 109). A resident node never reaches a block boundary, and the host touches the card every 15 minutes. The fix was resumable nodes: each node hands itself on every 5 ms. On an RTX 3090 losses were bit-exact against the resident run, and that allowed a 30,000-update training run.

Planned and not built: swapping a program while it is in use, lowering typed models to task graphs automatically, and a control plane for agents.

GPT-2 on AlphaOS, and the road to 100,000 tokens a second#

On 23 October a GPT-2-small-shaped model with 163,306,496 parameters took its first update inside AlphaOS on an RTX 3070. The whole update is one task graph across 46 nodes. The host writes tokens into a ring and reads losses back, and does nothing else.

WhenChangeOne updateTokens/s
23 Oct, 16:16 UTCFirst training, bit-identical run to run236 ms17,300
23 Oct, 19:23A launch becomes one shared task; eight-warp tiles143.4 ms28,400
24 Oct, 06:57Half precision everywhere (an optimiser change and skip connections had been added since)155.4 to 142.0 ms29,200

Two cards. Each card runs its own image. The exchange buffer is one file whose pages both cards map, so no CPU copies a byte. At each learner step a card copies its gradient out, meets the other card on a counter, and adds the other's gradient in. Addition commutes, so both cards end with identical parameters. The first measurement was 40,600 tokens a second. Sending gradients as half-precision words scaled by 2^-8 raised it to 45,600.

The target. A cycle is 32,768 tokens: four updates on each card, then one learner step. It measured 722 ms. The goal in the training plan was 328 ms, which is 100,000 tokens a second.

On main. Giving each of the 90 parameter regions an owning card cut the learner update on both cards, with 0 of 160 losses differing from the reference. The cycle reached 662 ms. Two further ideas measured no gain: moving optimiser work to the cooler card, and streaming each block's gradient across during the backward pass. Streaming failed because stores to host memory slow other processors' memory traffic by about 2.5 times.

On a branch. A branch called alphaos-100k took the cycle further on the same two RTX 3070s, with every loss identical to the reference. It is not merged into main.

Step on the branchCycleTokens/s
Baseline re-run, 26 October651 ms50,400
Promotion pipelined under the next products602 ms54,400
Crossings on the copy engine579 ms56,600
Narrow kernels packed several to a node548 ms59,800
Weights streamed into the next forward pass489 ms67,000
Token-table gradient sent sparse462 ms70,900
240 warm updates, 27 October453.5 ms72,300

The branch's own conclusion, in its plan, is that about 370 ms looks reachable and that 328 ms with every loss identical does not, on these cards. One card runs hot at 86 to 89 °C and throttles, and the cooler card idles 39.5 ms of every cycle waiting for it. The branch conflicts with the certified exchange described next, because both rewrote how the exchange is launched. Bringing its speed-ups into main needs a card to validate the result, and that has not been done.

Certified exchange. Four pull requests merged on 18 November make the compiler demand certificates before it lowers the exchange programs to machine code. Every request must lie inside the mapped buffer and the bank's real extent. The memory instructions actually assembled must have the expected forms. Their guards and their address expressions must trace back to named origins. The gate passes 78 claims and refuses mutants such as a missing fence or a read turned into a write. This is type-checked only: the gate's first line reads "no physical GPU claim".

The longest run. 30,000 updates (123 million tokens) on an RTX 3090 reached a training loss of 4.46 and a held-out loss of 4.77. A trained GPT-2 small is near 3.3, and the proposal's goal of 3.28 is not reached.

Fault injection. In an experiment called chaos vocabularies, the compiler bans a random subset of machine opcodes and rewrites every training program into exact equivalents built from the rest. Only two pilot runs exist. Banning floating-point add gave 576 of 576 identical losses at 5.6 times the update time. Banning the approximate-math instruction gave 79 of 576.

Knots: watching and writing into a running model#

A knot is a named direction in a language model's internal state, at one layer, with a threshold. When a token's activation along that direction crosses the threshold, the knot fires. A knot can also run a small program that writes back into the state.

The work began on 28 October as AlphaOS code. A kernel called KnotWatch checks every knot against 13 layers and 4,096 token rows inside each training update. With 0 to 10,000 knots tied, the training losses stayed bit-identical. On an RTX 3090, all 1,179 knots of a full atlas raised an update from 65.0 to 81.8 ms.

From 8 November the work changed character. It became a series of experiments on a CPU, each with its question, method and pass criterion committed before the run. This is preregistration, and it is why the failures below are as firm as the passes. The experiments first used the model trained on AlphaOS and then OpenAI's GPT-2 small.

What held#

ExperimentQuestionResult
E1bAre atlas knots causally real?Removing a knot's direction changed the output for 968 of 1,075 knots, and for 1 of 104 random controls
E5Is a knot one-sided?Removal passed the causal test on a knot's own rows for 90.4% of 260 knots, and on the reversed direction for 17.3%
E13Does adding a knot change what GPT-2 writes?9 of 10 held-out concepts steered. A random direction of the same size steered 0
E15-CIs writing when a detector fires better than writing at random times?+19.7 points [+12.8, +26.9]
E18, round 2Can one write change one entity and not another?48.8% [43.9, 53.6] against a bar of 20%, but the protected entity kept its value only 53% of the time
E26Does text follow a piece of music?See below
E17-TCan a measured route predict where a write leaks?AUC 0.845 [0.774, 0.903]

What failed#

  • Steering the AlphaOS-trained model (E13). 1 of 10 concepts, against 9 of 10 on GPT-2. The offered diagnosis is that the model is undertrained.
  • Composition (E19). Two programs writing at once were tested in three preregistered rounds. Every round failed at least one of its two criteria. The third was declared the last, and the claim is closed as not confirmed.
  • A contained write (E23). The bar was 65% protected and 40% success. The result was 55.5% and 39.5%. Development runs had shown 80% and 60%.
  • A graded scale (E6). The axis between two opposite knots ordered a graded scale for 3 of 7 scales, where 5 were needed. The report's summary: a switch, not a dial.
  • Earlier claims, corrected. A count of "705 of 705" causally real knots had come from a partial run. A claim about labels for broken text encoding held for 14 of 48. Several secondary predictions failed and are listed in the paper, where 22 of 34 predictions held.

Sound into a model#

E26 asked whether a model's writing can follow a piece of music. Twelve 32-second pieces were sealed in advance: six synthetic, and six public-domain or CC0 recordings chosen by a rule committed first. Loudness and note onsets give one energy number per token, at four tokens a second. Above the piece's average energy a "wild" knot writes into GPT-2; below it a "calm" knot writes.

A separate reader then re-read each text with no steering, and a scorer picked which of the twelve pieces it matched. The bar was 20%, with chance at 8.3%.

It picked the right piece in 90 of 288 runs: 31.2% [24.3, 37.8]. On real recordings alone, 33.3%. The text cost 0.39 nats a token in fluency.

Two limits are stated in the report. A secondary criterion failed: text written under a shuffled schedule still picked the original piece 14.2% of the time, above chance. And a blind judge mostly could not tell calm passages from wild ones. The result is about one axis, energy, and makes no claim about mood.

Where the leak travels#

E17-T looked at why a scoped write leaks onto the wrong entity. The leak enters through eight late attention heads that attend to both entities about equally. Restoring those heads removes 64.9% of the leak; restoring random heads removes 2.4%. After E23 failed, the report's reading is that on GPT-2 small, containment is limited by how the model itself binds a value to an entity.

The public explorer is at knots.blah.dev. It has a 3D timeline of a training run, an atlas of knots at all thirteen layers, a page arguing the case against the idea, and a listen-and-read page built from E26's own records.

Open. A sheet of 40 pairs waits for a human to judge; all 40 answers are blank. Four further milestones and one experiment are not run.

The language: alpha-2027 and a frozen core#

Fewer parentheses, proved harmless#

Alpha source is written as s-expressions, and every nested binder, chain and constructor used to carry its own parentheses. Between 6 and 15 November the whole workspace was rewritten into the spellings of a draft edition, alpha-2027. The parser expands each new spelling back into the old nested term, so the core language did not change.

New spellingWhat it means
(lambda q x : A . r y : B . body)nested binders, also for pi and sigma
(nest H x y z)(H x (H y z))
(then L1 L2 Z)(L1 (L2 Z))
(pipe X L1 L2)(L2 (L1 X))
a body written without its own parenthesesthe same body with them
StdBool, StdTrue(family StdBool), (constructor StdBool StdTrue)
40, 0, 1(byte 40), zero, (succ zero)

Function composition in the standard library, before:

def stdCompose =
  (lambda erased input : Type 0 .
    (lambda erased middle : Type 0 .
      (lambda erased output : Type 0 .
        (lambda unrestricted outer : (pi unrestricted value : middle . output) .
          (lambda unrestricted inner : (pi unrestricted value : input . middle) .
            (lambda unrestricted value : input . (outer (inner value))))))))

and after:

def stdCompose =
  (lambda erased input : Type 0 .
    erased middle : Type 0 .
      erased output : Type 0 .
        unrestricted outer : (pi unrestricted value : middle . output) .
          unrestricted inner : (pi unrestricted value : input . middle) .
            unrestricted value : input . outer (inner value))

The rewriting was done by alpha migrate, and it did not trust itself. For every module it changed, it checked the old and new source, encoded each one's elaborated core canonically, and compared. If the bytes differed it normalized the differing definitions and compared again. Any remaining difference refused the migration before a file was written.

Measured over the run:

  • The deepest nesting in any source fell from 2,081 levels to 322 on the first pass.
  • Forms in packages and systems fell from 1,428,185 to 832,371.
  • The self-hosted compiler's 129 files took 26,987 rewrites and lost 2,868 lines.
  • 2,189 modules took the open-body rewrite. 42 were refused because their closure does not check, such as tests that are meant to fail.

Some things went wrong on the way. A bug in one rewrite caused 86 of 222 module roots to be refused until it was fixed. A formatter bug put each token of an open body on its own line; the fix turned 13,521 lines back into 2,856. Reformatting files that had never been formatted broke gates whose mutations match source text, so only already-canonical modules were reformatted.

alpha-2027 is still a draft. The released edition, alpha-2026, refuses every new spelling by name.

A frozen core, and the hole it found#

On 4 November, 51 forms of alpha-2026 were frozen. Each has a ten-section contract and its own tests, 299 programs in all, and the contracts are held by digest. A wording fix needs a recorded clarification. A behaviour change needs the next edition.

Writing the contracts found a real soundness hole. A value marked linear, meaning it must be used exactly once, could be duplicated by passing it through an unrestricted parameter. The fix on 6 November scales each use by the receiving binder's quantity. No program in the 843-case suite had relied on the hole.

New in the language#

  • Prophecy variables. An erased "ghost" names a value the computation only learns later. The executable is byte-identical to the program without the ghost.
  • Typed holes. (hole NAME) reports the type wanted and every binder in scope. A program with a hole never builds.
  • Arithmetic on open naturals. The checker decides = and < on polynomials, so (nat-add x 1) equals (succ x) by refl.
  • A faithful single-precision maths library, built only from add, subtract, multiply, divide and compare, and measured exhaustively:
FunctionLargest errorInputs measured
exp0.939 ulp3,258,020,377
log0.835 ulp2,139,095,038
sin, cos0.753, 0.752 ulp4,278,190,080
atan20.977 ulpfour sweeps of 2^32 pairs, not all 2^64

The language guide is the place to start.

A faster compiler#

The compiler's output stayed byte-identical through every change in this table.

WhatBeforeAfter
Warm rebuild of an unchanged program43.8 s0.58 s
The 842-case test suite134 s43 s
Structural lint over 3,901 modules476 sabout 3 s
Contract tests437 s39 s
Cold check of the self-hosted compiler31.6 s10.5 s
Cold build64 s29 s
Realizing a trainer; its peak memory196 s; 3.6 GB28 s; 1.25 GB
Refusing a stuck comparisonover 5 minutes0.7 s
GPT-2 gate with a shared content-keyed cache1,098 s473 s
A GPT-2 cold build (dataflow on a worklist solver)552 s124 s

One change in this area was a correction. Build cache keys had been Fletcher checksums, and the cache served a stale binary when two operands of a program were swapped. The keys became SHA-256 on 9 October. The lockfile and artifact digests kept the old checksum until this week; see This week.

Self-hosting: where it stands#

packages/compiler is the compiler written in Alpha, 347 modules. An earlier generation of it reached a byte-identical fixed point, where the compiler compiled itself to the same bytes. The current generation has not.

  • Parsing. The Alpha-written parser reads all 131 modules of its own closure in the new syntax, in about two and a half minutes.
  • Checking. After a rewrite on 15 November that changed 106 sites, the first five modules check in 27 s, down from 259 s. A ten-minute run reaches 13 modules, up from 7.
  • The limit. Closing a module substitutes every global's body, so checking sees a tree expansion of all 131 modules. The guide calls this architectural.

About 40 of 70 self-hosting proof scripts had broken without anyone noticing, because no gate ran them. A new gate covers 44.

Packages, the lockfile and the test runner#

A workspace is an alpha.project file, the packages it names, and alpha.lock. There is no registry, no download, no version solving and no build script. A dependency is a local directory. alpha package lock pins each package by a digest of every source file in its root, and alpha package verify fails on any difference. Two roots that provide the same module are refused. Packages and the lockfile has the details.

alpha test runs declared suites on the compiler's own engine. A case is one of eight kinds, including check, negative (a program that must be refused with exact diagnostics), golden (an artifact's digest is pinned) and fuzz. A golden mismatch always fails; a new value has to be proposed, reviewed and applied explicitly. A run of zero tests is an error. The runner's total went from 672 cases with 17 standing failures on 19 September to 842 of 842 on 12 November.

Observability: every command can record itself#

Since 23 September any alpha command can record what it did as a stream of one record per line, in a format called AOS. alpha observe validates and reads the stream.

  • What is recorded. The invocation, each module check, each declaration, diagnostics, artifacts by SHA-256, resources, and how the command ended. A module served from cache is recorded as reused, never as checked.
  • Sealing. At the end the recorder writes a seal file with the stream's length and SHA-256. A killed process reads as incomplete, never as success.
  • Two readers. The authority is Alpha code, 39 modules. A faster Haskell reader is held to it by 48 hand-derived fixtures and a 495-row decision table.
  • Gates as records. alpha observe gate NAME -- COMMAND turns each ok or FAIL line a gate prints into a receipt.
  • Imports. Fifteen formats of other logs can be imported, from native telemetry to a training chain's log. Each import states what was mapped and what was lost.
  • Cost. On a shared eight-CPU host, a warm command took 456 ms without recording and 459 ms with the full profile. The record says the cost is not resolved below about 5 to 10%.

Real cards produced the first measurements through it: a device clock 23.3882 s behind the host's, bounded to 21 microseconds, and timing inside a kernel of 2 to 4 microseconds.

Limits. The HTTP service has no TLS and is IPv4 only. A browser console is written but is not on main or in the deployed site. A plan for wider data tracking was paused on 17 October. The observability README lists the rest.

Gates, mutants and evidence#

scripts/ci/ did not exist on 19 September. It now holds 260 gates. A gate is a script that prints ok and FAIL claims. Most also carry mutants: deliberately broken sources that the checker must refuse. A mutation that fails to apply is itself a failure, so a gate cannot quietly stop testing anything. About two thirds of the gates carry at least one.

  • Running them. In sequence the gates took about four and a half hours. gates.sh runs them concurrently under one memory budget, each in its own capped scope and in a hard-linked copy of the tree, where an in-place write fails the gate. A gate that fails beside others is retried alone.
  • Documentation references. A checker resolves every link, path, route and command in maintained pages.
  • Hosted CI. It was narrowed to GPT-2 on 16 October and has not been able to start since late October.

The most recent full local run on record, on 15 November, passed 252 of 255 gates, and the other three passed on rerun.

The website#

lsalpha.com did not exist before this period. Its first commit is 20 September, and it moved to its current address on 27 September. It now has:

  • Docs. 50 documents: 22 read from the repository's docs/ at build time, 27 written for the site, and an index with a page per language form.
  • REPL. One module is checked and its main evaluated, in a sandbox with no network and an eight-second limit. It never compiles native code or touches a GPU.
  • Source. Every tracked Alpha file with exact bytes and compiler-resolved links.
  • Training. Dashboards for GPT-2, the d24 run and AlphaOS, and a chat with the GPT-2 model.
  • Hardware and Systems, read from typed profiles and linked to records.
  • Blog. New today, starting with this post.

Each release is built from one exact commit with a frozen copy of the compiler, so uncommitted work cannot reach the public site. The status page shows the commit, compiler identity and build time.

Sixteen systems archived#

On 8 November sixteen learning systems moved, byte-identical, to archive/. The commit gives the reason: the owner narrowed the active systems to cut test time. Nothing in the archive is built or gated. The four that remain are GPT-2, GPT-2 on AlphaOS, AlphaOS and Midget.

Several of the archived systems did real work in the period:

  • Baguette. A 320,956,992-parameter decoder with 80 blocks, trained from random weights. On an RTX 3090 it went from 3,815.57 to 4,720.09 target tokens a second and from 0.073 to 0.059 joules per target token, ending in a bit-identical checkpoint. It also ran on an RTX 3070 whose host refuses NVIDIA's unified memory device, inside a 7,548 MiB arena. Its production run stopped on 9 October when an archive hit a storage quota.
  • Coppelius. The 57.7-million-parameter transformer used to bring up three cards. Waiting on the device instead of sleeping for fixed times took a training request from 494.7 s to 2.1 s.
  • Diakosmos. A 99,823,934-parameter byte-level recurrent model. On an RTX 3070 it reached 1.4194 bits per byte after 24.5 GPU hours. GPT-2 small was at 1.4417 after 25.2 GPU hours on the same bytes and card.
  • Manfred. Predicts the next audio sample from a bank of damped rotations. An 8,000-update chain ended byte-identical to an independent reference.

The others were smaller: a byte-bigram table, 16 kernels proved against a machine model, two distributed-learning demonstrators, a physics paper's sign errors written as checked claims, and several ports that were paused. The archive's README lists all sixteen and how to restore one.

Dropping them removed 39 gates and 12 suite cases. The command-line tool's locked closure fell from 161 modules to 39, and its executable did not change by a byte.

The Open Kernel Challenge#

In late October Alpha entered an external GPU-kernel competition, with the device instructions and the CUDA ELF produced by Alpha and a small adapter doing only allocation and launch. The kernels are projection layers for an H200.

The work is thorough and the standing is poor, and its own analysis says so. A bounded H200 session evaluated 2,534 candidate and shape combinations. The first scored submission ran at 0.025 times the challenge baseline. Later releases climbed from 0.848 to 1.010. On 30 October that was rank 1,457 of 1,461, against a leader at 1.650.

The useful output is on the Alpha side: packed warp tensor-core products, hoisted row rings, an exact codec that restores every bfloat16 pattern, typed allocation for loads, and a C functional emulator of the H200 that runs Alpha-built kernels under address and undefined-behaviour sanitizers. The whole line merged into main on 19 November.

This week#

On 18 and 19 November the open pull requests were worked through. Twenty-one merged into main. The larger ones:

  • The certified exchange, four pull requests, described above.
  • The Open Kernel work, 38 commits. One change it carried would have altered existing Ampere schedules and broken a pinned proof, so the merge keeps Ampere's schedule exactly as it was and applies the new latency rule to Hopper only.
  • SHA-256 for lock and artifact digests, from a pull request by GitHub user rolandnsharp. The lockfile had still used a Fletcher checksum, which an edit that swaps two equal-sum spans of a module leaves unchanged. alpha package verify could not see such an edit. The new lock format refuses the old one by name, and a test now makes exactly that swap and requires it to be caught. The three golden artifacts were confirmed byte-identical before their pins were replaced.
  • Training telemetry, from a pull request by GitHub user DavinciDreams. The trainer's update and evaluation rows now carry a versioned envelope, and a strict importer admits a log only if its redundant equations hold and its sequence has no gap, replay or fork. The same pull request's reusable observers for dyadic energy and oscillator statistics also landed.

Two things that had been broken for weeks turned up along the way and were fixed. A generator for the test inventory had failed since 21 September, when a directory it read was removed. And one gate rewrote a tracked file every time it ran.

What did not work#

The negative results, collected:

  • Proof without a timing model. The first proved kernel wrote zeros on a card.
  • The first GPT-2 run. 9.03 billion tokens to a plateau at loss 4.29, from the recipe.
  • The d24 quality gate. CORE 0.2089 against 0.2565.
  • 100,000 tokens a second on two RTX 3070s. Not reached, and the branch that got closest concluded it cannot be reached with identical losses on those cards.
  • Streamed gradient exchange. Built, measured, no gain.
  • Steering the model trained on AlphaOS. 1 of 10.
  • Composing two knot programs. Three rounds, closed as not confirmed.
  • A contained scoped write. Missed both bars.
  • The Open Kernel Challenge. Barely above baseline, near the bottom of the board.
  • A Baguette stream attempt. Ended at a non-finite loss after 196 updates.
  • Self-hosting. The current generation has not been requalified, and its checker has an architectural limit.
  • A model that hears knots while training. It absorbs the carrier into every row within two updates.
  • A withdrawn claim. That one instruction hangs the GB10; the cause was a 64-bit compare.

What is open#

  • The eight-H100 d24 run, and the cause of the CORE gap.
  • A checked machine model for Hopper.
  • Bringing the alphaos-100k speed-ups into main under the certified exchange, validated on a card.
  • A hardware run of the certified exchange images. None exists since the merge.
  • A validation loss of 3.28 for GPT-2 on AlphaOS.
  • For knots: the 40-pair human audit, four milestones not run, and a decision on whether to move to a larger model.
  • Requalifying the self-hosted compiler through its stages.
  • Deriving kernels and launch plans from the model instead of writing them per realization.
  • Hosted CI.

Glossary#

  • AOS. Alpha's observability record format.
  • CORE. nanochat's 22-task quality score. 0.2565 is its "GPT-2 grade".
  • CTA. A block of GPU threads launched together.
  • Edition. A named, versioned contract for the language, selected per workspace.
  • Gate. A script in scripts/ci/ that prints ok and FAIL claims.
  • Golden. A test that pins an artifact's digest.
  • Knot. A direction, a layer and a threshold in a model's internal state, with a readable label and optionally a program.
  • Late read. An instruction reading its sources after it was issued.
  • Mutant. A deliberately broken program that a gate must see refused.
  • Node. In AlphaOS, the unit that runs tasks, one per streaming multiprocessor.
  • Normalized core. A program after elaboration and reduction. Equal normalized cores mean the same program.
  • Plan host. The CPU-side program, generated by the compiler, that drives the GPU through the kernel driver.
  • Preregistration. Committing an experiment's method and pass criterion before running it.
  • Quantity. How often a binder may be used: erased, affine, linear or unrestricted.
  • refl. A proof of equality accepted only when both sides reduce to the same term.
  • SASS. NVIDIA's native GPU machine code, in 128-bit words.
  • Scoreboard. Per-warp barriers that make consumers wait for a late result.
  • sm_86, sm_90, sm_121. NVIDIA instruction-set generations: Ampere (RTX 3070 and 3090), Hopper (H100 and H200), Blackwell (DGX Spark GB10).
  • Stall. The cycles an instruction waits before the next one issues.
  • TMA. Hopper's copy engine for moving tiles into shared memory.
  • Warp. 32 GPU threads that execute in lockstep. A warpgroup is four of them.
  • Xid. An NVIDIA driver fault code.

Everything here is in the repository. Where a number in this post and a record disagree, the record is right.