XTuner

InternLM team's training toolkit for LLMs and VLMs, from QLoRA fine-tuning to large-scale MoE training.

Open SourceSelf HostedOffline CapableGPU Required
0.0 (0)

About

Shanghai AI Laboratory's InternLM team maintains XTuner, a toolkit that began as an efficient fine-tuning library offering QLoRA, LoRA, full-parameter, and DPO training across LLMs and vision-language models, and has since evolved into a next-generation engine targeting ultra-large mixture-of-experts models. The current V1 line focuses on multimodal pretraining and supervised fine-tuning plus GRPO reinforcement learning for models including Intern S1, InternVL, Qwen3 dense and MoE variants, GPT-OSS, DeepSeek V3, and Kimi K2, with MPO, DAPO, and multi-turn agentic RL on the roadmap. It advertises dropless training and 64k sequence lengths at the 200B MoE scale. Installation is pip install xtuner, a Dockerfile is provided, NVIDIA GPUs or Ascend NPUs are assumed, and documentation lives at xtuner.readthedocs.io. The Apache-2.0 license keeps commercial use open, and around 5,200 GitHub stars track a project that serves as the official training path for the InternLM ecosystem while pushing into large-scale MoE territory.

Should you use XTuner?

Pick it when

Pick it when you train InternLM, InternVL, Intern S1, or Qwen3 MoE models, or need multimodal pretraining, SFT, and GRPO at large MoE scale on NVIDIA GPUs or Ascend NPUs, following the InternLM ecosystem's official path.

Look elsewhere when

The V1 line focuses on very large MoE and multimodal training, so a simple single-GPU LoRA on a mainstream model is quicker with LLaMA-Factory or Unsloth. Several RL methods are still on the roadmap; verl covers more today.

Alternatives to XTuner

  • ms-swift

    Covers far more models and post-training methods, including PPO, KTO, and reward modeling, with a web UI, trading MoE-scale focus for breadth.

  • LLaMA-Factory

    Simpler web UI fine-tuning across 100+ models with QLoRA and DPO; better for small LoRA jobs, not giant MoE runs.

  • verl

    Mature RL with PPO, GRPO, DAPO, and more on FSDP or Megatron, where XTuner's RL menu is still growing.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!

Details

Price
Free
Platform
Local/Desktop
Difficulty
Intermediate (3/5)
License
Apache-2.0
Added
Jul 29, 2026

Tags