← Back to Leaderboard
Cthu-ml

thu-ml/Causal-Forcing

Causal autoregressive diffusion distillation for low-step interactive video

LLM TrainerQuickstart ↓
Engineering Health (Methodology)
A · 79/100
Maintenance Activity
● Updated 14d ago
Latest Release
Rolling commits (main)
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption13/25
Release Cadence11/20
License Clarity20/20
CLIGPU
Total Stars
★ 1,042
24h Growth
+0
7d Growth
+5
Forks
65

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

thu-ml/Causal-Forcing Star History (2026-02-01 - 2026-12-04) ALL-TIME STAR HISTORY (2026-02 – 2026-12) +1k in 306d · avg +3/day 1.1k 550 0 2026-02-01: ★ 232026-02-21: ★ 3592026-03-14: ★ 4472026-04-04: ★ 5302026-04-25: ★ 5772026-05-16: ★ 6592026-06-06: ★ 7552026-06-27: ★ 8002026-07-18: ★ 8572026-08-08: ★ 9112026-08-29: ★ 9352026-09-19: ★ 9642026-10-10: ★ 9962026-10-31: ★ 1,0162026-11-19: ★ 1,0292026-12-04: ★ 1,042 ★ 1k 2026-02 2026-07 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Causal Forcing is a staged distillation codebase for causal autoregressive video diffusion, with frame-wise and chunk-wise generation. Stage 1 trains a multi-step autoregressive diffusion model. Stage 2 initializes a few-step generator with Causal ODE distillation or Causal Consistency Distillation (CD). Stage 3 applies asymmetric Distribution Matching Distillation (DMD) to produce the final generator. Intermediate checkpoints let researchers enter the pipeline at a later stage.

train.py runs YAML-configured jobs under torchrun, while inference.py pairs a configuration with a checkpoint and inputs. The source tree separates trainer/, model/, pipeline/, and wan/. The Python stack includes PyTorch ≥2.4.0, Diffusers 0.31.0, Transformers ≥4.49.0, and a separate flash-attn installation. The ODE route adds scripts that generate paired latents and prepare LMDB datasets; causal CD removes that preprocessing path.

Key Capabilities & Differentiators

The GPU CLI supports text-to-video with chunk-wise or frame-wise checkpoints. The frame-wise path also supports image-to-video by using the conditioning image as the initial latent frame. The original frame-wise inference configuration uses four denoising steps; Causal Forcing++ publishes separate one- and two-step checkpoints with matching YAML files and --use_ema inference examples. The checkpoint setup includes Wan2.1-T2V-1.3B and Wan2.1-T2V-14B assets.

Base models are limited to 81 frames, roughly the five-second regime described for training. Minute-scale generation is a separate Rolling Forcing-based implementation under long_video/, not a longer output setting on the base checkpoints. Fewer denoising steps reduce that part of the workload, but do not establish end-to-end real-time throughput on a particular GPU.

Trade-offs & Limitations

Self Forcing is the closest named comparison and shares the documented inference environment. Causal Forcing changes the initialization before DMD; its quality and motion gains should be checked on matched prompts and hardware rather than treated as deployment guarantees. Causal Forcing++ avoids generating ODE trajectories, and the original ODE route offers prepared data at about 300 GB. The CD route still needs ground-truth training data and a multi-step autoregressive model, whether trained locally or downloaded.

Reduced precision such as BF16 can destabilize CD or DMD for some models. If samples deteriorate or stay blurry, test FP32 and budget for its higher memory cost. The supplied batch-size-64 DMD recipe also cautions that training past about 1,000 steps may hurt motion, while smaller batches may benefit from longer runs. The code is Apache-2.0; assess the terms for weights and datasets separately.

Hardware & Deployment Guide

The setup uses Python 3.10, the pinned and minimum-version requirements, OpenAI CLIP installed from Git, flash-attn installed with --no-build-isolation, and python setup.py develop. Validate that the GPU, PyTorch/CUDA stack, and FlashAttention build are compatible before provisioning the full environment. Download Wan assets and the matching checkpoint from Hugging Face, then run inference locally; the documented CLI path does not require a hosted inference API.

Use the released weights to validate inference before reserving a cluster for training. Full training examples use torchrun on eight nodes with eight processes per node and c10d rendezvous; this is an example scale, not a minimum. The supplied metadata lists no GitHub release. Checkpoints are distributed separately, and the ComfyUI node is maintained in a separate community repository.

Training flow: Autoregressive diffusion training precedes causal initialization and asymmetric DMD.
Data preparation: The Causal ODE path generates paired latents and packs them into LMDB; Causal Forcing++ skips ODE pair generation, not training data.
Denoising schedules: The original frame-wise model has a 4-step CLI configuration, while Causal Forcing++ provides 1-step and 2-step checkpoints.
Conditioning: The frame-wise generator supports image-to-video by taking the input image as its initial latent frame.
Sequence length: Base generation is capped at 81 frames; minute-scale generation uses a separate Rolling Forcing extension under long_video/.
Numerical stability: FP32 is the recommended fallback when reduced precision causes CD or DMD training to deteriorate.
Best For

GPU-equipped research teams benchmarking short text- or image-conditioned video, comparing frame-wise and chunk-wise generation, or replacing ODE initialization with causal consistency distillation.

Skip If

You need native minute-long generation from the base checkpoint, a production API with established latency and VRAM budgets, or a lightweight full-training workflow without distributed GPU setup.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLIGPU
conda create -n causal_forcing python=3.10 -y
conda activate causal_forcing
pip install -r requirements.txt
pip install git+https://github.com/openai/CLIP.git
pip install flash-attn --no-build-isolation
python setup.py develop

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/thu-ml/Causal-Forcing.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

thu-ml/Causal-Forcing Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about Causal-Forcing

How do I integrate frame-wise image-to-video generation?

Pair the checkpoint with its matching YAML configuration in inference.py. The documented frame-wise image-to-video path uses configs/causal_forcing_dmd_framewise.yaml, an image-to-video input directory, --i2v, and --use_ema. The source image is encoded as the initial latent frame, so this path uses the same frame-wise generator rather than a separate image-to-video model.

How should I size a GPU for inference?

There is no verified minimum VRAM figure. Profile the exact checkpoint, resolution, clip length, and concurrency you intend to run; measure startup, peak VRAM, and steady-state throughput separately. The one- and two-step variants reduce denoising work, but step count alone does not establish peak memory. The 64-process distributed training examples are not inference requirements.

Does Apache-2.0 cover commercial self-hosting of the entire model stack?

The repository code is Apache-2.0 licensed. Review the terms for the Wan base weights, Causal Forcing checkpoints, datasets, and any third-party components separately before commercial deployment or redistribution. Self-hosting does not change those obligations.

When should I compare with Self Forcing, and when should I use a long-video implementation?

Use Self Forcing as a short-video baseline in the shared inference environment, holding hardware, inputs, output dimensions, and denoising settings fixed where possible. Measure visual quality, motion, and speed separately. For minute-scale clips, use the Rolling Forcing-based implementation under long_video/ or evaluate a dedicated long-video method; the base 81-frame checkpoints are not a like-for-like baseline.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining thu-ml/Causal-Forcing? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature thu-ml/Causal-Forcing on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare