Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

maxtext

> AI 编程
Open source

A simple, performant, and scalable Jax LLM!

2.4K stars0 likes1 views
WebsiteGitHub

About

A simple, performant, and scalable Jax LLM!

MaxText

Documentation | Release Notes

NOTE: We recommend customers use the latest PyPI release (see installation guide) or corresponding pre-built container images, while the main branch is not expected to be production-ready.

We recommend running MaxText with Python 3.12, as it is our primary supported version. Other Python versions may encounter compatibility issues.

MaxText is a high performance, highly scalable, open-source LLM library and reference implementation written in pure Python/JAX and targeting Google Cloud TPUs and GPUs for training.

MaxText provides a library of high performance models to choose from, including Gemma, Llama, DeepSeek, Qwen, and Mistral. For each of these models, MaxText supports pre-training (up to tens of thousands of chips) and scalable post-training, with popular techniques like Supervised Fine-Tuning (SFT) and Group Relative Policy Optimization (GRPO, a type of Reinforcement Learning) and Group Sequence Policy Optimization (GSPO, a type of Reinforcement Learning).

MaxText achieves high Model FLOPs Utilization (MFU) and tokens/second from single host to very large clusters while staying simple and largely "optimization-free" thanks to the power of JAX and the XLA compiler.

MaxText is the launching point for ambitious LLM projects both in research and production. We encourage you to start by experimenting with MaxText out of the box and then fork and modify MaxText to meet your needs.

Check out our Read The Docs site or directly Get Started with your first MaxText run. If you’re interested in Diffusion models (Wan 2.1, Flux, etc), see the MaxDiffusion repository in our AI Hypercomputer GitHub organization.

Installation

See our installation guide to install MaxText with pip from PyPI.

Decoupled mode

See our guide on running MaxText in decoupled mode, without any GCP dependencies in Decoupled Mode Guide.

Latest news

  • [August 5, 2026] DeepSeek V4 Flash (284B) is now supported. See the user guide for checkpoint conversion and evaluation details.
  • [August 3, 2026] Tokamax GMM v2 is now available for MoE kernel. See the MoE configuration guide for details on how to enable it.
  • [July 15, 2026] RL is now supported for Qwen3 30B and GPT-OSS 20B. See the Qwen3 30B RL tutorial and GPT-OSS 20B RL tutorial for details.
  • [June 29, 2026] MaxText has migrated to Flax NNX from Linen. Existing workloads should continue running as normal. Please let us know if you encounter any issues.
  • [June 9, 2026] Qwen3.5 35B & 397B is now supported.
  • [May 29, 2026] A new eval framework is now available for running lm-eval, evalchemy, and custom benchmarks against MaxText checkpoints. See the Evaluation guide to get started.
  • [May 6, 2026] Kimi-K2-Thinking, Kimi-K2.5 (text), and Kimi-K2.6 (text) are now supported. See Run_Kimi.md for details.
  • [April 18, 2026] Added a new notebook maxtext_with_gepa.ipynb for optimizing AIME prompts using the GEPA framework with Maxtext.
  • [April 14, 2026] Legacy MaxText.* post-training shims have been removed. Please refer to src/MaxText/README.md for details on the new command locations and how to migrate.
  • [April 13, 2026] Kimi-K2 is now supported, along with MuonClip optimizer. Try the kimi-k2-1t config and check the user guide.
View full news archive
  • [April 10, 2026] DeepSeek-V3.2 is now supported, featuring DeepSeek Sparse Attention for long context. Try it out with the deepseek3.2-671b config. See the user guide for more details.
  • [April 2, 2026] Gemma 4 multi-modal models (26B MoE, 31B dense) are now supported! Try them out with our gemma4-26b and gemma4-31b configs. For more details, see Run_Gemma4.md.
  • [March 6, 2026] New features from DeepSeek-AI are now supported: Conditional Memory via Scalable Lookup (Engram) and Manifold-Constrained Hyper-Connections (mHC). Try them out with our deepseek-custom starter config.
  • [March 5, 2026] New tpu-post-train target in PyPI. Please also use this installation option for running vllm_decode. See the MaxText installation instructions for more info.
  • [March 5, 2026] Qwen3-Next is now supported.
  • [February 27, 2026] New MaxText structure! MaxText has been restructured according to RESTRUCTURE.md. Please feel free to share your thoughts and feedback.
  • [December 22, 2025] Muon optimizer is now supported.
  • [December 10, 2025] DeepSeek V3.1 is now supported. Use existing configs for DeepSeek V3 671B and load in V3.1 checkpoint to use model.
  • [December 9, 2025] New RL and SFT Notebook tutorials are available.
  • [December 4, 2025] The ReadTheDocs documentation site has been reorganized.
  • [December 3, 2025] Multi-host support for GSPO and GRPO is now available via new RL tutorials.
  • [November 20, 2025] A new guide, What is Post Training in MaxText?, is now available.
  • [November 6, 2025] Ironwood TPU co-designed AI stack announced. Read the blog post on its co-design with MaxText.
  • [October 29, 2025] Optimized models tiering documentation has been refreshed.
  • [October 12, 2025] Added Versioning. Check out our first set of release notes!
  • [October 10, 2025] Post-Training (SFT, RL) via Tunix is now available.
  • [September 26, 2025] Vocabulary tiling (PR) is now supported in MaxText! Adjust config num_vocab_tiling to unlock more efficient memory usage.
  • [September 24, 2025] The GPT-OSS family of models (20B, 120B) is now supported.
  • [September 15, 2025] MaxText is now available as a PyPI package. Users can now install maxtext through pip.
  • [September 5, 2025] MaxText has moved to an src layout as part of RESTRUCTURE.md. For existing environments, please run pip install -e . from MaxText root.
  • [August 13, 2025] The Qwen3 2507 MoE family of models is now supported: MoEs: 235B Thinking & 480B Coder as well as existing dense models: 0.6B, 4B, 8B, 14B, and 32B.
  • [July 27, 2025] Updated TFLOPS/s calculation (PR) to account for causal attention, dividing the attention flops in half. Accounted for sliding window and chunked attention reduced attention flops in PR and PR. Changes impact large sequence configs, as explained in this doc
  • [July 16, 2025] We will be restructuring the MaxText repository for improved organization and clarity. Please review the proposed structure and provide feedback.
  • [July 11, 2025] Multi-Token Prediction (MTP) training support! Adds an auxiliary loss based on predicting multiple future tokens, inspired by DeepSeek-V3 paper, to enhance training efficiency.
  • [June 25, 2025] DeepSeek R1-0528 variant is now supported.
  • [April 24, 2025] Llama 4 Maverick models are now supported.

Use cases

MaxText provides a library of models and demonstrates how to perform pre-training or post-training with high performance and scale.

MaxText leverages JAX AI libraries and presents a cohesive and comprehensive demonstration of training at scale by using Flax (neural networks), Tunix (post-training), Orbax (checkpointing), Optax (optimization), and Grain (dataloading).

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythondeepseekfine-tuninggemma2gemma3

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.