google-tunix
A lightweight JAX-native LLM post-training framework.
Decision gist · record as of 2026-08-14
Yes, if you are post-training LLMs on TPU infrastructure and want a modular, actively-maintained JAX-native framework. The low install friction and permissive license are favorable. However, the 26 runtime dependencies and alpha status mean you should verify that optional dependencies match your use case and accept that the API may evolve.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.11 or later.
- JAX and its dependencies (including google-metrax) may require additional system libraries and are typically used with TPU or GPU hardware.
- Low install friction with a pure-Python wheel.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use, modification, and redistribution with minimal restrictions—suitable for most production and research contexts.
last release 2026-06-11 (64 days) · last repo commit 2026-08-14 · 2,405 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 177,005 downloads/mo, #10,227 on PyPI
Alternatives
Verify before relying
pip install google-tunix
import tunix
from tunix.algorithms import supervised_finetune
# Configure and run SFT on your model and dataset- Whether the 26 runtime dependencies are all strictly required or some are optional/conditional based on use case.
- Whether Tunix can be used effectively on GPUs or if TPU is a hard requirement for documented performance.
- Stability and API surface maturity given the alpha development status and active feature expansion.
What it is and what it does
Tunix is a JAX-native post-training framework designed to streamline fine-tuning and reinforcement learning workflows for large language models. It sits as an intermediate layer in the JAX training stack, integrating with Flax, Orbax, and high-performance inference engines like vLLM and SGLang-JAX for rollout generation. The library provides modular, composable components for supervised fine-tuning (full-weight and parameter-efficient variants), preference optimization (DPO, ORPO), reinforcement learning algorithms (PPO, GRPO, GSPO-Token, DAPO, Dr.GRPO), and agentic RL with multi-turn tool use and asynchronous trajectory collection.
The package is optimized for TPU execution with native integration into XLA and Pathways infrastructure, supporting seamless multi-host distributed training at scale. It includes micro-batching for efficient component-level execution, checkpointing and fault tolerance, and support for a growing list of model families (Gemma, Llama, Qwen). Tunix is under active development (v2 release, alpha status) with ongoing expansion of capabilities.
Use it for
- Fine-tune open-source LLMs on custom instruction or domain-specific data using supervised fine-tuning.
- Run preference optimization workflows (DPO, ORPO) to align model outputs with human preferences.
- Train models with PPO or GRPO on reward signals for complex reasoning or task-specific behavior optimization.
- Build agentic RL systems where models learn to use tools and interact with environments over multiple turns.
- Integrate with JAX-based modeling frameworks and inference engines to streamline end-to-end post-training pipelines.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are post-training LLMs on TPU infrastructure and want a modular, actively-maintained JAX-native framework.
The low install friction and permissive license are favorable. However, the 26 runtime dependencies and alpha status mean you should verify that optional dependencies match your use case and accept that the API may evolve.
Install
google-tunix on PyPI
Before you install
Low install friction with a pure-Python wheel. The package is actively maintained (last commit 2026-08-14, 64 days since release) and in alpha status. However, it declares 26 runtime dependencies including heavy scientific stacks (JAX via google-metrax, Flax, TensorFlow, transformers), which will pull in substantial transitive dependencies.
Requires Python 3.11 or later. JAX and its dependencies (including google-metrax) may require additional system libraries and are typically used with TPU or GPU hardware.
License in practice
Apache-2.0 permissive license allows commercial and private use, modification, and redistribution with minimal restrictions—suitable for most production and research contexts.
Quickstart
pip install google-tunix
import tunix
from tunix.algorithms import supervised_finetune
# Configure and run SFT on your model and dataset
Verify before relying
- Whether the 26 runtime dependencies are all strictly required or some are optional/conditional based on use case.
- Whether Tunix can be used effectively on GPUs or if TPU is a hard requirement for documented performance.
- Stability and API surface maturity given the alpha development status and active feature expansion.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 26 packagesdatasetsflaxfsspecgoogle-metraxgrainhf_transferhuggingface_hubimportlib_resourcesjaxtypingjinja2kagglehubnumbaomegaconforbax-checkpointpillowpylatexencpython-dotenvperfettoqwixsentencepiecesafetensorssympytensorflow_datasetstqdmtransformerstenacity |
| Maintenance | Actively maintained 64 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 177,005 / month, #10,227 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersIntended Audience :: Science/ResearchProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/Engineering :: Artificial Intelligence |
Evidence: google_tunix-0.1.7-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “JAX LLM fine-tuning”
- google-tunixTunix is a JAX-based library for post-training large language models…
- transformersTransformers provides a unified framework for loading, fine-tuning,…
- llamafactoryLLaMA Factory provides a unified framework for fine-tuning 100+ large…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also trl · verl · tinker_cookbook · tokamax · llamafactory · agentlightning · clu · qwix · flax · google-metrax