Image-to-Video
Wan2.2
video-generation
world-model
causal-video-generation
real-time
agentic-control
research-only
Instructions to use YeyingLab/Wizard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Wan2.2
How to use YeyingLab/Wizard with Wan2.2:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Publish recommended Wizard causal DMD checkpoint
Browse filesCreate the private Wizard model release with the recommended causal DMD checkpoint, research-only license, model card, and teaser asset. The large checkpoint reuses the existing Hub LFS object without a local download or upload.
- .gitattributes +1 -0
- LICENSE.md +7 -0
- README.md +173 -0
- assets/overview.webp +3 -0
- weights/causal_dmd/ema_step300.safetensors +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
assets/overview.webp filter=lfs diff=lfs merge=lfs -text
|
LICENSE.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Wizard Model Weights License
|
| 2 |
+
|
| 3 |
+
The Wizard checkpoint in this repository is released for research use only.
|
| 4 |
+
|
| 5 |
+
See the [original Wizard release terms](https://huggingface.co/datasets/yuzhewu207/wizard#license) and the [separate Wizard code license](https://github.com/YeyingLab/Wizard/blob/main/LICENSE.md).
|
| 6 |
+
|
| 7 |
+
Third-party components retain their upstream licenses.
|
README.md
ADDED
|
@@ -0,0 +1,173 @@
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|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: Wan-AI/Wan2.2-TI2V-5B
|
| 3 |
+
pipeline_tag: image-to-video
|
| 4 |
+
arxiv: "2610.40339"
|
| 5 |
+
license: other
|
| 6 |
+
license_name: wizard-research-only
|
| 7 |
+
license_link: LICENSE.md
|
| 8 |
+
tags:
|
| 9 |
+
- video-generation
|
| 10 |
+
- image-to-video
|
| 11 |
+
- world-model
|
| 12 |
+
- causal-video-generation
|
| 13 |
+
- real-time
|
| 14 |
+
- agentic-control
|
| 15 |
+
- wan2.2
|
| 16 |
+
- research-only
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# Wizard: Manipulate Any World in Real Time via Agentic Control
|
| 20 |
+
|
| 21 |
+
**[Project Page](https://wyzardwu.github.io/wizard/)** · **[Paper](https://arxiv.org/abs/2610.40339)** · **[Code](https://github.com/YeyingLab/Wizard)** · **[Dataset and Legacy Checkpoints](https://huggingface.co/datasets/yuzhewu207/wizard)**
|
| 22 |
+
|
| 23 |
+
## Teaser
|
| 24 |
+
|
| 25 |
+
[](https://wyzardwu.github.io/wizard/)
|
| 26 |
+
|
| 27 |
+
*Change the world as you play. Wizard keeps the game state explicit and lets a real-time video model paint it.*
|
| 28 |
+
|
| 29 |
+
## Overview
|
| 30 |
+
|
| 31 |
+
Wizard is a controllable game world model that separates explicit game state from video rendering. Scene geometry, articulated character skeletons, and interaction rules are rendered into a visual proxy. A causal video generator built on [Wan2.2-TI2V-5B](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B) then turns the proxy into game frames.
|
| 32 |
+
|
| 33 |
+
This Model Repository contains the recommended inference checkpoint: the stage-4 causal DMD student. Training data, ready-made inference cases, and earlier checkpoints remain in the original [Wizard Dataset Repository](https://huggingface.co/datasets/yuzhewu207/wizard).
|
| 34 |
+
|
| 35 |
+
## Highlights
|
| 36 |
+
|
| 37 |
+
- **Proxy-driven control.** Scene geometry and articulated skeletons are rendered into one condition video and concatenated with video latents for precise camera and motion control.
|
| 38 |
+
- **Geometry-aware generation.** The proxy marks pixels as exact, coarse, or unknown so the model can follow known geometry while synthesizing unknown regions.
|
| 39 |
+
- **Character-aware adaptive masking.** Each reference image attends only to its corresponding character region, reducing appearance leakage between characters.
|
| 40 |
+
- **World-anchored spatial conditioning.** Per-pixel world coordinates support spatial memory and re-rendering from new viewpoints.
|
| 41 |
+
- **Two-step causal inference.** The released DMD student is used by the official `causal` and `world` inference modes with two consistency levels.
|
| 42 |
+
|
| 43 |
+
## Architecture
|
| 44 |
+
|
| 45 |
+
| Component | Description |
|
| 46 |
+
|---|---|
|
| 47 |
+
| Base model | Wan2.2-TI2V-5B |
|
| 48 |
+
| Generator | Causal video DiT with KV-cached streaming |
|
| 49 |
+
| Control | Proxy video with geometry tiers, articulated skeletons, and optional world coordinates |
|
| 50 |
+
| Reference binding | Character-aware, skeleton-derived adaptive masks |
|
| 51 |
+
| Spatial memory | World-coordinate conditioning and optional online world maintenance |
|
| 52 |
+
| Distillation | Teacher forcing with history self-augmentation, consistency distillation, then DMD on student rollouts |
|
| 53 |
+
| Recommended sampling | `causal` or `world`, two consistency levels (`1000,500`), CFG 1 |
|
| 54 |
+
|
| 55 |
+
The released repository covers the video generator. The agents that construct and manipulate the proxy, including rigging, motion retargeting, combat simulation, and the interactive front end, are not part of the code release. Ready-made proxies are provided in the Dataset Repository for reproducible inference.
|
| 56 |
+
|
| 57 |
+
## Model Zoo
|
| 58 |
+
|
| 59 |
+
| Checkpoint | Stage | Sampling | Location |
|
| 60 |
+
|---|---|---|---|
|
| 61 |
+
| `weights/causal_dmd/ema_step300.safetensors` | Stage 4: causal DMD student from the released training chain | `causal` / `world`, two steps | **This repository — recommended** |
|
| 62 |
+
| `weights/causal_dmd/ema_step480.safetensors` | Earlier DMD run, retained for comparison | `causal` / `world`, two steps | [Legacy repository](https://huggingface.co/datasets/yuzhewu207/wizard/tree/main/weights/causal_dmd) |
|
| 63 |
+
| `weights/causal_cd/ema_step10000.safetensors` | Stage 3: consistency-distilled causal student | `causal` / `world`, two steps | [Legacy repository](https://huggingface.co/datasets/yuzhewu207/wizard/tree/main/weights/causal_cd) |
|
| 64 |
+
| `weights/causal_teacher/dit_step11000.safetensors` | Stage 2: causal teacher | Teacher for stage 3 | [Legacy repository](https://huggingface.co/datasets/yuzhewu207/wizard/tree/main/weights/causal_teacher) |
|
| 65 |
+
| `weights/bidirectional/dit_step35000.safetensors` | Stage 1: bidirectional teacher | `bidirectional`, 30 steps, CFG 3 | [Legacy repository](https://huggingface.co/datasets/yuzhewu207/wizard/tree/main/weights/bidirectional) |
|
| 66 |
+
|
| 67 |
+
The recommended checkpoint is the interim step-300 release of the current training chain. The step-480 checkpoint belongs to an earlier run.
|
| 68 |
+
|
| 69 |
+
The earlier [LTX-2.5 LoRA](https://huggingface.co/datasets/yuzhewu207/wizard/tree/main/weights/ltx25_lora) uses a different inference pipeline and cannot be loaded by the Wizard commands below.
|
| 70 |
+
|
| 71 |
+
## Installation
|
| 72 |
+
|
| 73 |
+
The commands below follow the [official Wizard repository](https://github.com/YeyingLab/Wizard):
|
| 74 |
+
|
| 75 |
+
```bash
|
| 76 |
+
git clone https://github.com/YeyingLab/Wizard.git && cd Wizard
|
| 77 |
+
conda create -n wizard python=3.12 -y && conda activate wizard
|
| 78 |
+
pip install torch==2.11.0 torchvision --index-url https://download.pytorch.org/whl/cu128
|
| 79 |
+
pip install -r requirements.txt
|
| 80 |
+
pip install -e .
|
| 81 |
+
pip install --upgrade huggingface_hub
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
`ffmpeg` must be available on `PATH`. The official release was tested with Python 3.12 and PyTorch 2.11 (CUDA 12.8) on H200 GPUs. Online world maintenance additionally requires [MapAnything](https://github.com/facebookresearch/map-anything); see the official [inference guide](https://github.com/YeyingLab/Wizard/blob/main/docs/INFERENCE.md).
|
| 85 |
+
|
| 86 |
+
### Wan2.2 dependencies
|
| 87 |
+
|
| 88 |
+
Wizard uses the upstream Wan2.2 VAE, UMT5-XXL text encoder, and tokenizer as-is. Download them from the official base-model repository and keep its directory layout unchanged:
|
| 89 |
+
|
| 90 |
+
```bash
|
| 91 |
+
hf download Wan-AI/Wan2.2-TI2V-5B \
|
| 92 |
+
--include "Wan2.2_VAE.pth" "models_t5_umt5-xxl-enc-bf16.pth" "google/umt5-xxl/*" \
|
| 93 |
+
--local-dir checkpoints/Wan2.2-TI2V-5B
|
| 94 |
+
export WAN_CKPT="$PWD/checkpoints/Wan2.2-TI2V-5B"
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
The Wizard code reads these exact paths below `WAN_CKPT`:
|
| 98 |
+
|
| 99 |
+
- `Wan2.2_VAE.pth`
|
| 100 |
+
- `models_t5_umt5-xxl-enc-bf16.pth`
|
| 101 |
+
- `google/umt5-xxl/`
|
| 102 |
+
|
| 103 |
+
These third-party components are not duplicated in this repository. Keeping them in the upstream repository preserves their Apache-2.0 licensing and the directory structure expected by the official code, while the Wizard checkpoint remains under the Wizard research-only license.
|
| 104 |
+
|
| 105 |
+
## Download Weights
|
| 106 |
+
|
| 107 |
+
Sign in with an account that can access this private repository, then download the recommended Wizard checkpoint:
|
| 108 |
+
|
| 109 |
+
```bash
|
| 110 |
+
hf auth login
|
| 111 |
+
hf download yuzhewu207/Wizard \
|
| 112 |
+
--include "weights/causal_dmd/ema_step300.safetensors" \
|
| 113 |
+
--local-dir hf_wizard_model
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
+
Download the ready-made inference cases from the original Dataset Repository:
|
| 117 |
+
|
| 118 |
+
```bash
|
| 119 |
+
hf download yuzhewu207/wizard --repo-type dataset \
|
| 120 |
+
--include "examples/*" \
|
| 121 |
+
--local-dir hf_wizard_data
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
+
## Quick Start
|
| 125 |
+
|
| 126 |
+
Run the recommended two-step causal DMD model with the official wrapper script:
|
| 127 |
+
|
| 128 |
+
```bash
|
| 129 |
+
W=hf_wizard_model/weights/causal_dmd/ema_step300.safetensors
|
| 130 |
+
|
| 131 |
+
# An 8-second duel with a character already present in the first frame.
|
| 132 |
+
C=hf_wizard_data/examples/duel_bull_character
|
| 133 |
+
bash scripts/infer/run_case.sh causal "$W" "$C" duel.mp4 \
|
| 134 |
+
--ref1 "$C/ref_a.png" --ref-slots 2,0
|
| 135 |
+
|
| 136 |
+
# An 8-second world edit.
|
| 137 |
+
C=hf_wizard_data/examples/world_edit_stairs
|
| 138 |
+
bash scripts/infer/run_case.sh causal "$W" "$C" stairs.mp4 --ref-slots 0,0
|
| 139 |
+
```
|
| 140 |
+
|
| 141 |
+
For the separate online world-maintenance mode, set `WORLD_CASE` to a prepared case containing `world_px.npz` and install the maintenance dependencies described in the inference guide:
|
| 142 |
+
|
| 143 |
+
```bash
|
| 144 |
+
CUDA_VISIBLE_DEVICES=0,1 FAST=1 \
|
| 145 |
+
bash scripts/infer/run_case.sh world "$W" "${WORLD_CASE:?Set WORLD_CASE to a prepared case directory}" world.mp4
|
| 146 |
+
```
|
| 147 |
+
|
| 148 |
+
Each run writes the named MP4 (generation and proxy side by side) and a companion `*_gen.mp4` (generation only). The case format is documented in [docs/DATA.md](https://github.com/YeyingLab/Wizard/blob/main/docs/DATA.md).
|
| 149 |
+
|
| 150 |
+
## Datasets
|
| 151 |
+
|
| 152 |
+
Wizard was trained on 56.1 hours of proxy-video pairs spanning 805 scenes and 178 characters. The release describes four sources: public datasets (WildWorld and SceneFly), Elden Ring gameplay recordings, synthetic data, and Unreal Engine simulations.
|
| 153 |
+
|
| 154 |
+
- **Raw data and examples:** [yuzhewu207/wizard](https://huggingface.co/datasets/yuzhewu207/wizard)
|
| 155 |
+
- **Pre-encoded training data:** [yuzhewu207/wizard-precoded](https://huggingface.co/datasets/yuzhewu207/wizard-precoded)
|
| 156 |
+
- **WildWorld reconstruction index:** [ww_index](https://huggingface.co/datasets/yuzhewu207/wizard-precoded/tree/main/ww_index) points to windows from the upstream dataset
|
| 157 |
+
|
| 158 |
+
See the official [data documentation](https://github.com/YeyingLab/Wizard/blob/main/docs/DATA.md) for layouts, groups, and proxy encoding.
|
| 159 |
+
|
| 160 |
+
## Citation
|
| 161 |
+
|
| 162 |
+
```bibtex
|
| 163 |
+
@article{wu2026wizard,
|
| 164 |
+
title = {Wizard: Manipulate Any World in Real Time via Agentic Control},
|
| 165 |
+
author = {Wu, Yuzhe and Lin, Zijun and Jin, Yeying},
|
| 166 |
+
journal = {arXiv preprint arXiv:2610.40339},
|
| 167 |
+
year = {2026}
|
| 168 |
+
}
|
| 169 |
+
```
|
| 170 |
+
|
| 171 |
+
## License
|
| 172 |
+
|
| 173 |
+
The Wizard checkpoint is for **research use only**. See [LICENSE.md](LICENSE.md) for the weight terms and [the upstream code license](https://github.com/YeyingLab/Wizard/blob/main/LICENSE.md) for the non-commercial research terms that apply to the code. The separately downloaded Wan2.2 components retain their upstream terms.
|
assets/overview.webp
ADDED
|
Git LFS Details
|
weights/causal_dmd/ema_step300.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:180c4a60c575056b196b77c3f7b5dcaa6cb737dbd0ca49a46331856e025bfcf3
|
| 3 |
+
size 10021692456
|