What is Tunix?
mainTunix (Tune-in-JAX) is a JAX-based library designed for the efficient and scalable post-training of Large Language Models (LLMs). It is optimized for TPU performance and integrates with the JAX ecosystem (Flax, Optax, Orbax) and high-performance inference engines (vLLM, SGLang-JAX) for rollouts.
Core Capabilities:
- Supervised Fine-Tuning (SFT): Supports Full Weights Fine-Tuning, PEFT (Parameter-Efficient Fine-Tuning), DPO (Direct Preference Optimization), and ORPO (Odds Ratio Preference Optimization).
- Reinforcement Learning (RL): Supports PPO (Proximal Policy Optimization), GRPO (Group Relative Policy Optimization), GSPO-Token, DAPO, and Dr.GRPO.
- Agentic RL: Supports multi-turn tool use, asynchronous rollout for high-throughput trajectory collection, and trajectory batching/grouping.