Kern Hugging Face

Results / updated 31 October 2026

Every number behind Kern, with its interval.

The overview page shows the headline figures. This page has the tables behind them: which model, which exam, how many tasks and how sure we are. Intervals are 95%. Comparisons are paired and resample whole clusters of related tasks, so near duplicates do not count twice.

01 / Dev exam TS v0.1

450 edits on code no model of ours trained on.

The exam we use to accept or reject a training recipe. 450 tasks in 127 clusters from 14 open-source repositories: rxjs, mobx, ufo, cac, graphql-js, date-fns, marked, vue core, react-router, uuid, preact signals, react-hook-form, path-to-regexp and htmlparser2. 200 test fixes, 135 function edits, 70 refactors and 45 compile fixes. 150 instructions are in Polish. Every reference solution passes the hidden tests and every starting snapshot fails them.

Table 1 · Pass rate

A task passes when the edit applies, compiles, lints and passes the hidden tests.

Model First answer 95% interval After one repair Compiles
Qwen3.5-4B the Kern trunk, bare72 · 16.0%12.9 to 19.7n/a41.6%
Qwen3.5-9B bare175 · 38.9%34.5 to 43.5n/a78.0%
Kern 4B v0.6 public, mean of 3 seeds36.7%seeds 35.6 to 37.640.0%77.2%
Kern 4B v0.13 seed 0196 · 43.6%39.0 to 48.2206 · 45.8%84.7%
Kern 4B v0.13 seed 1194 · 43.1%38.6 to 47.7204 · 45.3%83.8%
Kern 9B v0.12 seed 0207 · 46.0%41.4 to 50.6n/a86.9%
Qwen3.8-27B bare254 · 56.4%51.8 to 61.0305 · 67.8%70.4%
bf16 weights on a GPU, temperature 0, thinking off, one answer per task. The repair turn sends the tsc and ESLint diagnostics back once, only for answers that fail those visible checks; hidden tests never choose what gets repaired. The laptop build of v0.6 seed 0 (4-bit trunk, llama.cpp on a MacBook) passes 147 (32.7%) on the first answer and 162 (36.0%) after the repair turn, about 4 points below its bf16 run.
Table 2 · Paired differences

What the gaps are worth.

Comparison, first answer Points 95% interval
Kern 4B v0.13 vs its bare trunk+27.6+22.7 to +32.5
v0.13 vs v0.6 2 and 3 seeds+6.7+3.3 to +10.0
Kern 9B v0.12 vs bare 9B+7.1+2.9 to +11.3
Kern 4B v0.13 vs bare 9B+4.7−0.7 to +10.1
Kern 9B v0.12 vs Kern 4B v0.13+2.4−2.4 to +7.4
Kern 4B v0.13 vs Qwen3.8-27B−12.9−18.6 to −7.1
Bootstrap over the 127 task clusters, 10,000 draws. Seeds of one recipe differ by up to 4.4 points on this exam, so we compare means of seeds and treat single-seed rows as indicative. The 9B module beats its own bare trunk; against the 4B module its lead is still inside the noise.
Table 3 · By category

Where each model wins and loses.

Model Compile of 45 Function of 135 Test of 200 Refactor of 70
Qwen3.5-4B2123262
Qwen3.5-9B37537015
Kern 4B v0.6 s034497310
Kern 4B v0.13 s036597427
Kern 9B v0.1237588428
Qwen3.8-27B44901146
The v0.13 gain over v0.6 comes from function edits and from refactors that move code to a new module, where the new file needs its own imports. The 27B model leads everywhere else and fails exactly there: 6 of 70.

02 / Pilot on production code

306 tasks, end to end, on a MacBook Air.

218 tasks on Moxxy, our desktop agent, and 88 on Umami, an open-source analytics app. Each configuration ran the whole product on an M4 MacBook Air with 24 GB from 19 to 29 October: context, answer, build and lint checks, one repair turn. Hidden tests decided correctness afterwards. The decision rule was registered before the first run.

Table 4 · After one repair turn

The 4B module is the only setup that is both right often and fast.

Configuration Accepted Precision Correct and accepted Within 15 s Peak memory
Kern 4B module v0.6 3 seeds74.2%67.1%49.8%29.8%7.4 GiB
Qwen3.5-4B + worked examples55.9%64.9%36.3%21.6%7.5 GiB
Qwen3.5-4B bare22.5%65.2%14.7%11.4%7.1 GiB
Kern 9B module 3 seeds78.0%72.5%56.5%20.2%10.3 GiB
Qwen3.5-9B + worked examples74.8%69.0%51.6%17.0%10.3 GiB
Qwen3.5-9B bare44.1%67.4%29.7%8.5%10.2 GiB
Liquid LFM2.5-8B-A1B 3 seeds24.0%14.0%3.4%0.4%8.0 GiB
Liquid LFM2.5-2.6B 3 seeds48.7%24.2%11.8%2.8%4.8 GiB
Accepted: the checks let the edit through. Precision: share of accepted edits that also pass the hidden tests. Within 15 s: correct, accepted and finished within 15 seconds of the request, checks included. Peak memory is the whole product, checks included. Worked examples add 2 to 3 thousand tokens to every prompt; the module gets more without them.
+8.3

points within 15 s for the 4B module over the best setup without one (95% interval +4.4 to +12.6). The registered bar was +5 with a lower bound above zero. Passed.

−1.4

points for the 9B module. It is the most accurate setup and the slowest: its first answer takes about 18 s at the median against 10 s for the 4B module.

0/32

refactors finished within 15 s by any configuration. The gain sits in compile fixes (+7.2), function edits (+9.2) and test fixes (+12.8).

03 / Green checks

How often an accepted edit is actually right.

The same 306 pilot tasks, module v0.6, three seeds. Arm A accepts an edit on build and lint. Arm B also runs the repository's own tests. Hidden tests decide which accepted edits were right.

Table 5 · After one repair turn

Repository tests raise precision by 10 points.

Checks Accepted Precision Correct and accepted
A · build and lint74.2%67.1%49.8%
B · + repo tests68.0%77.1%52.4%
B minus A−6.2+10.0+2.6
Precision gain 95% interval +6.9 to +13.3 points; correct and accepted +1.2 to +4.1. On the first answer, before repair, the precision is 69.0% for A and 78.1% for B. Running tests costs 1.4 points of answers within 15 s.
Table 6 · Precision by category

Near proof for some edits, weak evidence for others.

Category A · build, lint B · + tests
Compile fixes93.8%98.0%
Test fixes65.0%95.0%
Refactors40.0%50.0%
Function edits40.1%42.5%
A green check on a function edit is right less than half the time. This is why a person reviews every edit today, and why automatic application waits for a 99% lower bound on precision.

04 / Real GitHub issues

Public benchmarks, where we are weakest.

Issues from real projects, graded by the projects' own test suites run natively. One answer per issue, no repair turn, with the files of the merged fix shown to the model. Agents that search a repository over many turns solve far more of these.

Table 7 · Resolved issues

A single local edit resolves few real issues, for every model we tried.

Model SWE-bench Multilingual JS and TS slice SWE-PolyBench Verified TS
Qwen3.5-4B bare1 / 431 / 97
Kern 4B v0.134 / 436 / 97
Qwen3.5-9B bare2 / 434 / 98
Kern 9B v0.125 / 436 / 98
Qwen3.8-27B bare3 / 4311 / 99
A few vscode issues did not fit some runs' context or time limits, so PolyBench counts differ by row. All six PolyBench issues the 4B module resolves are in one repository (material-ui); it resolves none of the 21 vscode issues. The 27B model sets the ceiling for this format. Retrieval across the repository and chains of smaller edits are what we work on next for this kind of task.

05 / Expert modules

One trunk, one adapter per job.

Each module is a 65 MB LoRA adapter on the same frozen Qwen3.5-4B trunk, loaded at run time. Only TS edit v0.6 is public today.

Table 8 · Modules

Specialized adapters beat one adapter for everything.

Module Job Result
TS edit v0.13Edits TypeScriptDev exam 43.6% and 43.1% (two seeds), from 36.7% for v0.6
TS edit v0.6The public releaseDev exam 36.7%, pilot gate passed; on Hugging Face
React frontend v1.1React, TSX and CSS editsFrontend exam r6 (200 tasks, 50 of them ask or decline): 48% against 44% for the TS module, one seed each
Explain v0.1Answers questions about the code, edits nothingTried on live questions in the 28 October demo; no scored exam yet
Joint TS and frontend v1.3One adapter for both jobsDev exam 43.8% (TS module 43.6%), r6 45% (frontend module 48%), Multilingual 2 of 43 (TS module 4). Not adopted
The frontend module mostly wins on the decision to ask: on the 25 underspecified r6 requests it asks for clarification in 96% of cases against 68% for the TS module. On answer tasks the two are within a point (31.3% and 30.7%).

06 / Where we started

The 14 October proof of concept.

Our first public results, kept here unchanged. Golden TS v0.1 is an exam of 101 edits with hidden tests, frozen on 8 October and run once at the end, on the laptop as Kern ships. On 101 tasks a single score has an interval about 19 points wide, which is why we built the 450-task dev exam above.

Table 9 · Golden TS v0.1

The module lifted the 4B trunk about four times.

Model Runs on Passed of 101 pass@1
Qwen2.5-Coder 7B bareGPU1110.9%
Qwen3.5-4B bare, the trunkMacBook, Q41211.9%
Kern 4B TS module 3 seedsMacBook, Q449, 47, 4747.2%
Kern 4B + repair loop 3 seedsMacBook, Q454, 51, 4750.2%
Kern 7B same recipeGPU5756.4%
Qwen2.5-Coder 32B bareGPU6766.3%
GLM-5.2 744B, the teacherGPU8180.2%
Kern reached 59% of the teacher's score (95% interval 49 to 69%) against a 70% target. The 4B rows ran with a 4-bit trunk, the module loaded at run time and multi-token prediction in llama.cpp on an M4 MacBook.
Table 10 · Nine hypotheses

Thresholds set before we measured. One met, three partly.

Hypothesis Target Result Verdict
H1 Quality70% of a frontier model, no worse than a bare 7B59% of the teacher (49 to 69); +36 points over the 7BPartly
H2 Toolchain data+5 points from data the toolchain checkedFiltered 131, unfiltered 139 of 160Not met
H3 Toolchain reward+5 points over supervised trainingRL raised the training reward, not the examsNot met
H4 ConfidenceProbe AUROC 0.80, 0.05 above a text baselineAUROC 0.70, at most 0.044 above TF-IDFNot met
H5 Out of scopeF1 0.95, at most 5% false refusalsF1 0.96 on verify TS, 0.75 to 0.85 on 19 golden decisionsPartly
H6 Latency3 s per function edit7.3 to 9.6 s cold, 5.8 s warmNot met
H7 ModulesLoRA at 90% of full fine-tuning in 20% of the GPU timeTS: 102% (96 to 107) in 16% of the timeMet on TS
H8 Multi-token prediction1.3× faster, at most 1 point lowerFrontend 1.38×, TS 1.13×, no quality lossPartly
H9 Router98% module accuracy within 50 msLearned router 89%; a file-extension rule 435 of 435Not met
A hypothesis counts as met only when the whole 95% interval clears its threshold. The misses shaped what came next: a 450-task exam that can detect smaller gains, and checks judged by their measured precision in the product (section 03).

07 / Method and limits

How we measure, and what it does not prove.

  • Exams stay out of training. Golden and dev tasks never enter training data or the prompts that generate it. Training data is screened against every exam for 13-gram overlap.
  • A pass needs everything. A versioned harness applies the edit in a container, then runs strict tsc, ESLint, Prettier and the hidden tests. Compiling alone is not a pass.
  • Seeds matter. Seeds of one recipe differ by up to 4.4 points on the dev exam. We accept a recipe on the mean of its seeds and read single-seed rows as indicative.
  • Teachers, filtered. Training data come from larger teacher models and pass the toolchain before use. Every record keeps the name of the model that wrote it.
  • Our exams, not a leaderboard. Dev and golden are our own exams on public code. The public benchmarks in section 04 are where we compare on other people's terms, and there we are weak.
  • Tests bound the claim. Hidden tests make a superficial fix less likely. They cannot prove an edit right for every input.
  • GPU and laptop differ. Exam rows marked bf16 ran on a GPU. The 4-bit laptop build scores about 4 points lower on the dev exam.