google/tunix
A Lightweight LLM Post-Training Library
What it solves
Tunix simplifies the post-training phase of Large Language Models (LLMs) by providing a scalable, high-performance library built specifically for the JAX ecosystem. It bridges the gap between core JAX utilities and optimized model frameworks, allowing developers to refine models efficiently on TPUs.
How it works
Tunix acts as an intermediate layer in the JAX stack, utilizing tools like Flax, Optax, and Orbax. It supports various training techniques—ranging from standard fine-tuning to advanced reinforcement learning—by leveraging JAX for accelerated computation. For data collection, it integrates with high-performance inference engines like vLLM and SGLang-JAX, enabling efficient, distributed training across thousands of devices.
Who it’s for
It is designed for researchers and engineers working with JAX-based LLM workflows who need to perform supervised fine-tuning or reinforcement learning on TPUs. It is particularly useful for those building agentic systems that require multi-turn tool use and high-throughput trajectory collection.
Highlights
- Supports Supervised Fine-Tuning (SFT) including full weights, PEFT, DPO, and ORPO.
- Offers extensive Reinforcement Learning (RL) algorithms such as PPO, GRPO, and GSPO-Token.
- Includes specialized support for Agentic RL, featuring multi-turn tool use and asynchronous rollout.
- Built for massive scale with multi-host distributed training and fault-tolerant checkpointing.
- Provides native integration with high-performance kernels and inference engines like vLLM and SGLang-JAX.
Related
- Project
- Project
- Project
- Project
- Project