Inkling 2 Mini on Kaggle 2×T4
Thinking Machines's Apache 2.0 looped MoE, running at 41.5 tokens per second on two free Kaggle T4s, with no speculation. 26.4B parameters total, 3.4B active, 128 experts per layer routing each token to 8.
Results
| Metric | Value |
|---|---|
| Decode, overall | 41.5 tok/s |
| Single-token step | 23.6 ms |
| Quality | +0.69% perplexity |
| Top-1 agreement vs fp16 | 97.0% top-1 agreement against fp16 |
| Correctness vs reference | KL about 1e-7 against the reference engine |
| Protocol | Greedy, 10 prompts, 4,476 tokens, zero timeouts |
Median 41.6 tok/s, range 39.4 to 43.0. Long answers run slower because attention reads more cache.
Why it is hard
24 physical layers, with layers 6-17 run three times, so every token passes through 48 layer calls. That is 48 layer calls per token before any of the other work.
The quantisation has no hardware path
The checkpoint's own NVFP4 (layers 0-19) and MXFP8 (layers 20-23), decoded by our Triton kernels; dense weights int8 with per-group scales. A T4 has no fp8 support in Triton, so decode uses fp16 bit-pattern tricks and is exact.
The layers loop
Reused weights change how memory is planned across a forward pass, and change how attention keys and values can be cached, because the same layer runs again with different activations.
What made it faster
Progress in tokens per second: 0.69, 1.24, 2.99, 10.8, 13.5, 18.2, 20.6, 23.9, 24.6, 34.1, 34.4, 36.8 then 41.5 tok/s.
- NVFP4 and MXFP8 expert decode in our own Triton kernels
- int8 per-group GEMV for dense weights and the head
- Expert parallelism: every expert split by intermediate dimension across both GPUs
- A device-side exchange using NCCL's low-latency protocol idea, 16 us round trip
- Our own attention kernel for filled positions, online softmax with sink
- Fused router top-k, CUDA graphs per GPU segment
The decisive finding
The first working layout ran the two GPUs in series, so each sat idle half of every token. Experts were 65% of the step. Both T4s stream experts at full speed at the same time, so splitting every expert by its intermediate dimension, rather than by expert index, lets both cards stream simultaneously and in the same time as one alone. Splitting by index would have cost about 14% to imbalance.
No peer-to-peer atomics
Kaggle's bridge connects the GPUs through the CPU host bridge, with no P2P atomics, so flag-based handshakes were impossible and host-driven copies cost 88 microseconds each. The fix was NCCL's low-latency protocol idea: every 8-byte word carries 4 bytes of data and a 4-byte tag, the sender writes straight into the receiver's memory, and the receiver polls its own memory. That measured a 16 microsecond round trip.
The gap to 60
The step needs to go from 23.6 ms to 16.7 ms. These savings are estimates, not measurements:
| Item | Saving |
|---|---|
| Hand-fuse the ~1,500 small dense kernels per token | 4-5 ms |
| Lazy/certified head, not the full 200K vocab every token | ~1.5 ms |
| Expert decode in fp16 math | 1-2 ms |
| Exchange glue | ~1 ms |
Speculation, measured and parked
The DSpark draft model was ported and acceptance was measured on our engine, which is not something vLLM publishes for this model: greedy, 10 prompts, 1,920 anchor positions, blocks of 8.
| Measure | Value |
|---|---|
| Mean accepted per block | 1.82 |
| Tokens per verify step, 7 drafts | 2.45 |
| Acceptance, prose vs code | 1.10-1.24 vs 2.24-2.33 |
| int8 vs fp16 acceptance | Identical (consistency 1.0) |
| On 2×T4 | 44-46 tok/s vs 43.4 without it |
It buys almost nothing here, because each extra token pulls in about 4 new experts and expert bytes dominate. Parked until the kernel work changes that arithmetic.
What is honest about this
- The engine exists only in a live notebook session, not yet consolidated into one-click cells.
- Greedy decoding only, and prompts are fed one token per step.
- MAXLEN is 1,024 against a 32k target.
- T4s throttle at their 70 W cap, so results vary a few percent.
- Speculation (DSpark) was measured and parked: it buys 44-46 tok/s against 43.4 without it, because each extra token pulls in about 4 new experts.
Mistakes on the record
Two projections published earlier in this work were wrong, and both are corrected here.
- A "dense = 9.4 ms" figure was a subtraction, not a measurement. The direct measurement was 19.6 ms, so the 56-58 tok/s projections built on it were wrong.
- An "expert kernels at the memory floor" claim was wrong: they ran at about 115 GB/s, and the streaming ceiling for these shapes turned out to be 174-231 GB/s.
- Every integration failure during this work was a bug in the glue code, never in the model math.
Reproduce it
The kernels and notebooks are being cleaned up for release and will live in the research repository and on Hugging Face, both linked below. Until they land, this page is the record, and the numbers on it are the ones the code produced.
Results are scored on the Fikra Benchmark 500, and citation details are on the citation page.
Where everything lives
Kernels and notebooks are coming soon. These are the places they will appear, and the places everything else already is.
Follow the work
Progress and the kernels land here first.