# Halo

> Pre-training, SFT and async RL for Hugging Face models, with parallelism added in place

- Category: Training & Fine-Tuning / Fine-Tuning Frameworks
- Language: Python
- Licence: Halo License: Apache-2.0 with White Circle's Supplemental Terms (offering Halo's training as a service is free up to US$20M revenue a year, then needs a commercial agreement)
- Repository: https://github.com/whitecircle/halo
- Website: https://whitecircle.com/halo
- Canonical page: https://ai-tldr.dev/tools/halo/

## In short

Halo is an open-source framework from White Circle for training large language and multimodal models. One codebase covers pre-training, supervised fine-tuning, preference optimization, distillation and reinforcement learning, and the same configs run on a single GPU or across several multi-GPU nodes. It sits in the Fine-Tuning Frameworks category of the Training & Fine-Tuning tools and is open-source, written in Python and licensed Halo License: Apache-2.0 with White Circle's Supplemental Terms (offering Halo's training as a service is free up to US$20M revenue a year, then needs a commercial agreement).

## Overview

Halo is an open-source framework from White Circle for training large language and multimodal models. One codebase covers pre-training, supervised fine-tuning, preference optimization, distillation and reinforcement learning, and the same configs run on a single GPU or across several multi-GPU nodes. It is driven by YAML configs and a halo launch command, and ships as Docker images for Blackwell (B200/B300) and Hopper (H100/H200) GPUs.

Its central design choice is that it trains Hugging Face models directly. The trainers subclass Hugging Face and TRL trainers, checkpoints stay standard SafeTensors that load with from_pretrained, and parallelism is wrapped around the existing model rather than re-implemented: expert parallelism wraps MoE blocks, context parallelism wraps attention, and tensor parallelism shards weights in place, all on PyTorch's FSDP2, DTensor and DeviceMesh with DeepEP for expert all-to-all. Each axis — EP, CP, TP, ETP and PP — is its own setting, and invalid combinations are rejected when the config loads.

Reinforcement learning is fully asynchronous: multi-turn environment rollouts run as Ray actors against vLLM or SGLang servers, and the trainer pushes updated weights to them over NCCL while the training side stays plain Transformers. White Circle publishes throughput benchmarks against Megatron Bridge, TRL and NeMo AutoModel in the README. Halo was first released publicly as 1.0.0 in August 2026, with 1.2.0 adding pipeline parallelism in November 2026.

## What it does

- Pre-training, SFT, preference optimization, distillation, GRPO and asynchronous multi-turn environment RL on shared parallelism and checkpointing code
- Expert, context, tensor, expert-tensor and pipeline parallelism configured per axis, on top of FSDP2, DTensor and DeepEP
- Trains Hugging Face models directly: checkpoints stay SafeTensors and load with from_pretrained, with tools to merge EP shards and PEFT adapters back into a standard checkpoint
- Built-in kernels and optimizations: FlashAttention 4/3/2, Liger fused losses, Grouped GEMM for MoE experts, padding-free and tree packing, and the AdamWBF16 optimizer
- LoRA, QLoRA, FP8/FP4 quantization-aware training, and training of a model's multi-token-prediction head
- Ships agent skills for Claude Code and Codex covering launching jobs, choosing parallelism, debugging runs and adding models

## Getting started

Halo runs inside its Docker images, so no host Python environment is needed. Pull the image for your GPU generation, then launch a training method with one of the example configs.

1. Pull the training image

   Images are architecture-specific (there is no latest tag) and can be pulled anonymously. Versioned tags such as :blackwell-1.3.0rc1 pin a release.

```bash
# B200/B300: FA4 + FA2 + DeepEP
docker pull public.ecr.aws/whitecircle/halo:blackwell

# H100/H200: FA2 + FA3 + DeepEP
docker pull public.ecr.aws/whitecircle/halo:hopper
```

2. Launch a single-GPU LoRA fine-tune

   halo launch takes a training method and a YAML config, and picks python, torchrun or accelerate launch from the arguments. This example fits on one GPU.

```bash
halo launch sft examples/sft/qwen3/qwen3-4b-ultrachat-lora.yaml
```

3. Scale out with expert parallelism

   Add -n for the GPU count. Options after the config that are not the launcher's own override the YAML values; --dry_run prints the command instead of running it.

```bash
halo launch sft examples/sft/qwen3_5/qwen3.5-35b-a3b-ultrachat-ep.yaml \
    -n 8 \
    --expert_parallel_size=8 \
    --learning_rate=1e-5
```

4. List methods and tools

   halo launch --list shows every training method (SFT, preference, GRPO online and environmental, …); halo run covers checkpoint, inference, data and environment utilities such as merging EP shards.

```bash
halo launch --list
halo run --list
halo run merge-ep-shards --input_dir <ep-checkpoint-dir> --output_dir <merged-dir>
```

## When to use it

- Fine-tuning or post-training a large MoE model from the Hugging Face hub across several GPUs without porting it to Megatron
- Running asynchronous multi-turn RL with vLLM or SGLang rollouts against your own environments
- Long-context SFT where sequences must be split across GPUs with context parallelism
- Keeping trained checkpoints in standard Hugging Face format for downstream serving
