Instructions to use gangweix/next-forcing-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use gangweix/next-forcing-base with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("gangweix/next-forcing-base", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
File size: 3,144 Bytes
3bb5446 b22eec3 305a3fe b22eec3 3bb5446 b22eec3 305a3fe b22eec3 305a3fe b22eec3 305a3fe b22eec3 305a3fe b22eec3 305a3fe b22eec3 305a3fe b22eec3 305a3fe b22eec3 305a3fe b22eec3 305a3fe b22eec3 305a3fe b22eec3 305a3fe b22eec3 305a3fe b22eec3 305a3fe b22eec3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | ---
license: apache-2.0
library_name: diffusers
pipeline_tag: robotics
tags:
- robotics
- world-model
- video-generation
- vision-action
- next-forcing
---
# Next Forcing โ Base Checkpoint
Base checkpoint for **Next Forcing: Causal World Modeling with Multi-Chunk
Prediction**. This is the causal video-action backbone used as the
initialization for post-training.
- ๐ Paper: https://arxiv.org/pdf/2606.11187
- ๐ Project page: https://gangweix.github.io/next-forcing/
- ๐ป Code: https://github.com/gangweix/next-forcing
- ๐ค RoboTwin post-trained model: [`gangweix/next-forcing-posttrain-robotwin`](https://huggingface.co/gangweix/next-forcing-posttrain-robotwin)
## Model Description
Next Forcing addresses the myopic supervision problem in autoregressive video
world models: next-chunk denoising tends to learn local appearance shortcuts
instead of long-range dynamics, especially at high frame rates. Lightweight
**Multi-Chunk Prediction (MCP)** modules predict multiple future chunks through
a causal chain during training, providing dense temporal supervision to the
backbone.
This base checkpoint contains the backbone **without** MCP modules. The MCP
modules are created at the start of post-training and initialized from the last
`mcp_blocks_per_depth` backbone blocks (`mcp_init_from_backbone = True`), so the
post-trained checkpoint is correspondingly larger (6.7B vs 5.1B).
| | |
| --- | --- |
| Parameters | 5.1B (BF16) |
| Backbone layers | 30 |
| MCP modules | Not included (added during post-training) |
Built on top of the [LingBot-VA](https://github.com/Robbyant/lingbot-va) codebase.
## Repository Layout
```text
transformer/ Causal video-action backbone
vae/
text_encoder/
tokenizer/
```
## Usage
Clone the code and install the dependencies as described in the
[repository README](https://github.com/gangweix/next-forcing).
```bash
python -m pip install "huggingface_hub[cli]"
hf download gangweix/next-forcing-base \
--local-dir ./checkpoints/next-forcing-base
```
The training code resolves model subfolders by path, so point
`NEXT_FORCING_PRETRAINED_MODEL_PATH` at the **local directory**, not at the Hub
repository id:
```bash
export NEXT_FORCING_PRETRAINED_MODEL_PATH=$PWD/checkpoints/next-forcing-base
export NEXT_FORCING_DATASET_PATH=/path/to/your/dataset
export NEXT_FORCING_SAVE_ROOT=/path/to/your/output
NGPU=8 CONFIG_NAME=robotwin_train \
bash script/run_va_posttrain.sh --init-worker 1
```
MCP defaults (`wan_va/configs/mcp_train_config.py`): `num_mcp_depths = 3`,
`mcp_blocks_per_depth = 3`, `mcp_hidden_collect_layers = [3, 11, 19, 29]`,
`mcp_loss_weights = [0.5, 0.2, 0.1]`.
## License
Released under the Apache License 2.0. Next Forcing is developed on top of the
LingBot-VA codebase; please retain the upstream attribution and license when
redistributing.
## Citation
```bibtex
@article{xu2026next,
title={Next Forcing: Causal World Modeling with Multi-Chunk Prediction},
author={Xu, Gangwei and Zhang, Qihang and Zhou, Jiaming and Zhu, Xing and Shen, Yujun and Yang, Xin and Xu, Yinghao},
journal={arXiv preprint arXiv:2606.11187},
year={2026}
}
```
|