PAN 2 is a world model from the Institute of Foundation Models. Give it a timed script of actions and camera moves, and it shows that script as video, up to 20 seconds long. Weights and code are Apache-2.0. We put it behind an API on one 96 GB RTX PRO 6000 on our cloud. Our 3-second house walk came back after 109 seconds, and the camera did what the script asked.
This post covers the choices you hit building that service. The full setup lives in the PAN 2 one-GPU research write-up.
Three models, and only one of them needs the big card
PAN 2 splits the work three ways:
- A planner turns your request into structured JSON: the objects in the scene, what happens at which second, where the camera moves. It is not in the download: any instruction-following language model can do it with the authors' prompt. Ours was Claude Opus 5.5, hosted.
- A reader, Qwen3.5-9B from the Qwen team, converts that JSON into the vectors the renderer consumes. It ships frozen in the download; Diffusers calls it the text encoder.
- A renderer of 29.2 billion parameters draws the frames, and the Wan 2.2 decoder from Wan-AI turns its compressed output into pixels.
So you host the reader and the renderer, and point the planner at a model you already call. Feed plain prose instead and, per the vLLM recipe, the clip comes out unusable. We never tested a self-hosted planner.
Where the time goes: every step runs twice
A model like this starts from noise and cleans the picture a bit on each pass, called a step. At 20 steps the 3-second clip cost 109 seconds, roughly 36 seconds of GPU time per second of footage. The 10-second clip cost 490 seconds, 49 per second. Frame count drives the bill, not the plan: that clip had a plan for only its first 3 seconds.
The doubling is classifier-free guidance: each step runs one pass on your plan and one on a fixed list of flaws, then steers the output away from the flaws. So 20 steps mean 40 full trips through a 29B network. At the authors' default of 50 steps, our numbers point to about 20 minutes for a 10-second clip on this card, an estimate we never ran.
Track GPU seconds per second of video at the step count you ship. Our PAN 2 timing and memory tables split each clip into reading, denoising (the steps) and decoding. That ratio decides whether an agent can try three plans in a row (three 3-second clips: around five and a half minutes, before the planner's time) or needs a job queue.
The memory trap: offload is not the same as CPU
On the 96 GB card everything stayed on the GPU, peaking at 92.2 GiB. To mimic an 80 GB card we limited PyTorch to 78 GiB on the same card; a physical 80 GB card was not part of the test.
The textbook fix is offload: park the reader in system RAM and move it to the GPU only while it reads. It died 4.9 seconds in:
CUDA out of memory. Tried to allocate 96.00 MiB ... this process has 78.68 GiB memory in use. 78.00 GiB allowed The renderer (62.7 GiB) never left the card, so when the reader (14.8 GiB) arrived the two together blew the cap. Keeping the reader on the CPU for the whole job worked: 149 seconds against 109, rendering unchanged at 101.9 seconds, and average pixel brightness off by only 1.4 to 3.5 on a 0 to 255 scale. The cost was reading: 40 seconds on the CPU against half a second on the GPU (two optional speed-up libraries were missing).
Second trap: the Diffusers PAN2 modular pipeline picks its device from its first component, the reader. Reader on the CPU means everything on the CPU. Our backend pins the GPU explicitly.
API shape: long jobs, one at a time, no cancel
A 10-second clip runs for minutes. Our backend holds the request up to 270 seconds, then returns a clip id to poll. The MP4 travels in 2 MB chunks, since one result message caps at 8 MB.
The rough edge: one clip at a time per machine, and no cancel. A second request gets a "busy" error, and a restart does not help, because the platform redelivers the running job. Status: open on our platform.
Diffusers enables the authors' safety filter by default; our example disables it, untested. Weights plus Python packages take about 92 GB, so ask for 100 GB of local disk.
What this test does and does not show
Each case ran once with one seed, so the quality remarks are observations, not scores. In the glass clip we asked for a flick, and the hand gripped and pushed. The authors warn about exactly this: "about two in three simulated plans contain at least one step that is not carried out". Agent plan choice, physical accuracy and benchmarks were out of scope. vLLM-Omni also serves PAN 2, untested by us.
Thanks to IFM at MBZUAI for PAN 2, its code and its tooling; to Eric Xing, Mingkai Deng and Jinyu Hou for the Critique of World Model paper it builds on; to the Qwen team for the reader and Wan-AI for the decoder; to the Hugging Face Diffusers PAN2 pipeline we ran; to the vLLM and vLLM-Omni teams for their serving recipe; and to AI Search, whose news video put PAN 2 on our radar. We wrote the backend and the plans, and took the measurements.
The measurements, memory ladder, request fields and the SDK example that renders the 3-second house walk are in the complete PAN 2 deployment notes on inferencekey.com.
