# Repository Briefing: PKU-YuanGroup/Helios
> Source: https://repoforai.com/repo/PKU-YuanGroup/Helios (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/PKU-YuanGroup/Helios
- **Official Docs / Website**: https://pku-yuangroup.github.io/Helios-Page
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: B+ (69/100 · Maintenance 26/35 · Adoption 17/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: GPU, CLI
- **Momentum**: 2,290 ★ total (+0 24h / +5 7d) · 207 forks
- **Topics**: `acceleration`, `diffusion`, `diffusion-model`, `diffusion-models`, `efficient-tuning`, `high-quality`, `image-to-video`, `image2video`, `interactive`, `long-context`, `long-video-generation`, `real-time`
- **When to Use**: Best for: Research and creative teams that need self-hosted, minute-scale video generation from text, images, or video and can benchmark the quality–throughput trade-off on their own hardware. Skip if: You require sustained 24 FPS generation, production-ready interactive controls, or a low-memory deployment with predictable latency and minimal environment maintenance.

## Overview
```text
### Architecture & Core Mechanics
Helios is a 14B video diffusion model that extends a sequence autoregressively in 33-frame chunks. Base, Mid, and Distilled share the same architecture, but sampling differs: Base uses v-prediction and standard classifier-free guidance (CFG); Mid retains v-prediction, switches to CFG-Zero*, and adopts more aggressive multiscale sampling. Both use HeliosScheduler. Distilled pairs x0-prediction with HeliosDMDScheduler and also uses the more aggressive multiscale path.

The Python implementation is under helios/, with infer_helios.py and train_helios.py as separate entrypoints. The pinned stack includes PyTorch 2.10.0, Triton 3.6.0, Diffusers 0.38.0, and Transformers 5.3.0. The Diffusers integration exposes HeliosPyramidPipeline; its Distilled example loads the VAE separately in FP32 while loading the pipeline in BF16 on CUDA. Checkpoint selection therefore changes the inference configuration, not just the weight path.

### Key Capabilities & Differentiators
All three checkpoints support text-to-video, image-to-video, and video-to-video through task-specific scripts. Interactive generation is available as an experiment, not a stable production capability. The CLI rounds a request for 240 frames up to 264, or 11 seconds at 24 FPS. For minute-scale output, 1,452 frames correspond to 60.5 seconds at that playback rate.

Reported end-to-end generation throughput is 19.5 FPS on a single H100 and about 10 FPS on a single Ascend NPU. These are generation rates, not playback rates or per-request latency guarantees. For integration, examples cover Diffusers, vLLM-Omni, and both native and Diffusers-backed SGLang-Diffusion. The native SGLang Base example uses 640 × 384 resolution, 99 frames, 50 inference steps, and guidance scale 5.0; treat it as a runnable configuration, not as the setup behind the headline throughput.

### Trade-offs & Limitations
Choose Base when output quality matters most and Distilled when inference cost matters more. Mid is an intermediate distillation checkpoint, so it is not a dependable middle ground without evaluation. The reported H100 result does not rely on standard accelerators such as KV caching or quantization, but that does not make the rate portable across hardware or sampling settings. In particular, 19.5 generated FPS falls below 24 FPS playback; do not interpret it as sustained real-time generation at 24 FPS.

The approximately 6 GB VRAM example is specific to Distilled with leaf-level group offloading and a 2/2/2 sampling schedule. Offloading reduces GPU residency at the cost of host-device transfers; multi-GPU context parallelism instead adds inter-GPU communication and deployment complexity. Against smaller local models or hosted generators, measure export time, temporal coherence, and total cost at the same output size and duration. Helios offers local control, but the available numbers do not establish a cost or quality advantage over either class of alternative.

### Hardware & Deployment Guide
Start with the provided Python 3.11.2 Conda setup, install the pinned PyTorch build for CUDA 12.6, 12.8, or 13.0 as appropriate, and run install.sh. Fetch the selected checkpoint from Hugging Face or ModelScope, then test the matching script under scripts/inference/ before using your own inputs. This is a self-hosted weight-loading path rather than a required hosted API. A separate requirements_npu.txt is present for the NPU stack; the CUDA setup is not interchangeable with it.

The integration examples install Diffusers, vLLM-Omni, or SGLang from source, whereas the repository pins Diffusers 0.38.0. Keep those environments isolated and record the commits used for reproducibility. No tagged GitHub release is listed. The project has added leaf-level offloading, multi-GPU context parallelism, and an AOTI Spaces example; validate the exact repository revision and backend combination you intend to deploy rather than assuming all paths behave identically.
```

## Key Capabilities
```text
- Temporal generation: Autoregressive 33-frame chunks, with requested lengths rounded up to the next chunk boundary.
- Checkpoint design: Base and Mid use v-prediction with HeliosScheduler; Distilled uses x0-prediction with HeliosDMDScheduler.
- Input modes: Text-, image-, and video-to-video scripts for all three checkpoints; interactive generation remains experimental.
- Throughput: Reported end-to-end generation of 19.5 FPS on one H100 and roughly 10 FPS on one Ascend NPU.
- Memory controls: Leaf-level group offloading for constrained VRAM; Ulysses and Ring are among the multi-GPU context-parallel options.
- Integration paths: Repository CLI, Diffusers HeliosPyramidPipeline, vLLM-Omni, and native or Diffusers-backed SGLang-Diffusion.
```

## Quick Start / Clone
```bash
# 0. Clone the repo
git clone --depth=1 https://github.com/PKU-YuanGroup/Helios.git
cd Helios

# 1. Create conda environment
conda create -n helios python=3.11.2
conda activate helios

# 2. Install PyTorch (adjust for your CUDA version)
# CUDA 12.6
pip install torch==2.10.0 torchvision==0.25.0 torchaudio==2.10.0 --index-url https://download.pytorch.org/whl/cu126
# CUDA 12.8
pip install torch==2.10.0 torchvision==0.25.0 torchaudio==2.10.0 --index-url https://download.pytorch.org/whl/cu128
# CUDA 13.0
pip install torch==2.10.0 torchvision==0.25.0 torchaudio==2.10.0 --index-url https://download.pytorch.org/whl/cu130

# 3. Install dependencies
bash install.sh
```
