Engine

OLMo-core rewritten in C++, so models run on a university’s own hardware.

It is OLMo-core, the AI2 training framework, rebuilt on LibTorch with its own CUDA and CPU kernels. We use it to train and serve our own models.

47.9tokens a secondOLMo-2 7B decode on one H100, batch 1, while another job held about 94% of the GPU
  • 6.6×
    the eager baselinesame run, with CUDA graphs and a paged KV cache
  • 39.9
    tokens a second in 4-bitAWQ weights in 9.1 GB of VRAM, so it fits a 24 GB card
  • 103,034
    tokens a second training1B model on two H100s, every optimisation on

Decoding OLMo-2 7Btokens a second
  1. Eager, fp327.2
  2. Eager, bf164.4
  3. CUDA graphs and a paged KV cache, fp3247.9
  4. The same, with 4-bit AWQ weights in 9.1 GB39.9

Batch 1, a single stream, measured while another job held about 94% of the GPU.

Inside

  • Fused QKV, gate and up, RMSNorm, SiLU and RoPE kernels
  • CUDA and SIMD CPU backends, Muon optimizer, µP initialisation and multi-token prediction
  • One configuration file per run, under Apache 2.0

Drafting ahead

  • Small low-rank heads guess the next tokens and the model checks them in one pass.
  • 1.178 times faster decoding on an A100 across 30 prompts, with output identical to plain greedy decoding
  • On an A100, the vocabulary side of training those heads takes 74 to 89% less time than full heads.

On a Mac

  • A 1B model at 91.8 tokens a second at batch 1 and 426.2 at batch 32 on an M4 Pro
  • Sparse attention decodes 8.66 times faster than dense at 16,384 tokens.

Checked, not assumed

  • The fused CUDA kernels were tested against a 64-bit reference and match plain bf16 to within rounding; a planted 2% error fails the test.
  • Training is about 10% faster than the Python original at steady state, not more.
  • On a consumer RTX 5060 Ti, 4-bit single-stream decoding of a 1B model runs at 93.5 tokens a second against Ollama’s 258. The kernel is the work in progress.
  • There is no head-to-head against llama.cpp or Ollama on an H100 yet.

Where it stands

Used to train and serve our own models, including Forge’s. Not yet packaged for outside use.