FoundationScale
Open-source unified training framework for Speech, LLM, Multimodal LLM and VLA — from pre-training to agentic RL.
What is FoundationScale
FoundationScale is an open-source framework for training AI models across the whole lifecycle —
pre-training and continued pre-training, supervised fine-tuning, preference optimization,
reinforcement learning and agentic RL — for speech, language, multimodal and
vision-language-action models.
It brings these into one framework built on proven engines — Hugging Face Transformers,
Megatron-Bridge, vLLM, verl, GR00T and openpi — so the same project scales from a single
GPU to a Slurm cluster. FoundationSkills adds an agent layer on top: describe a goal, and
agents prepare the data, plan the stages, write the launch spec and evaluate the result, with
your confirmation before anything runs.
Highlights
- Four model families — Speech (ASR, TTS, Omni), LLM, Multimodal LLM and VLA.
- Five training stages — pre-training & CPT, SFT, preference optimization, RL and agentic RL.
- 20 preference & RL algorithms in one registry, from DPO to GRPO, DAPO, GSPO and PPO.
- Agentic RL — multi-turn tool use in sandboxed environments with a vLLM rollout fleet.
- FoundationSkills — agents plan, prepare data, launch, evaluate and research, with a human confirmation step.
- Measured recipes — step-by-step examples that report the results they reached on real GPUs.
- Scales out — DDP, FSDP2 and Megatron-Bridge (TP / PP / EP / CP) on NVIDIA Ampere, Hopper and Blackwell, local or under Slurm.
Training stages
| Stage | What it covers | Learn more |
|---|
| Pre-training & CPT | Continued pre-training through the same foundationscale-train entry as SFT | docs/TRAINING.md |
| SFT | Full fine-tune and LoRA, dense and MoE, text and multimodal | docs/TRAINING.md |
| Preference | DPO, IPO, KTO, ORPO, SimPO, CPO, Online DPO, Iterative DPO | docs/RL_ALGORITHMS.md |
| RL | PPO, GRPO, Dr.GRPO, DAPO, GSPO, RLOO, REINFORCE, REINFORCE++, RAFT, Best-of-N | docs/RL_ALGORITHMS.md |
| Agentic RL | Agentic GRPO, tool gateway, sandbox, vLLM rollout fleet, verl adapter | docs/AGENTIC_RL.md |
Model families
| Family | Highlights | Learn more |
|---|
| Speech | ASR fine-tuning for audio-LLM, seq2seq and CTC models (Whisper, Qwen3-ASR, Gemma-4 audio, Qwen2-Audio, Parakeet, Canary); TTS with VoxCPM2 (incl. Vietnamese + speaker LoRA) and Qwen3-TTS; Qwen3-Omni evaluation; WER/CER with paired bootstrap | examples/SPEECH.md, docs/research/speech.md |
| LLM | Full fine-tune and LoRA on dense and MoE models; preference, RL and agentic RL | examples/llm-2xA100, examples/agentic-rl-GB200, docs/AGENTIC_RL.md |
| Multimodal LLM | Image, video (sampled frames) and audio inputs; Gemma-4 and Qwen3.x VLMs; SFT, DPO-family and GRPO-family training with images | examples/vlm-2xH200, evidence |
| VLA | GR00T N1.7, openpi pi0.5 and verl-vla adapters; LeRobot data; GR00T fine-tuning; LIBERO closed-loop evaluation; FPO, DSRL, TD3+BC and RECAP RL recipes | examples/vla-GB200, docs/research/vla.md |
FoundationSkills
FoundationSkills is the agent layer: it decides what to train, and FoundationScale executes it.
It plans only against what the installed framework can actually run, and launches only after the
user confirms the plan.
| Skill | What it does |
|---|
data_engine | Raw sources → cleaned, deduplicated, formatted dataset + readiness report |
training.planner | Goal → stages, algorithm, method, resource estimate and feasibility |
training.emit | Plan + dataset → launch spec and Slurm sbatch, confirmed by hash |
evaluation | Checkpoint vs its base model on pinned, offline benchmarks |
auto_research | Budgeted multi-trial research campaign on an append-only ledger |
Read more in FoundationSkills/README.md; agents start at
FoundationSkills/SKILLS.md.
Installation
Requires Python ≥ 3.10.