Image-to-Video
Wan2.2
video-generation
world-model
causal-video-generation
real-time
agentic-control
research-only
Instructions to use yuzhewu207/Wizard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Wan2.2
How to use yuzhewu207/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
|
Download README.md from yuzhewu207/Wizard: direct link, hf CLI and curl.
- Browser
- Download file 10.2 kB
-
https://huggingface.co/yuzhewu207/Wizard/resolve/main/README.md
- Command line
-
hf download hf://yuzhewu207/Wizard/README.md
-
curl -L -o README.md https://huggingface.co/yuzhewu207/Wizard/resolve/main/README.md
10.2 kB
| 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/yuzhewu207/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/yuzhewu207/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/yuzhewu207/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/yuzhewu207/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/yuzhewu207/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/yuzhewu207/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/yuzhewu207/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 yuzhewu207/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 yuzhewu207/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:** [yuzhewu207/wizard](https://huggingface.co/datasets/yuzhewu207/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. | |