Five days ago we were 2.7 points behind a frontier model writing Python. One training round later, we're 1.2 points ahead, on the same 277 tasks with the same judge.
Round 9 of our Hyperlambda model finished training on Saturday night. Barnabas ran it through the exact same three-run test as round 8, and the result is in: our 4B-active model, writing Hyperlambda, passed 256.7 of 277 tasks (92.7%). gpt-6-luna, writing Python, passed 253.3 (91.5%).

| Model | Language | Runs | Average | Score |
|---|---|---|---|---|
| gpt-6.2-sol | Python | 260, 264, 260 | 261.3 | 94.3% |
| Kimi K3 | Python | 259, 257, 257 | 257.7 | 93.0% |
| Hyperlambda, round 9 | Hyperlambda | 257, 256, 257 | 256.7 | 92.7% |
| gpt-6-luna | Python | 254, 253, 253 | 253.3 | 91.5% |
| Hyperlambda, round 8 | Hyperlambda | 247, 245, 246 | 246.0 | 88.8% |
Round 9 gained 10.7 tasks over round 8 on these 277 tasks. It now sits 1 task behind Kimi K3 and 4.7 tasks behind gpt-6.2-sol, OpenAI's best.
How big is the lead?
Small, and I'll say so plainly. Test by test, counting a test as passed when it passes in at least two of its three runs:
| Tests | |
|---|---|
| Both pass | 236 |
| Only Hyperlambda passes | 20 |
| Only Python passes | 18 |
| Neither passes | 3 |
The difference comes down to 38 tests that split the two sides, 20 against 18. A McNemar test on that split gives p ≈ 0.9, so on these tests we can't tell round 9 and gpt-6-luna apart with any statistical confidence. The same goes for Kimi K3 (17 against 19, p ≈ 0.9) and, just about, gpt-6.2-sol (12 against 19, p ≈ 0.3).
Last week I called a 2.7-point deficit what it was: behind. So I'll call this what it is: ahead, by 1.2 points, on the same tasks, with the same judge, over three runs. What changed is that we're now in the pack with the frontier models, instead of chasing it.
The method didn't change
Everything is exactly as it was for round 8, which last week's article describes in detail:
- The same 277 tasks, the ones of our 401 that plain Python can also do. The other 124 need Magic itself and are left out for every model.
- The same judge. Every answer runs as a real HTTP endpoint against real databases, files and test servers. Nothing is compared as text. Code passes when it does the job.
- The same prompts, and the same settings: temperature 0, no reasoning tokens, and the generator's verifier sending back an answer that doesn't parse or calls a command that doesn't exist, up to three attempts.
- The same frontier numbers. The Python scores for gpt-6-luna, Kimi K3 and gpt-6.2-sol are the runs we published last week. Only our side was run again.
What round 9 learned
Round 9 was trained on 572,743 snippets, 22,956 more than round 8. Most of the new ones were aimed at exactly the areas where the frontier was ahead. Here is what happened to those areas, out of the 277 tasks:
| Area | Tasks | Round 8 | Round 9 | Kimi K3 | gpt-6.2-sol | gpt-6-luna |
|---|---|---|---|---|---|---|
| Strings, maths, crypto, dates, validation | 38 | 29.7 | 36.3 | 36.7 | 36.0 | 37.0 |
| Threads and error handling | 14 | 9.0 | 13.0 | 13.0 | 12.3 | 13.0 |
| SQLite transactions | 15 | 10.3 | 13.0 | 12.3 | 13.3 | 14.0 |
| Images and MIME | 10 | 7.0 | 9.0 | 9.7 | 10.0 | 8.0 |
| Cryptography round trips | 9 | 6.0 | 8.0 | 9.0 | 9.0 | 9.0 |
- Strings and maths: up 6.7 tasks, from the weakest area to level with all three frontier models. This is where round 8 dropped argument declarations when a prompt said "takes two integer arguments" instead of "Executable Hyperlambda file", and where its percentage maths went wrong.
- Threads and error handling: up 4.0, level with Kimi K3 and gpt-6-luna, ahead of gpt-6.2-sol.
- SQLite transactions: up 2.7, ahead of Kimi K3.
- Images and MIME: up 2.0, ahead of gpt-6-luna.
- Cryptography: up 2.0, one task short of the perfect score all three Python models get.
That is the whole story of round 9 in one table: we found where we lost, wrote training data for it, and it worked.
Where it leads every model
| Area | Tasks | Hyperlambda | Kimi K3 | gpt-6.2-sol | gpt-6-luna |
|---|---|---|---|---|---|
| Files and folders | 15 | 15.0 | 13.0 | 12.3 | 13.0 |
| HTML to Markdown | 5 | 4.0 | 1.0 | 2.0 | 1.3 |
| Configuration, dates, strings and conversions | 11 | 10.7 | 9.3 | 8.7 | 10.0 |
Files and folders is now a perfect 15 of 15 in every run. No frontier model managed that.
And faster
Round 9 got better without getting slower. Barnabas timed all 1,194 answers from the three test runs, on one GPU, one at a time:
| Round 9 | |
|---|---|
| A typical answer | 1.1 seconds |
| Average | 1.7 seconds (round 8: 1.8) |
| 9 out of 10 answers done within | 3.2 seconds |
| Slowest answer | 21.7 seconds |
| Through the public API, including the network | about 2.1 seconds |
For comparison, Kimi K3 needed 5 seconds for a typical answer and 23 seconds on average, and the GPT models needed 5 to 6 seconds. A typical round 9 answer arrives in about a fifth of the time a typical Kimi K3 answer takes.
The full suite: 85.5%
On all 401 tests, including the 124 that need Magic itself, round 9 passed 342.7 (85.5%), up from 317.7 (79.2%) for round 8. That's 25 more tests.
The Magic-only tests are where round 8 was weakest, and they moved the most: 86.0 of 124 (69.4%), up from 71.7 (58%). The biggest gains there were in generating endpoints (+6.0 tasks) and running code in sandboxes (+5.0).
On 16 November I wrote that we would pass 90% on the full suite within a month. We're at 85.5% with a little over two weeks to go.
Three tests that write backends
The 277 shared tasks are the fair fight, but they aren't the hardest part of our suite. The hardest tests are the ones no Python model was given, because they need Magic itself. In them, the model doesn't write an endpoint. It writes a program that writes endpoints: it reads a database's schema while it runs, builds one HTTP endpoint per table or per column, saves them as files, and the judge then calls the endpoints it created.
Here are three of them. Round 8 failed all three in every run. Round 9 passes all three in every run. The code below is round 9's answer from run 1, copied verbatim.
1. One filterable GET endpoint per table, with date filters only where they make sense
Hyperlambda snippet that reads the names of all tables in the "chinook" database and loops through them, dynamically creating one GET HTTP endpoint per table listing all rows, saving a GET endpoint named after each table in folder "/modules/fine-tune-hyperlambda/generator-eval/endpoints/". For every date column the endpoint takes two optional "date" arguments named after the column with ".mt" and ".lt" suffixes, returning only rows where the column is more than respectively less than the value; no other columns are filterable. The snippet returns a success result.
Round 9's answer:
execute:magic.db.sqlite.tables
database:chinook
for-each:x:@execute/*
.table
set-value:x:@.table
get-value:x:@.dp/#/*/table
execute:magic.db.sqlite.columns
database:chinook
table:x:@.table
.get
.arguments
data.connect:chinook
add:x:./*/data.read/*/where/*/and
get-nodes:x:@.arguments/*
data.read
table
limit:-1
where
and
return-nodes:x:@data.read/*
for-each:x:@execute/*
if
strings.ends-with:x:@.dp/#/*/hl
.:date
.lambda
.from
set-value:x:@.from
strings.concat
get-value:x:@.dp/#/*/name
.:.mt
.to
set-value:x:@.to
strings.concat
get-value:x:@.dp/#/*/name
.:.lt
add:x:@.get/*/.arguments
.
.:date
.:date
set-name:x:@.get/*/.arguments/0/-/-
get-value:x:@.from
set-name:x:@.get/*/.arguments/0/-
get-value:x:@.to
set-value:x:@.get/**/data.read/*/table
get-value:x:@.table
.file
set-value:x:@.file
strings.concat
.:/modules/fine-tune-hyperlambda/generator-eval/endpoints/
get-value:x:@.table
.:.get.hl
io.file.save:x:@.file
lambda2hyper:x:@.get/*
return
result:success
What it does, step by step:
- It asks the database for its list of tables. Nothing about the chinook schema is written into the code, so the same snippet works on any SQLite database.
- For each table, it asks for that table's columns, with their names and Hyperlambda types.
- It keeps a template endpoint, the
.getnode, as plain data inside the program. The template takes whatever arguments it declares, adds them as conditions to a database read, and returns every matching row. - For each column whose type is a date, it adds two typed arguments to the template, named after the column with
.mtand.lton the end. On the Invoice table that givesInvoiceDate.mt:dateandInvoiceDate.lt:date. Tables without a date column, such as Track, get no arguments at all. - It writes the table's name into the template, turns the tree into Hyperlambda text, and saves it as
.get.hl, which Magic serves as a live GET endpoint straight away.
The end result is 11 working HTTP endpoints, one per chinook table. How the judge checks it: it confirms that all 11 files exist, and calls every endpoint to check it returns every row of its table. It calls the Invoice endpoint with
InvoiceDate.mt=2011-01-01&InvoiceDate.lt=2012-01-01and expects exactly the 83 invoices from 2011. It also checks that Track got no date filters and that Invoice did.Why it's a big deal:
- It's a generator, not an endpoint. One sentence produced a filterable API over a whole database, and it would do the same for a database with 200 tables it has never seen.
- The code is data. Hyperlambda code is a tree, so the model keeps the endpoint as a tree, adds nodes to it, renames them and saves it. There's no source code glued together from strings, so there's no quoting, escaping or indentation to get wrong. Doing this in Python means writing Python source as text from inside Python.
- The argument names are the filter. In Magic, a condition named
InvoiceDate.mtmeans "InvoiceDate is more than". So the model names the arguments after the operator they stand for, and the endpoint passes its arguments straight into the query as conditions. Each endpoint accepts only the arguments it declares, and Magic converts each one to a date before the code runs.
2. A POST endpoint whose validation comes from the schema
Hyperlambda snippet that reads the columns of the "products" table in the "generator_eval" database and creates the HTTP POST endpoint "modules/fine-tune-hyperlambda/generator-eval/endpoints/products", whose folder already exists. The endpoint takes one typed argument per column except the primary key, validates that every argument for a column declared NOT NULL is given, inserts a row with the arguments it is given, and returns the new row's id under [id]. The snippet returns [result] as "ok".
Round 9's answer:
execute:magic.db.sqlite.columns database:generator_eval table:products .post .arguments data.connect:generator_eval add:x:+/*/values get-nodes:x:@.arguments/* data.create table:products values yield id:x:@data.create for-each:x:@execute/* if not get-value:x:@.dp/#/*/primary .lambda unwrap:x:+/*/* add:x:@.post/*/.arguments . .:x:@.dp/#/*/hl set-name:x:@.post/*/.arguments/0/- get-value:x:@.dp/#/*/name if eq:x:@.dp/#/*/nullable .:bool:false .lambda .path set-value:x:@.path strings.concat .:@.arguments/*/ get-value:x:@.dp/#/*/name .check validators.mandatory set-x:x:@.check/* convert:x:@.path type:x insert-before:x:@.post/*/data.connect get-nodes:x:@.check/* io.file.save:/modules/fine-tune-hyperlambda/generator-eval/endpoints/products.post.hl lambda2hyper:x:@.post/* return result:okWhat it does: it reads the products table's columns and skips the primary key. For every other column, it adds an argument with that column's name and type. For every column the schema declares NOT NULL, it does something subtle: it builds an expression,
@.arguments/*/pricefor example, as text. It turns that text into a real expression withset-x, wraps it in a mandatory-argument check, and inserts the check into the endpoint before the database insert. Then it saves the endpoint.How the judge checks it: it calls the endpoint with only
{"title": "Gear"}. Price is NOT NULL, so the endpoint must refuse the call, and it does. Then it calls it with{"title": "Gear", "price": 1}and expects the new row's id back: 13.Why it's a big deal: the validation rules aren't written in the prompt or the code. They come from the database, at run time. The model wrote a program that writes other code containing expressions, which is about as meta as programming gets, and it put the checks in the right place: before the insert, so a bad call never reaches the database.
3. Batch-insert endpoints that run in one transaction
Hyperlambda snippet that, for each of the tables "suppliers" and "products" in the "generator_eval" database, creates the HTTP POST endpoint "modules/fine-tune-hyperlambda/generator-eval/endpoints/" followed by the table name and "-batch", whose folder already exists. Each endpoint takes one mandatory argument named "items", a list of objects whose fields are column names and values, validates that it is given, inserts one row per object into its table inside one database transaction, commits, and returns how many rows it inserted under [inserted]. The snippet returns [result] as "ok".
Round 9's answer:
.tables .:suppliers .:products for-each:x:@.tables/* .endpoint .arguments items:* validators.mandatory:x:@.arguments/*/items data.connect:generator_eval data.transaction.create for-each:x:@.arguments/*/items/* add:x:+/*/values get-nodes:x:@.dp/#/* data.create table values data.transaction.commit get-count:x:@.arguments/*/items/* yield inserted:x:@get-count set-value:x:@.endpoint/**/data.create/*/table get-value:x:@.dp/# .file set-value:x:@.file strings.concat .:/modules/fine-tune-hyperlambda/generator-eval/endpoints/ get-value:x:@.dp/# .:-batch.post.hl io.file.save:x:@.file lambda2hyper:x:@.endpoint/* return result:okWhat it does: for each of the two tables, it takes a template endpoint that accepts a list of objects, opens a transaction, inserts one row per object, and commits. It writes the table's name into the template and saves it as
-batch.post.hl. Because the insert loop sits inside the transaction, a row that fails rolls back every row before it.
How the judge checks it: it posts two suppliers to
suppliers-batchand expectsinserted: 2. Then it counts the rows of the suppliers table directly in SQL to confirm they really landed. Finally it callsproducts-batchwith no items and expects a refusal.Why it's a big deal: a transactional bulk-import API is the kind of endpoint teams write by hand, table by table, and get subtly wrong: the commit in the wrong place, or no rollback on failure. Here a 4B-active model generated the generator, from one paragraph of English, and the judge proved the endpoints work by calling them.
These three are why the 124 Magic-only tests matter to us. On them, round 9 went from 58% to 69.4%, and endpoint generators are where it gained the most.
What got worse
Not everything went up. 21 tasks got worse than in round 8, and 10 of them went from passing in every run to failing in every run. Two examples:
- A task that reads prices from a CSV file now converts
"150.00"to an integer instead of a decimal, and crashes. Round 9 saw a lot of new integer arguments in training, and it seems to have overlearned them. - A task that asks for the cheapest and the priciest product now returns a list with one row where the test wants a single object.
These are the cheapest points left on the table, because round 8 already knew how to do them. Winning those 10 back would, on its own, put round 9 ahead of Kimi K3.
Every way this is unfair, in both directions
Nothing here changed since last week, so in short:
- Unfair to Python: some prompts assume Magic's conventions, such as its Markdown style and JSON layout. Last week that cost gpt-6-luna 8.7 tests per run.
- Unfair to Hyperlambda: Python is the language every large model knows best, and Hyperlambda barely exists on the public web. Our model has about 4 billion active parameters per token, against frontier models with default reasoning.
- Different, not unfair: the frontier models check their work in hidden reasoning before they answer. Ours writes the code straight away, and the generator's verifier sends back anything that doesn't parse or calls a command that doesn't exist. The verifier never sees the tests, so it can't turn a wrong answer into a right one.
- It is our suite. I wrote the tests. They are kept out of the training data, but tests written by outsiders would be more convincing.
It is not "Hyperlambda beats Python". On these 277 tasks, a small fine-tuned model writing Hyperlambda now scores level with frontier models writing Python, and ahead of one of them. That's the claim, and only that.
Who did this
Two people. Barnabas trains the model and runs every eval on hardware we own. I write the training corpus and the tests. Claude, the AI model I work with, did much of the checking and analysis behind this article, under my supervision.
What comes next
- Win back the 10. Targeted training data for the tasks round 9 lost, starting with decimals parsed from text.
- Close the gap to Kimi K3 and gpt-6.2-sol. Kimi K3 passes 19 tasks in every run that round 9 doesn't. Most of them are among the tasks that got worse.
- 90% on the full suite, the promise from 16 November.
Try our model yourself on the Natural Language API page, with any sentence you like.
Frequently asked questions
Does Hyperlambda beat Python now?
On our 277 executed backend tasks, round 9 of our fine-tuned Gemma 4 writing Hyperlambda passed 92.7%, against 91.5% for gpt-6-luna writing Python, 93.0% for Kimi K3 and 94.3% for gpt-6.2-sol. The 1.2-point lead over gpt-6-luna is not statistically significant, so the fair summary is that our model is now level with frontier models on these tasks.
What improved from round 8 to round 9?
Round 9 gained 10.7 tasks on the 277 shared tasks and 25 on the full suite of 401. The biggest gains were in strings and maths, threads and error handling, SQLite transactions, images and MIME, and cryptography, the five areas where the frontier models led last week.
How did round 9 do on the full test suite?
It passed 342.7 of 401 tests (85.5%), up from 317.7 (79.2%) for round 8. On the 124 tests that need Magic itself it passed 69.4%, up from 58%.
How big is the model?
It is Google's Gemma 4 26B-A4B with our LoRA adapter: 26 billion parameters, of which about 4 billion are active for each token. Round 9 was trained on 572,743 Hyperlambda snippets.
How fast is round 9?
A typical answer takes 1.1 seconds and the average is 1.7 seconds, on one GPU, measured over 1,194 answers. Through the public API it takes about 2.1 seconds. Kimi K3 needed 5 seconds for a typical answer and 23 seconds on average, and the GPT models 5 to 6 seconds.
Did anything get worse?
Yes. 21 tasks got worse than in round 8, and 10 went from passing every run to failing every run, such as a decimal price read from a file being converted to an integer. Those are the next thing we fix.
Related reading
- Python 91.5%, Hyperlambda 88.8%: Frontier Results From a Small Lab
- Two People, One GPU, $130: Our 4B Model Is Trading Blows With Three Frontier AIs
- 74.3% on 401 Held-Out Tests: An Open Model You Can Run Yourself Now Writes Hyperlambda Better Than Our GPT-4.1-mini Fine-Tune
- Engineering a Custom LLM for Hyperlambda