English | δΈζ
TeleBoost is a unified post-training framework for diffusion models, with DPO and GRPO supported. Used internally at TeleAI for diffusion-model alignment.
- ποΈ Multi-paradigm post-training β DPO + GRPO
- π₯ Memory-efficient DPO β ~40% memory cut, ~15Γ longer context on Wan 14B
- π Six GRPO algorithms β DanceGRPO, Flow-GRPO, GRPO-Guard, TempFlow-GRPO, BGPO, VIPO
- π§© Co-located + MPS reward heads β N rewards on actor GPU; wall β max(model)
- π¬ Ready-to-use sequence parallel β Ulysses SP for long-video training
- π Day-0 BGPO + VIPO (CVPR 2026) β TeleAI papers, implemented on release
Wan 14B DPO peak memory at 32Γ 80GB-Hopper GPUs β Decoupled DPO cuts ~40% peak memory on identical workload and scales to ~15Γ longer context. See the project page linked in the badges above.
| Method | Status | Use case | Path |
|---|---|---|---|
| DPO | β Ready | Preference alignment | recipe/dpo/ |
| GRPO | β Ready | Reward-based optimization | recipe/grpo/ |
| TempFlow-GRPO | β Ready | Noise-aware weighting + trajectory branching (arXiv 2508.04324) | recipe/tempflow/ |
| GRPO-Guard | β Ready | Regulated clipping against implicit over-optimization (arXiv 2510.22319) | recipe/grpo_guard/ |
| BGPO | β Ready | Bayesian-prior group optimization (details) | recipe/bgpo/ |
| VIPO | β Ready | Pixel-weighted dense advantage (details) | recipe/vipo/ |
| FSDP backend for DPO | π§ Roadmap | Memory-efficient sharding without DeepSpeed-ZeRO | β |
The DPO recipe ships with a precision anchor against the reference
standalone-megatron implementation. See
recipe/dpo/README.md.
Pick the recipe that matches your post-training need. The top-level README is the feature overview; the recipe docs contain the commands, environment variables, and dataset expectations needed for a real run.
- GRPO β see
INSTALL.md. Launch withbash recipe/grpo/run_teleboost.shafter settingTRAIN_FILE/TEST_FILE/WAN_MODEL_PATH/REWARD_MODEL_PATH(TEST_FILE=$TRAIN_FILEworks for a smoke run). - DPO β see
QUICKSTART.mdandrecipe/dpo/README.md. Launch withbash recipe/dpo/run_teleboost_dpo.shafter building the Dockerfile and exportingMEGATRON_LM_DIR.
| Need | Start here |
|---|---|
| Understand the supported algorithms and system features | This README |
| Install and run GRPO training | INSTALL.md |
| Build the DPO image and run smoke / real DPO training | QUICKSTART.md |
| Understand DPO modes, precision alignment, and troubleshooting | recipe/dpo/README.md |
Four TeleAI contributions ship in this repo: VIPO + BGPO (day-0 GRPO papers), co-located reward + MPS (GRPO systems), and Gradient Decoupled DPO (DPO systems).
VIPO β Visual Preference Policy Optimization Β Β·Β GRPO Β Β·Β CVPR 2026 Β Β·Β arXiv 2511.18719
Implementation scope. TeleBoost implements VIPO's structured advantage path: a DINOv2-derived allocation map
M(p)forms dense advantagesA^p = M(p) Β· A. The concrete map-construction defaults in this repo β PCA pooling, reverse normalization, Gaussian smoothing, and resize behavior β are TeleBoost implementation choices; treat them as this repository's reproducibility baseline, not as a claim of bit-for-bit official paper reproduction. Seerecipe/vipo/algorithm.pyfor the full scope statement.
Lifts scalar GRPO feedback into structured, pixel-level advantages via a perceptual structuring module that produces spatially-aware advantage maps. See arXiv:2511.18719.
Top β standard Group Relevant Policy Optimization: reward model output collapses into a scalar advantage before policy update. Bottom β VIPO: preference signals are allocated into a structured advantage map, redistributing optimization pressure toward perceptually important regions.
BGPO β Bayesian-Prior Group Optimization Β Β·Β GRPO Β Β·Β CVPR 2026 Β Β·Β arXiv 2511.18919
Naming note. The paper names the method BPGO (Bayesian Prior-Guided Optimization). This repository keeps the existing BGPO identifier for backward compatibility with config keys (
algorithm.bgpo.*), env vars (BGPO_*), andBGPOMixin. Use BPGO in external citations; use BGPO when referring to this repo's code/config surface.
Two levels of optimization grounded in a Bayesian prior: inter-group trust allocation (RAS) and intra-group prior-anchored renormalization (CRT). See arXiv:2511.18919.
BGPO operates at two levels grounded in a Bayesian prior.
Left (RAS): group rewards + prior yield per-sample reliability
weights β reliability-aware loss β_RAS.
Right (CRT): rewards are renormalized against the prior β
recalibrated signal driving the next GRPO loss β_CRT.
Co-located reward (workers share actor GPUs) + MPS-parallel reward heads (N rewards on one GPU via CUDA MPS). Eliminates the idle reward-rank GPU and brings joint reward-head wall-time β max(model) instead of sum. The trainer driver combines heads in advantage space. On by default in joint mode.
Left: co-located reward shares the actor GPUs, eliminating the reward-rank idle gaps. Right: CUDA MPS β N reward models concurrent on one GPU, wall-time β max(model) instead of sum.
Per-branch backward + immediate reduce-scatter β frees each branch's full-shape gradient before the next backward starts. Mathematically equivalent to single-backward; on Wan 14B DPO at 32Γ 80GB-Hopper GPUs: ~40% peak memory cut and ~15Γ longer context.
Per-branch backward + immediate reduce-scatter. Decoupled DPO frees each branch's full-shape tensor before the next backward starts β visibly cutting the peak. (Result figure is at the top of this README.)
teleboost/ shared lib
teletron/ TeleTron fork: megatron-side runtime (parallel state, CP/TP layers, adaptor)
train/ algorithm-agnostic trainer + shared math (algos/) + reward orchestration (rewarding/)
workers/ verl worker plug-ins (diffusion rollout, sharding manager, reward managers)
reward/ reward functions, adapters, and reward model implementations
models/ Wan adapters + model-family facts
datasets/ DPO dataset base + transforms + video IO
patches/ runtime monkey-patches over pinned upstream (applied on import)
runtime/ cross-process transport (transfer queue)
recipe/
dpo/ DPO recipe (verl plug-in: MegatronEngineWanVideo + split-DPO multi-backward)
grpo/ GRPO recipe backbone (verl FSDP worker + diffusion actor + backend wiring)
bgpo/ vipo/ tempflow/ grpo_guard/ per-algorithm verticals (trainer + math + launcher)
docs/ wan DPO workflow + figures referenced by READMEs
tools/ one-shot helpers (e.g. convert_wan_to_teletron.py)
tests/ unit + special-distributed tests
data_preprocess/ GRPO data prep
Dockerfile / makefile / pyproject.toml / requirements.txt build + deps
LICENSE / NOTICE / CITATION.cff upstream attributions
.github/ CI + CODEOWNERS
Both recipes share the Dockerfile / requirements.txt / teleboost/
lib β choose your recipe at launch via recipe/{dpo,grpo}/run_*.sh.
TeleBoost is released under Apache 2.0 β see LICENSE.
This project builds on the following upstreams. Full per-package
attributions (license texts + redistribution terms) are in
NOTICE.
RL training stacks
volcengine/verlβ Apache 2.0. Bytedance's RL training framework; TeleBoost is built as a recipe layer on top.DanceGRPOβ Apache 2.0. TeleBoost's GRPO-family algorithms implement the DanceGRPO method described in arXiv 2505.07818.Tele-AI/TeleTronβ Apache 2.0. TeleAI's long-context multi-modal training framework; TeleBoost is built on top, with Gradient Decoupled DPO added.
Generation models
Wan-Video/Wan2.1β Apache 2.0. Alibaba's Wan2.1 / Wan2.2 video diffusion models, vendored underthird_party/wan/with the upstreamLICENSEretained.modelscope/DiffSynth-Studioβ Apache 2.0. ModelScope's diffusion toolkit; theFlowMatchScheduler(teleboost/models/flow_match.py) and the Wan VAE adapter are ported from it.
Reward models
tgxs002/HPSv2β Apache 2.0. Human Preference Score v2.alibaba-pai/VideoCLIP-XLβ CC-BY-NC-SA-4.0 (non-commercial). Alibaba's video-text alignment model. Not redistributed; thevideoclipreward loads a user-supplied copy placed underthird_party/VideoCLIP_XL/.Hritikbansal/videophyβ MIT. UCLA's video physical-plausibility model.LAION-AI/aesthetic-predictorβ MIT. LAION's CLIP + linear-head aesthetic predictor.mlfoundations/open_clipβ MIT. The ViT-L-14 vision encoder behind the aesthetic reward;teleboost/models/offline_clip.pyis a standalone reimplementation (dual OpenCLIP-MIT / TeleAI-Apache header).princeton-vl/RAFTβ BSD-3-Clause. Princeton's optical-flow model, used as a temporal-consistency reward.TencentARC/VideoAlignβ Apache 2.0. Referenced for reward-model design; not vendored in this repo (pull upstream if you want to train it).
@article{teleboost2026,
title = {TeleBoost: A Systematic Alignment Framework for High-Fidelity,
Controllable, and Robust Video Generation},
author = {Liang, Yuanzhi and Wu, Xuan'er and Liu, Yirui and Fang, Yijie and
Fan, Yizhen and Hao, Ke and Li, Rui and Liu, Ruiying and Ni, Ziqi and
Yu, Peng and Wang, Yanbo and Huang, Haibin and Weng, Qizhen and
Zhang, Chi and Li, Xuelong},
year = {2026},
}For per-algorithm citations:
- GRPO algorithms (DanceGRPO, Flow-GRPO, GRPO-Guard, BGPO, VIPO) β see
CITATION.cff. - Gradient Decoupled DPO β cite the TeleBoost paper above.




