Lab

The real Rust model, compiled to WebAssembly, running in this tab. Nothing is simulated in JavaScript: every parameter count, loss, gradient and attention map below comes from the same code the tests check.

Loading the engine…

Model calculator

Pick a preset or edit the architecture. The counts come from the Rust code that builds the model, so they are exact.

Parameters–
Head size–
KV width–
Fits in the lab–