inclusionAI/AReno
An easy-to-use, fast toolkit to scale up RL post-training on a single node.
AReno — What It Is
AReno (short for ASystem Reinforcement Learning Nano) is a self-contained software toolkit for post-training large language models (LLMs) — the step after a model is initially trained, where you refine it with techniques like reinforcement learning (RL), supervised fine-tuning (SFT), or DPO-style training. It was started by the ASystem team at Ant Group and is now maintained by the AReno community.
The core idea: you can go from a base model checkpoint to a trained and served model on a single computer — no cluster, no wiring together separate training frameworks, inference servers, and kernel libraries. The README calls it "nano in footprint, full-stack in capability."
Key Capabilities
- Plug-and-play: Switch between training methods with a
--algoflag (e.g.,--algo grpo,--algo sft,--algo gspo) or the sameTrainerclass in Python. No cluster or launcher setup needed. - Lightweight: One self-contained train/serve stack supporting three hardware backends: NVIDIA GPUs (CUDA), Ascend NPUs, and Apple Silicon (via MLX).
- Agentic RL ready: You can run an agent function against AReno's local OpenAI-compatible proxy, return explicit trajectories, and train from the tokens, logprobs, rewards, and loss masks the trainer derives.
- Multimodal: Supports image, audio, and video content with compatible model processors, using the same OpenAI-style message format for both serving and agentic training.
- Native LoRA: Train tensor-parallel-aware adapters for Qwen3, Qwen3-MoE, and Bailing-MoE V3 models. Saves standard PEFT artifacts (an
adapter_config.jsonandadapter_model.safetensors) that can be reloaded for training or serving. - QLoRA: Train Qwen3 dense and Bailing-MoE V3 adapters on CUDA with NF4 quantized weights, double quantization, and paged optimizers.
- JEV: Train a model-independent "decision head" (with backbone LoRA or full parameter updates), including native CUDA QLoRA and 4-bit/8-bit AdamW. Can then serve typed decisions:
choice,noul, andscore. - Extensible: New algorithms, model adapters, reward functions, and hardware backends can be registered without changing the core.
How Training Works (SDK Quick Start)
The RL loop is a short cycle of Trainer calls:
- Create the trainer — construct a
Traineron the AReno backend andinit()it to load the tokenizer and start workers. - Rollout — inside a
rollout_session(...), callrollout_batch(...)to generate on-policy completions for each prompt. - Score — reward each completion and turn rewards into advantages (using your own reward function, not AReno's).
- Train — pack the rollout into
TrainSequenceobjects and calltrain(batch, loss_fn)to run one optimizer step. - Repeat — new weights produce new rollouts; loop until done, then
close().
The README shows a complete example training on a GSM8K math problem with the GSPO algorithm.
Command Line Interface (CLI)
You can use AReno without writing Python:
areno agent— a local operations assistant. Configure it once with an endpoint, model, and API key, then describe a job in natural language (e.g., "Give me a complete command to run the math demo with n-samples=8"). It inspects the current checkout, reads command help, runs diagnostics, and produces or executes AReno commands. It can ask follow-up questions and streams command output.areno check— checks whether the current machine is ready to run AReno, printingOK,WARN, orFAILstatuses with concrete next steps for common issues (missing CUDA, CPU-only PyTorch, missingCUDA_HOME, etc.).areno env --json— collects a descriptive environment report (AReno version, Python, platform, PyTorch/CUDA, GPU,nvcc, dependency import status, relevant environment variables) for issue reports.areno train— run training. Examples include a tiny smoke test, GSPO on a GSM8K-style dataset, agentic RL (tic-tac-toe, a SWE-bench-style coding example, and a browser-game demo called DuelGrid), native LoRA, QLoRA, and JEV.areno serve— serve a trained checkpoint as an OpenAI-compatible endpoint with continuous batching (e.g.,http://localhost:8000/v1/chat/completions). Can serve a saved LoRA adapter without merging it into the base model.
Notable Training Options
--tune-params: For rollout-based algorithms, AReno probes rollout and train memory before the real run and fills conservative values for--max-running-prompts,--batch-size, and--mini-bs. It uses dummy-loaded model weights and synthetic token rows.--disable-thinking: Passesenable_thinking=Falseto compatible tokenizer chat templates during training prompt rendering or serving.--model-hub hf: By default, remote model/dataset refs use ModelScope; this flag switches to Hugging Face.--lora-rank/--lora-alpha: Enable native LoRA (e.g.,--lora-rank 8 --lora-alpha 16).--qlora --adam-4bit: Enable QLoRA on CUDA (NF4 weights, double quantization, paged Adam4bit).--qloradefaults to rank 8 / alpha 16 LoRA.--algo jev: Train a decision head with backbone LoRA. Add--qlorafor NF4 adapter training, optionally--adam-4bitor--adam-8bit, or omit LoRA options for full-parameter training.--agent-fn: Supply an agent function for agentic RL. The agent calls the local OpenAI-compatible endpoint (includingtoolsandtool_choicewhen needed) and returns explicitAgentTrajectoryTurnobjects; AReno converts those into trainable assistant outputs and masks tool results by default.
Installation & Platform Support
- Linux (x86_64 or aarch64) with an NVIDIA GPU and CUDA-enabled PyTorch 2.6+; Windows via WSL2 for the CUDA path.
- Apple Silicon macOS via MLX (installed with platform dependency markers so Linux-only Torch/CUDA packages aren't pulled in).
- Ascend NPU integration uses CANN and
torch_npu; the CLI selects NPU on Linux whentorch_npuis installed, otherwise CUDA, and MLX on native arm64 macOS. - Docker: Official image
inclusionai/areno(e.g.,ghcr.io/inclusionai/areno:v0.10.0), run with--gpus alland the NVIDIA Container Toolkit. - Install from source with
bash scripts/install.sh(CUDA/WSL2) or a Python venv +pip install -e .(Apple Silicon).
Development
Contributors can make a development install, set up pre-commit hooks (formatting, linting, commit message checks), and extend AReno via first-class extension points for new algorithms, model adapters, kernels, reward functions, and hardware backends — "most contributions land without forking the core."
License & Credits
- License: Apache 2.0.
- Inspiration: AReno's API design is inspired by Tinker from ThinkingMachines.
- Citation: The README provides a BibTeX entry crediting Zibo He, Le Su, Zongyu Li, Xiaowei Zhu, Cheng Wang, and Zhenxuan Pan (2026).
Related
- Project
- Project
- Project
- Project
- Project