MaxText

by Google · Framework · Text & code

A JAX training framework for large language models on Google Cloud TPUs, with context parallelism for training on multi-million-token sequences.

unproven

Google's open training framework with long-context claims; no independent tests yet

Latest · Nov 28Added four context-parallelism strategies (All-Gather, All-to-All/Ulysses, P2P/Ring Attention, A2A+P2P/USP) enabling training at up to 14M-token contexts on Cloud TPUs

AccessOpen codeLicenseApache 2.0

Why we say so

Google says MaxText now has four context-parallelism strategies for training at up to 14M tokens on Cloud TPUs. It also says it reached 70% MFU up to 4M tokens on Llama 3.1 8B, and 48.7% MFU on TPU 7 versus 37.1% on TPU 5p. Sergio De Simone only reports that version 0.2.4 is out on PyPI, DockerHub and GitHub, and Nathan Beach offers a general remark about memory limits; nobody outside Google has published a benchmark or a hands-on run.

Evidence

  1. Nov 28
    Google recommends P2P (Ring Attention) as the workhorse for very long contexts and All-Gather as the baseline when KV fits
    Maker's claimGoogleviaInfoQ
  2. Nov 28
    With Llama 3.1 8B, reached 70% MFU for sequence lengths up to 4M tokens on TPU 5p, and about 50% MFU below 6M tokens
    Maker's claimGoogleviaInfoQ
  3. Nov 28
    P2P context parallelism reached 48.7% MFU on TPU 7 versus 37.1% on TPU 5p; both support contexts up to 14M tokens
    Maker's claimGoogleviaInfoQ
  4. Nov 28
    Planned: support for sliding-window/global hybrids and linear attention (Gated Delta Net, Kimi Delta Attention), Tokamax kernel and P2P backward-pass tuning, per-model recipes
    Maker's claimGoogleviaInfoQ
  5. Nov 28
    MaxText 0.2.4 is available through PyPI, DockerHub and GitHub
Show all 6
  1. Nov 28
    Nathan Beach said that for multi-million-token training on TPUs, attention memory, not compute, is usually the first wall

Everything said about MaxText, on the wire

Cost to run

Alternatives

Works with