Wizard: Manipulate Any World in Real Time via Agentic Control
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
causalandworldinference 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 · Wizard dataset
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 |
weights/causal_cd/ema_step10000.safetensors | Stage 3: consistency-distilled causal student | causal / world, two steps | Legacy repository |
weights/causal_teacher/dit_step11000.safetensors | Stage 2: causal teacher | Teacher for stage 3 | Legacy repository |
weights/bidirectional/dit_step35000.safetensors | Stage 1: bidirectional teacher | bidirectional, 30 steps, CFG 3 | Legacy repository |
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 uses a different inference pipeline and cannot be loaded by the Wizard commands below; run it with 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).
ffmpegonPATH.- MapAnything for online world maintenance. Official inference guide
Installation
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.
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.
hf download yuzhewu207/Wizard \
config.json weights/causal_dmd/ema_step400.safetensors \
--local-dir hf_wizard_model
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.
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:
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:
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.
Repository Contents
| File | Purpose |
|---|---|
weights/causal_dmd/ema_step400.safetensors | Recommended Wizard DiT checkpoint (10.02 GB) |
config.json | Recommended causal inference settings |
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
- Pre-encoded training data: yuzhewu207/wizard-precoded
- WildWorld reconstruction index: ww_index points to windows from the upstream dataset
See the official data documentation for layouts, groups, and proxy encoding.
Citation
@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 for the weight terms and the upstream code license for the non-commercial research terms that apply to the code. The separately downloaded Wan2.2 components retain their upstream terms.