File size: 10,189 Bytes
085adff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
035ea35
 
 
 
 
 
 
 
 
 
0ce5533
035ea35
 
 
085adff
 
 
 
 
 
 
 
 
7a1a3c1
 
 
 
0ce5533
7a1a3c1
085adff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10bf591
0ce5533
 
 
 
085adff
10bf591
085adff
0ce5533
085adff
7a1a3c1
 
 
 
 
 
 
085adff
7a1a3c1
085adff
 
 
 
 
 
 
 
 
 
7a1a3c1
085adff
7a1a3c1
085adff
 
 
 
 
 
 
 
7a1a3c1
085adff
 
0ce5533
10bf591
085adff
 
 
df56679
 
7a1a3c1
085adff
 
0ce5533
085adff
 
 
 
7a1a3c1
085adff
 
 
 
10bf591
085adff
7a1a3c1
085adff
 
 
 
7a1a3c1
085adff
 
 
 
 
 
 
 
 
 
 
 
 
7a1a3c1
 
 
 
10bf591
7a1a3c1
 
 
085adff
 
 
 
0ce5533
085adff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
---
base_model: Wan-AI/Wan2.2-TI2V-5B
pipeline_tag: image-to-video
arxiv: "2610.40339"
license: other
license_name: wizard-research-only
license_link: LICENSE.md
tags:
  - video-generation
  - image-to-video
  - world-model
  - causal-video-generation
  - real-time
  - agentic-control
  - wan2.2
  - research-only
---

# Wizard: Manipulate Any World in Real Time via Agentic Control

<div align="center">
  <p>Yuzhe Wu · Zijun Lin · Yeying Jin</p>
  <a href="https://wyzardwu.github.io/wizard/">
    <img src="assets/overview.webp" alt="Wizard teaser: controllable gameplay video from visual proxies" width="92%">
  </a>
  <p><strong><span style="color:#6d4bc3">Wizard</span></strong> is a controllable game world model that renders scene geometry and character motion into gameplay video with two denoising steps.</p>
  <p>
    <a href="https://wyzardwu.github.io/wizard/"><img src="https://img.shields.io/badge/Project%20Page-Wizard-6d4bc3" alt="Project page"></a>
    <a href="https://github.com/YeyingLab/Wizard"><img src="https://img.shields.io/badge/GitHub-Code-24292f?logo=github" alt="GitHub code"></a>
    <a href="https://arxiv.org/abs/2610.40339"><img src="https://img.shields.io/badge/arXiv-Paper-b31b1b?logo=arxiv" alt="arXiv paper"></a>
    <a href="https://huggingface.co/datasets/YeyingLab/wizard"><img src="https://img.shields.io/badge/Hugging%20Face-Dataset-d49009" alt="Hugging Face dataset"></a>
    <a href="LICENSE.md"><img src="https://img.shields.io/badge/License-Research%20Only-2e7d56" alt="Research-only license"></a>
  </p>
</div>

## Highlights

- **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.
- **Geometry-aware generation.** The proxy marks pixels as exact, coarse, or unknown so the model can follow known geometry while synthesizing unknown regions.
- **Character-aware adaptive masking.** Each reference image attends only to its corresponding character region, reducing appearance leakage between characters.
- **World-anchored spatial conditioning.** Per-pixel world coordinates support spatial memory and re-rendering from new viewpoints.
- **Two-step causal inference.** The released DMD student is used by the official `causal` and `world` inference modes with two consistency levels.

## Model Overview

Wizard 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 turns that proxy into game frames.

This repository contains the recommended stage-4 causal DMD student. The original dataset repository hosts training data, ready-made inference cases, and earlier checkpoints. [Base model](https://huggingface.co/Wan-AI/Wan2.2-TI2V-5B) · [Wizard dataset](https://huggingface.co/datasets/YeyingLab/wizard)

## Architecture

| Component | Description |
|---|---|
| Base model | Wan2.2-TI2V-5B |
| Generator | Causal video DiT with KV-cached streaming |
| Control | Proxy video with geometry tiers, articulated skeletons, and optional world coordinates |
| Reference binding | Character-aware, skeleton-derived adaptive masks |
| Spatial memory | World-coordinate conditioning and optional online world maintenance |
| Distillation | Teacher forcing with history self-augmentation, consistency distillation, then DMD on student rollouts |
| Recommended sampling | `causal` or `world`, two consistency levels (`1000,500`), CFG 1 |

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.

## Model Zoo

| Checkpoint | Stage | Sampling | Location |
|---|---|---|---|
| `weights/causal_dmd/ema_step400.safetensors` | Stage 4: causal DMD student from the released training chain (step 400 of 500, selected by evaluation) | `causal` / `world`, two steps | **This repository — recommended** |
| `weights/causal_dmd/ema_step480.safetensors` | Earlier DMD run, retained for comparison | `causal` / `world`, two steps | [Legacy repository](https://huggingface.co/datasets/YeyingLab/wizard/tree/main/weights/causal_dmd) |
| `weights/causal_cd/ema_step10000.safetensors` | Stage 3: consistency-distilled causal student | `causal` / `world`, two steps | [Legacy repository](https://huggingface.co/datasets/YeyingLab/wizard/tree/main/weights/causal_cd) |
| `weights/causal_teacher/dit_step11000.safetensors` | Stage 2: causal teacher | Teacher for stage 3 | [Legacy repository](https://huggingface.co/datasets/YeyingLab/wizard/tree/main/weights/causal_teacher) |
| `weights/bidirectional/dit_step35000.safetensors` | Stage 1: bidirectional teacher | `bidirectional`, 30 steps, CFG 3 | [Legacy repository](https://huggingface.co/datasets/YeyingLab/wizard/tree/main/weights/bidirectional) |

The recommended checkpoint is step 400 of the 500-step DMD run, chosen over steps 300, 350, 450 and 500 on sharpness, chunk seams, character identity and revisit consistency. The step-480 checkpoint belongs to an earlier run.

The earlier [LTX-2.5 LoRA](https://huggingface.co/datasets/YeyingLab/wizard/tree/main/weights/ltx25_lora) uses a different inference pipeline and cannot be loaded by the Wizard commands below; run it with [`ltx/`](https://github.com/YeyingLab/Wizard/tree/main/ltx) of the code repository (a patch to LTX-2 plus a runner, under the LTX-2.x Community License), with three ready-made cases in the dataset's `examples/ltx_*`.

## Quick Start

### Requirements

- An NVIDIA GPU with CUDA. The official release was tested on H200 GPUs with Python 3.12 and PyTorch 2.11 (CUDA 12.8).
- `ffmpeg` on `PATH`.
- MapAnything for online world maintenance. [Official inference guide](https://github.com/YeyingLab/Wizard/blob/main/docs/INFERENCE.md)

### Installation

```bash
git clone https://github.com/YeyingLab/Wizard.git && cd Wizard
conda create -n wizard python=3.12 -y && conda activate wizard
pip install torch==2.11.0 torchvision --index-url https://download.pytorch.org/whl/cu128
pip install -r requirements.txt
pip install -e .
pip install --upgrade huggingface_hub
```

### Download Weights

**Wan2.2 dependencies.** Download the VAE, UMT5-XXL text encoder, and tokenizer from the upstream base model.

```bash
hf download Wan-AI/Wan2.2-TI2V-5B \
    --include "Wan2.2_VAE.pth" "models_t5_umt5-xxl-enc-bf16.pth" "google/umt5-xxl/*" \
    --local-dir checkpoints/Wan2.2-TI2V-5B
export WAN_CKPT="$PWD/checkpoints/Wan2.2-TI2V-5B"
```

**Wizard checkpoint.** Download the recommended checkpoint and the inference settings.

```bash
hf download YeyingLab/Wizard \
    config.json weights/causal_dmd/ema_step400.safetensors \
    --local-dir hf_wizard_model
```

[`config.json`](config.json) documents the recommended inference defaults from the official Wizard wrapper. The wrapper takes its settings from the command line and environment, so it does not load this file at runtime.

**Example inputs.** Download the prepared cases from the original dataset repository.

```bash
hf download YeyingLab/wizard --repo-type dataset \
    --include "examples/*" \
    --local-dir hf_wizard_data
```

### Inference

Run the recommended two-step causal DMD model with the official wrapper script:

```bash
W=hf_wizard_model/weights/causal_dmd/ema_step400.safetensors

# Character duel with a reference image.
C=hf_wizard_data/examples/duel_bull_character
bash scripts/infer/run_case.sh causal "$W" "$C" duel.mp4 \
    --ref1 "$C/ref_a.png" --ref-slots 2,0

# Staircase world edit.
C=hf_wizard_data/examples/world_edit_stairs
bash scripts/infer/run_case.sh causal "$W" "$C" stairs.mp4 --ref-slots 0,0
```

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:

```bash
CUDA_VISIBLE_DEVICES=0,1 FAST=1 \
    bash scripts/infer/run_case.sh world "$W" "${WORLD_CASE:?Set WORLD_CASE to a prepared case directory}" world.mp4
```

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).

## Repository Contents

| File | Purpose |
|---|---|
| [`weights/causal_dmd/ema_step400.safetensors`](weights/causal_dmd/ema_step400.safetensors) | Recommended Wizard DiT checkpoint (10.02 GB) |
| [`config.json`](config.json) | Recommended causal inference settings |
| [`LICENSE.md`](LICENSE.md) | Research-only terms for the Wizard checkpoint |

## Datasets

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.

- **Raw data and examples:** [YeyingLab/wizard](https://huggingface.co/datasets/YeyingLab/wizard)
- **Pre-encoded training data:** [yuzhewu207/wizard-precoded](https://huggingface.co/datasets/yuzhewu207/wizard-precoded)
- **WildWorld reconstruction index:** [ww_index](https://huggingface.co/datasets/yuzhewu207/wizard-precoded/tree/main/ww_index) points to windows from the upstream dataset

See the official [data documentation](https://github.com/YeyingLab/Wizard/blob/main/docs/DATA.md) for layouts, groups, and proxy encoding.

## Citation

```bibtex
@article{wu2026wizard,
  title   = {Wizard: Manipulate Any World in Real Time via Agentic Control},
  author  = {Wu, Yuzhe and Lin, Zijun and Jin, Yeying},
  journal = {arXiv preprint arXiv:2610.40339},
  year    = {2026}
}
```

## License

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.