Skip to main content

OSS · Scene 07

Training & Fine-tuning

Turn a base model into your own: from single-GPU QLoRA to multi-node RLHF, start with VRAM, parallelism and reproducibility.

20selected repos
For people who need to change model behavior, adapt to a domain or run alignment training; inference-only work does not need this scene.Who it is for

How to choose

• 24 GB single GPU, 7B model: start with Unsloth.
• Turn fine-tuning into a reproducible config: Axolotl.
• DPO/PPO/GRPO alignment: start with TRL, scale with verl / OpenRLHF.
• Large-model or multi-node training: DeepSpeed, TorchTitan.
• MoE does not fit locally: KTransformers expert offload.
Not for: Do not choose full-parameter training by default; most domain adaptation is served by LoRA/QLoRA. Estimate data volume and eval gain first.

20 repos

Ordered by onboarding, not stars
Training & Fine-tuningStart here

Unsloth

unslothai / unsloth

Accelerated QLoRA/LoRA fine-tuning: Triton kernels cut VRAM use and training time for 7B–70B models.

Language
Python
Licence
Apache-2.0
Stars
79.8k
Updated
2026-11-19
Open repo card →
Training & Fine-tuningStart here

LLaMA-Factory

hiyouga / LLaMA-Factory

One setup for fine-tuning: LoRA, QLoRA, full-parameter and DPO, with a WebUI and model export.

Language
Python
Licence
Apache-2.0
Stars
76.1k
Updated
2026-11-19
Open repo card →
Training & Fine-tuningProduction

Axolotl

axolotl-ai-cloud / axolotl

One YAML config for fine-tuning: LoRA, QLoRA, full-parameter, DPO, GRPO and multi-node training.

Language
Python
Licence
Apache-2.0
Stars
12.7k
Updated
2026-11-19
Open repo card →
Training & Fine-tuningProduction

PEFT

huggingface / peft

The standard parameter-efficient fine-tuning library: LoRA, IA3, prefix tuning and other adapters, wired into Transformers and Accelerate.

Language
Python
Licence
Apache-2.0
Stars
21.9k
Updated
2026-11-20
Open repo card →
Training & Fine-tuningProduction

ms-swift

modelscope / ms-swift

ModelScope’s fine-tuning and deployment stack: LoRA and full-parameter training for LLMs and multimodal models, DPO/GRPO, inference and evaluation.

Language
Python
Licence
Apache-2.0
Stars
16.1k
Updated
2026-11-20
Open repo card →
Training & Fine-tuningProduction

TRL

huggingface / trl

Hugging Face's RL and alignment training library: SFT, DPO, PPO, GRPO and reward models.

Language
Python
Licence
Apache-2.0
Stars
19.8k
Updated
2026-11-19
Open repo card →
Training & Fine-tuningScale / performance

torchtune

meta-pytorch / torchtune

A PyTorch-native fine-tuning recipe library: readable training loops, FSDP, activation checkpointing and common post-training recipes.

Language
Python
Licence
BSD-3-Clause
Stars
5.8k
Updated
2026-11-19
Open repo card →
Training & Fine-tuningScale / performance

DeepSpeed

deepspeedai / DeepSpeed

Microsoft's large-model training library: ZeRO, offload, mixed precision and MoE training to make VRAM and throughput usable.

Language
Python
Licence
Apache-2.0
Stars
43.3k
Updated
2026-11-19
Open repo card →
Training & Fine-tuningScale / performance

TorchTitan

pytorch / torchtitan

PyTorch's official large-model training recipe: tensor parallelism, pipeline parallelism, FSDP and distributed checkpoints, following the Llama 3 path.

Language
Python
Licence
BSD-3-Clause
Stars
5.9k
Updated
2026-11-19
Open repo card →
Training & Fine-tuningScale / performance

verl

volcengine / verl

ByteDance's RL training framework for LLM agents and reasoning tasks, with PPO/GRPO and multi-turn tool use.

Language
Python
Licence
Apache-2.0
Stars
24.3k
Updated
2026-11-19
Open repo card →
Training & Fine-tuningScale / performance

OpenRLHF

OpenRLHF / OpenRLHF

A Ray + vLLM RLHF framework: PPO, GRPO, DPO, KTO and multi-node orchestration.

Language
Python
Licence
Apache-2.0
Stars
10.2k
Updated
2026-11-03
Open repo card →
Training & Fine-tuningLocal-first

KTransformers

kvcache-ai / ktransformers

Heterogeneous-hardware inference and fine-tuning: offload MoE experts to CPU/RAM so a small GPU can run large models.

Language
Python
Licence
Apache-2.0
Stars
19.7k
Updated
2026-11-13
Open repo card →
Training & Fine-tuningScale / performance

Megatron-LM

NVIDIA / Megatron-LM

NVIDIA’s large-scale Transformer training framework with tensor, pipeline, sequence and context parallelism, FP8, MoE and distributed checkpointing.

Language
Python
Licence
NOASSERTION
Stars
18.4k
Updated
2026-11-20
Open repo card →
Training & Fine-tuningProduction

kohya_ss

bmaltais / kohya_ss

A training GUI and script collection for Stable Diffusion models: LoRA, DreamBooth, fine-tuning, dataset tagging and utilities across SD1, SDXL and FLUX.

Language
Python
Licence
Apache-2.0
Stars
12.7k
Updated
2026-08-01
Open repo card →
Training & Fine-tuningProduction

LitGPT

Lightning-AI / litgpt

Lightning AI’s lightweight recipes for LLM training, fine-tuning and deployment: 20+ models, pretraining, SFT, LoRA, quantisation and inference, with an emphasis on single-GPU runs and readable code.

Language
Python
Licence
Apache-2.0
Stars
13.8k
Updated
2026-11-10
Open repo card →
Training & Fine-tuningProduction

Accelerate

huggingface / accelerate

Pulls PyTorch’s multi-GPU, TPU, mixed-precision, gradient-accumulation, FSDP and DeepSpeed boilerplate into one API: device placement, distributed launch and AMP without hand-written scaffolding.

Language
Python
Licence
Apache-2.0
Stars
9.9k
Updated
2026-11-18
Open repo card →
Training & Fine-tuningProduction

Datasets

huggingface / datasets

Hugging Face’s dataset library: load_dataset reads Hub, Parquet, JSON and CSV with streaming, memory mapping, map/filter/shuffle and train/test splits — without loading the whole corpus into RAM.

Language
Python
Licence
Apache-2.0
Stars
22.2k
Updated
2026-11-19
Open repo card →
Training & Fine-tuningProduction

Ray

ray-project / ray

A distributed compute framework: scale Python tasks and actors across cores and machines; Ray Train / Serve / Data / Tune cover training, serving, data loading and hyperparameter search.

Language
Python
Licence
Apache-2.0
Stars
44.3k
Updated
2026-11-20
Open repo card →
Training & Fine-tuningProduction

Argilla

argilla-io / argilla

Human-in-the-loop data annotation and curation: datasets, labeling tasks, weak supervision, model feedback and Hugging Face Hub integration for SFT/RLHF data.

Language
Python
Licence
Apache-2.0
Stars
5.2k
Updated
2026-11-16
Open repo card →
Training & Fine-tuningProduction

Label Studio

HumanSignal / label-studio

A multimodal data-labeling platform: text, image, audio, video, HTML and time series with templated interfaces; ML-backend pre-labeling, multi-user collaboration and many export formats.

Language
Python
Licence
Apache-2.0
Stars
28.7k
Updated
2026-11-20
Open repo card →
UnslothLLaMA-FactoryAxolotlPEFTms-swiftTRLtorchtuneDeepSpeedTorchTitanverlOpenRLHFKTransformersMegatron-LMkohya_ssLitGPTAccelerateDatasetsRayArgillaLabel Studio
PythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPython
Apache-2.0Apache-2.0Apache-2.0Apache-2.0Apache-2.0Apache-2.0BSD-3-ClauseApache-2.0BSD-3-ClauseApache-2.0Apache-2.0Apache-2.0NOASSERTIONApache-2.0Apache-2.0Apache-2.0Apache-2.0Apache-2.0Apache-2.0Apache-2.0
Stars79.8k76.1k12.7k21.9k16.1k19.8k5.8k43.3k5.9k24.3k10.2k19.7k18.4k12.7k13.8k9.9k22.2k44.3k5.2k28.7k
2026-11-192026-11-192026-11-192026-11-202026-11-202026-11-192026-11-192026-11-192026-11-192026-11-192026-11-032026-11-132026-11-202026-08-012026-11-102026-11-182026-11-192026-11-202026-11-162026-11-20
24GB 7BtransformersZeROPyTorchAgentic RLRay actorMoEMegatronGUI LoRAlaunchHub schemaAPI K8s
DeepSpeed / TorchTitanMegatron TorchTitanYAMLHugging Face ModelScopetransformers TrainerWebUI LLaMA-FactoryHugging Face TrainerSFT RLTRLvLLM/SGLangtorchtune/DeepSpeedMegatron/DeepSpeedPIIKubernetes