๐Ÿ‰ Part of the Baidu-Baige Loong open-source series

LoongForge

Train LLMs, VLMs, Diffusion & Embodied models โ€” faster.

A unified, high-performance framework for training LLMs, VLMs, diffusion, and embodied models โ€” multi-backend, with native NVIDIA GPU & Kunlun XPU support

Easy Efficient Multi-chip
~5ร—
Max training speedup
35+
Model families supported
GPUยทXPU
NVIDIA & Kunlun backends
Apache 2.0
Open source license
๐Ÿงฉ
Easy
One framework, broad coverage
Full coverage of mainstream open-source LLMs, VLMs, MoE, diffusion, and VLA models. Ready-to-run configs and launch scripts included.
โšก
Efficient
Up to ~5ร— training speedup
Deep performance optimizations โ€” fused kernels, adaptive FP8, MoE A2A overlap, and multimodal pipeline scheduling.
๐Ÿ’Ž
Multi-chip
NVIDIA GPU & Kunlun XPU
Native heterogeneous hardware support โ€” one framework, minimal migration between GPU and XPU.

๐Ÿ”ฅ Latest News

All posts โ†’

โœจ Key Features

A quick tour of what sets LoongForge apart

๐Ÿค– Embodied
Embodied Training
Dedicated torch-native DDP/FSDP subsystem for VLA & WAM models, with DDP / ZeRO-1 / FSDP / HSDP.
๐Ÿง  MoE
Tri-Stream Overlap
MoE EP comm ร— compute ร— offload in parallel โ€” higher throughput than upstream.
๐ŸŽ›๏ธ Multimodal
Heterogeneous & Disaggregated
Independent TP / PP / DP per component + decoupled ViT / LLM scheduling that kills pipeline bubbles.
โšก Performance
Adaptive FP8
Per-operator FP8 decisions by GEMM shape.
๐Ÿ”ง Performance
Fused Operators
FusedDSA / Sparse MLA kernels for end-to-end speedup.
๐Ÿงต Performance
ChunkPipe
Chunked long-sequence pipelining toward million-length contexts.
โš–๏ธ Multimodal
DP Load Balancing
Fixes packing-induced imbalance at cluster scale.
๐ŸŽฏ Training
Pretrain + SFT + LoRA
One codebase covers key training stages.
๐Ÿ” Usability
HF โ†” Megatron
Bidirectional checkpoint conversion + online HF load/save.

๐Ÿ—๏ธ Architecture

One unified stack โ€” from model composition down to GPU / XPU silicon.

LoongForge architecture

๐Ÿ“Š Benchmark

Measured on latest LoongForge across VLA, WAM, and VLM workloads

DreamZero WAM
2.67ร—
GR00T N1.6 VLA
2.31ร—
Pi0.5 VLA
2.23ร—
LingBot VA WAM
1.80ร—
Qwen3-VL-30B-A3B VLM
1.45ร—
1.0ร— baseline
5.04ร—
DeepSeek-V3.2 Lite ยท DSA operator-level optimizations
Validated on a reduced-layer configuration due to test-bed scale limits.

๐Ÿ’Ž Hardware Compatibility

One codebase, two silicon stacks โ€” production-ready on NVIDIA GPU and Baidu Kunlun XPU

NV

NVIDIA GPU

Built on the community Megatron + TransformerEngine ecosystem, with LoongForge optimizations layered on top.

ๆ˜†

Kunlun XPU

XPU Plugin mechanism shields the upper stack from adaptation differences, while integrating an XPU-specific optimization toolchain.

๐Ÿ›๏ธ Supported Models

From compact SLMs to large-scale MoE giants โ€” all batteries-included

DeepSeek-V2

v2-litev2

DeepSeek-V3

v3

DeepSeek-V3.2

v3.2

DeepSeek-V4

v4-flashv4-pro

LLaMA2

7B13B70B

LLaMA3

8B70B

LLaMA3.1

8B70B405B

Qwen

1.8B โ†’ 72B

Qwen1.5

0.5B โ†’ 72B

Qwen2

0.5B โ†’ 72B

Qwen2.5

0.5B โ†’ 72B

Qwen3

0.6B โ†’ 480B-A35BCoder-30B-A3B

Qwen3-Next

80B-A3B

MiniMax

m2.1m2.5m2.7

MIMO

mimo-7b

GLM

glm5

๐Ÿš€ Quick Start

From install to launch โ€” jump straight to the tutorial for your model type

1

Install

Recommended: one Docker image bundles the CUDA/XPU toolchains, patched Megatron, and TransformerEngine โ€” so every node trains from the same environment. Source build is also supported.

Show Docker build commands
$ git clone --recurse-submodules \
    https://github.com/baidu-baige/LoongForge.git
$ docker build --build-arg COMPILE_ENV=hopper --build-arg ENABLE_LEROBOT=false \
    -t loongforge:latest \
    -f ./LoongForge/docker/Dockerfile .
$ docker build --build-arg ENABLE_LEROBOT=false \
    --build-arg BASE_IMAGE=loongforge/loongforge_kunlun:py310_torch25 \
    -t loongforge-kunlun:latest \
    -f LoongForge/docker/Dockerfile.xpu .
3

Explore & launch

Browse ready-to-run configs and example scripts to launch your first run.

๐ŸŒŸ Powered by LoongForge

Open-source models trained with LoongForge or its predecessor AIAK-Training-LLM

๐Ÿค Community

Built in the open โ€” join discussions, report issues, and contribute

14+
Contributors
Apache 2.0
License
๐Ÿ‰ Loong
Baige Loong Series