Skip to content

Latest commit

 

History

History
217 lines (162 loc) · 13.2 KB

README.md

File metadata and controls

217 lines (162 loc) · 13.2 KB

Code World Model 2.0 overview: diverse proxies, action-driven branching, adaptive granularity, orbit views, subject and camera control, and gameplay proxies rendered by Invoker-Render

Code World Model 2.0: Towards Infinite Controllable Video Generation

Invoker-Render: proxy-conditioned video rendering for offline creation and real-time streaming

Ruoyu Wang1,2,* · Hao Zhong1,3,* · Yanming Yang1,2,* · Jiahao Tian1,2,* · Lin Liu1,*,†
Biao Gong1 · Guoshan Lu1 · Yiding Tian1 · Chunhua Shen3,‡ · Zhenzhong Lan1,2,‡ · Chi Zhang2,‡

1Inclusion AI, Ant Group   2Westlake University   3Zhejiang University
*Equal contribution   †Project leader   ‡Corresponding author

Homepage: inclusion-ai.org arXiv: 2611.22925 Hugging Face: Invoker-Render 1.0 Docs: deployment guide

Highlights · Demo · Quick Start · Documentation · Citation · 简体中文


Code World Model 2.0 keeps the world state in an upstream engine and hands rendering to a video model. The two are connected by visual proxies: plain structural videos that fix the camera path, scene layout, and entity motion, and leave appearance to the renderer.

Invoker-Render is that renderer. It takes a structural proxy, one appearance reference image, and text. This repository is the inference codebase for its causal four-step streaming model, built on MiniMax-H3, SGLang, and SGLang-Omni. The method, training data, and full evaluation are in the technical report.

Paper: arXiv:2611.22925. A PDF copy is also kept in this repository.

Highlights

  • Unbounded streaming, no visual jumps. Each chunk reads a fixed appearance anchor and a bounded window of recent history, so a session runs for as long as proxy frames arrive. The racing demo below is one continuous 30-minute generation.
  • Coarse or fine proxies, chosen at run time. One model accepts semantic maps, sparse 3D boxes, subject masks, shaded geometry, and boxes with skeletons, at any level of detail.
  • Four steps per chunk. The streaming model is trained with Progressive Forcing, a staged curriculum described in the report.
  • Ahead of recent streaming renderers. On 140 held-out rollouts it ranks first on all four judged axes, with an overall Elo of 1232.0 against 1135.3 for SolarRenderer (Causal), 940.2 for StreamRender-H3, and 692.4 for Streaming CWM.
  • Ready to serve. A WebSocket session service on eight GPUs, a file client, and an interactive browser client.

Demo

Every clip shows the input proxy as an inset: the inset fixes how the camera and the objects move, and the model generates materials and lighting.

The bundled scenes and game adapters are provided for streaming-service testing and validation. The complete game projects and the game resources used in the promotional demos are not open-sourced in this repository.

Long-horizon streaming

Six excerpts from a 30-minute racing generation, with the wireframe proxy inset at the upper left and a timestamp at the lower right
One continuous 30-minute generation from a coarse racing proxy (inset, upper left), with no cut or reset. Six two-second excerpts; the timestamp is the position in the take. Watch the full 30-minute video on Bilibili.

Interactive driving

A white race car rendered by Invoker-Render, with the low-poly proxy inset at the lower left and gamepad footage at the lower right
A gamepad-driven session: the gamepad (inset, lower right) steers the low-poly proxy (inset, lower left), and the rendered car follows. The car, the two cars ahead, and the dusk track stay consistent throughout.

Camera control

Same scene, same first frame, same event; only the camera route changes. Route A is on the left and route B on the right, each with its own proxy inset.

Coastal road and tunnel rendered along two camera routes, side by side
Coastal tunnel. A: a drone stays behind the car through the tunnel and rises after the exit. B: the camera lifts over the headland as the car enters, waits above the exit, and follows the car out.

Rocket launch rendered along two camera routes, side by side
Rocket launch. A: a fixed ground camera tilts up and pushes in. B: a drone approaches the tower at low altitude, climbs with the rocket, and ends above the tower looking toward the coast.

Formula race hairpin overtake rendered along two camera routes, side by side
Grand prix hairpin. A: a broadcast camera on the race-control roof pans and zooms with two cars entering the corner side by side. B: an FPV drone dives from the roof to the track and follows above and behind the overtaking car.

The previews are downsampled excerpts played at 6 FPS; assets/demo/metadata.json lists the source clips. Playback FPS is not inference throughput. The 30-minute racing demo was generated with a reference-guided quality policy that the default service does not enable.

Release Status

Unchecked items have not been published. Model weights are hosted on Hugging Face; they and prepared bundles are not included in this repository.

Quick Start

Requirements: Linux, Python 3.11 or 3.12, and NVIDIA CUDA. Inference uses eight ≥96 GiB GPUs on one node (e.g. H200 / B200; measured peak ~86–93 GiB/GPU). There is no standalone lockfile; provision the environment with the environment guide, then check it from the repository root:

PY=/path/to/serving-env/bin/python
"$PY" invoker_render.py check-env

1. Download the models. Inference reads three Hugging Face releases, about 216 GB in total: the Invoker-Render DiT, the MiniMax-H3 Ref2VA text encoder and VAE, and the StreamRender-H3 causal decoder (plus the optional TAE proxy encoder). Accept the MiniMax H3 Community License on the MiniMax-H3 and StreamRender-H3 pages first. Download the models explains each file.

MODELS=/assets
hf download inclusionAI/invoker-render-1.0 --local-dir "$MODELS/invoker-render-1.0" \
  --include 'config.json' 'diffusion_pytorch_model*'
hf download MiniMaxAI/MiniMax-H3 --local-dir "$MODELS/MiniMax-H3" \
  --include 'Ref2VA/model_index.json' 'Ref2VA/text_encoder/*' 'Ref2VA/processor/*' 'Ref2VA/video_vae/*'
hf download Efficient-Large-Model/StreamRender-H3 --local-dir "$MODELS/StreamRender-H3" \
  --include 'causal_decoder/*' 'configs/runtime.json' 'tae/*' 'LICENSE*' 'NOTICE'

2. Prepare a bundle. This checks the downloads and writes a small configuration directory that points at them. It does not copy weights. The output directory must not exist yet.

BUNDLE=/assets/invoker-render/bundle

"$PY" invoker_render.py prepare \
  --weights "$MODELS/invoker-render-1.0" \
  --h3 "$MODELS/MiniMax-H3/Ref2VA" \
  --streamrender "$MODELS/StreamRender-H3" \
  --output "$BUNDLE"

3. Start the streaming service. It binds loopback and serves sessions at /v1/session.

"$PY" invoker_render.py serve --model-path "$BUNDLE" --port 18860

4. Render a video from files. Run this in a second terminal.

"$PY" invoker_render.py infer \
  --model-path "$BUNDLE" \
  --uri ws://127.0.0.1:18860/v1/session \
  --first-image /inputs/first.png \
  --proxy-video /inputs/proxy.mkv \
  --seed 42 --output-dir /outputs/invoker-render-001

The first image is 1344×768 RGB. The proxy video is 448×256 at 24 FPS, with 17*N+5 frames and at least 39. The prompt defaults to the frozen system prompt the model was trained with. The output directory must be new; a completed run writes video.mp4 and inference.json.

5. Open the browser client (optional). It reuses the running service. Start web-adapter first and wait until http://127.0.0.1:18861/health is listening, then start web in another terminal:

"$PY" invoker_render.py web-adapter \
  --model-path "$BUNDLE" \
  --native-uri ws://127.0.0.1:18860/v1/session --port 18861

"$PY" invoker_render.py web \
  --backend http://127.0.0.1:18861 --port 18862 --incremental-proxy

Open http://127.0.0.1:18862/ and select a first image that matches the scene.

Documentation

Task Guide
Configure dependencies and CUDA Environment
Download and prepare the models Download the models · Model contract · Bundle preparation
Run the streaming API and file client Serving and file inference
Use the browser client Browser deployment · Client guide
Check timing and completion records Output verification
invoker_render.py                           Command line: prepare, serve, infer, web-adapter, web, check-env
docs/                                       Deployment documentation
src/sglang/python/sglang/multimodal_gen/    Native inference runtime
src/sglang/projects/minimax_h3/             Model adapters, tools, configs, browser client, vendored frameworks

Citation

If you find this work useful, please cite:

@misc{wang2026codeworldmodel20,
  title         = {Code World Model 2.0: Towards Infinite Controllable Video Generation},
  author        = {Ruoyu Wang and Hao Zhong and Yanming Yang and Jiahao Tian and Lin Liu and Biao Gong and Guoshan Lu and Yiding Tian and Chunhua Shen and Zhenzhong Lan and Chi Zhang},
  year          = {2026},
  eprint        = {2611.22925},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CV},
  url           = {https://arxiv.org/abs/2611.22925}
}

Acknowledgements and License

Invoker-Render builds on these models and projects. We thank their authors.

  • MiniMax-H3: Invoker-Render is fine-tuned from MiniMax-H3. Inference encodes the first image and the proxy with the original video VAE of its Ref2VA model, and conditions on its Qwen text encoder.
  • StreamRender-H3 (code, weights): the streaming optimization decodes with its causal ViT decoder and can encode proxies with its released TAE.
  • TAEHV: the tiny autoencoder architecture behind that TAE.
  • SGLang, SGLang-Omni, and the other vendored open-source components listed in Third-party notices.

The code written for this repository is released under the Apache License 2.0. Vendored components keep their own licenses, which include Apache-2.0 and CC BY-NC 4.0 (non-commercial) terms; the license file inside each component directory governs that component. Model weights are distributed separately under their own terms: MiniMax-H3 and StreamRender-H3 under the MiniMax H3 Community License Agreement, and Invoker-Render as stated on its model page. Read the legal notice before use or redistribution.