Watch it learn
Qubit is our own model, trained here in public to rewrite crypto code that a quantum computer could break. The curve below is its loss, step by step. The loss comes from the trainer. The scores do not: at every checkpoint we give the model the 64 tasks of the bench, which it never saw in training, and run each answer against the task's tests on our own server.
Reading the run…
- Base model
- —
- Trained on
- —
- Step
- —
- Epoch
- —
- Loss
- —
- Tokens seen
- —
- Bench now
- —
- Before training
- —
- GPU
- —
- Running for
- —
- GPU cost so far
- —
Checkpoints
Each row is the model frozen at that step and tested on all 64 bench tasks. A task passes only when its fixed module runs and proves itself: real ML-DSA-65 or ML-KEM-768 sizes, an independent verify, a changed message and a wrong key both rejected.
| Step | Passed | Bench | Signatures | Seeds | Hybrid | Key exchange | Tokens |
|---|---|---|---|---|---|---|---|
| The first checkpoint is tested before training starts. | |||||||
The same task, step by step
Pick a bench task and drag through the checkpoints: on the left the code it was given, on the right what the model wrote at that step, and what the tests said.
Pick a task.
—
Taught on fixes that were proven, tested on code it never saw
The base is an open code model, Qwen2.5-Coder 1.5B. We train a LoRA adapter on it with fixes where every single one passed its tests: crypto modules that sign with ed25519, secp256k1 or P-256, derive wallet keys from a seed, swap keys with X25519 or issue ES256 tokens, each rewritten onto ML-DSA-65 (FIPS 204) or ML-KEM-768 (FIPS 203) with its exports kept. The bench uses function and field names that never appear in training, so a pass means it learned the fix, not the answer.
Why train our own model?
Big general models write post-quantum code from memory, and the library calls they remember are often wrong. A small model trained only on fixes that passed their tests learns the exact calls, sizes and shapes, and it is small enough to run on our own server.
What does the bench test?
Each task's test imports the fixed module and checks it the hard way: the public key and signature have ML-DSA-65's real sizes (1,952 and 3,309 bytes), an independent ML-DSA verify accepts it, the module's own verify rejects a changed message, a wrong key and a cut signature, and unless the task asks for a hybrid, no elliptic-curve library is left. Key exchange must give the same 32-byte secret on both sides through ML-KEM-768.
Where does it run?
Training runs on a GPU we rent for the length of the run (an RTX 4090 for the first one) and is switched off when it ends. The tests run on our own server, in a locked-down process that can't write files or start programs.
Will it keep training?
Yes, in rounds. Each round adds kinds of crypto code to the bench and to the training fixes, and every round is shown here from its first step.