# Wan 2.2

Wan 2.2 सिर्फ़ text वाले prompt से, या prompt के साथ पहले और/या आखिरी frames की
शुरुआती इमेज से छोटे वीडियो बनाता है। LTX-2 या
MiniMax H3 के विपरीत, Wan soundtrack जनरेट नहीं कर सकता (लेकिन एक जोड़ने के लिए आप LTX-2 का
[conditioning mode](../introduction#conditioning-clip-ltx-2-only) इस्तेमाल कर सकते हैं)।

### लाइसेंस

Wan 2.2 (T2V-A14B, I2V-A14B और TI2V-5B), उसका text encoder और Lightning LoRAs **Apache 2.0** के तहत जारी किए गए हैं, जो commercial इस्तेमाल की अनुमति देता है। कोई भी डाउनलोड gated नहीं है।

यह एक सारांश है, कानूनी सलाह नहीं। किसी model का commercial इस्तेमाल करने से पहले उसके HuggingFace पेज पर पूरा license पढ़ें।

### Wan के models

Wan 2.2 तीन transformer variants के साथ आता है, साथ में एक साझा text encoder और दो VAEs। सभी एक जैसी diffusion-style sampling इस्तेमाल करते हैं, लेकिन साइज़, conditioning और उद्देश्य में अलग हैं।

| Variant | काम | Params | VAE | Conditioning |
|---|---|---|---|---|
| **T2V-A14B** | Text → Video | 14B × 2 experts | A14B VAE (16-ch, 8× spatial) | सिर्फ़ text |
| **I2V-A14B** | Image+Text → Video | 14B × 2 experts | A14B VAE (16-ch, 8× spatial) | Text + reference image (36-channel concat) |
| **TI2V-5B** | Text → Video या Image+Text → Video | 5B (single) | Wan 2.2-VAE (48-ch, 16× spatial) | Text, वैकल्पिक रूप से reference इमेज के साथ (first-frame mask blend) |

* **T2V-A14B** सिर्फ़ text prompt से वीडियो जनरेट करता है। तीनों में सबसे अच्छी motion coherence और prompt-following।
* **I2V-A14B** पहले frame को आपकी दी गई reference इमेज पर lock करता है, और first-to-last interpolation और extension भी संभालता है। Subject को सबसे अच्छी तरह बनाए रखता है।
* **TI2V-5B** छोटा single-expert variant है। यह काफ़ी कम VRAM पर text-to-video और image-to-video दोनों करता है, लंबी अवधि की coherence थोड़ी कम स्थिर होती है।

#### High-noise और low-noise transformers (सिर्फ़ A14B variants)

A14B models एक **mixture-of-experts (MoE)** जोड़ी हैं — हर variant में *दो* 14B transformers। Denoise loop model द्वारा तय एक boundary timestep पर इनके बीच अदला-बदली करता है:

* **High-noise expert** शुरुआत में चलता है, जब latents में अभी ज़्यादातर noise होता है: composition, layout, व्यापक motion।
* **Low-noise expert** बाद में चलता है, जब latents लगभग साफ़ होते हैं: detail और texture।

InvokeAI यह अदला-बदली अपने-आप संभालता है। Video पैनल में, single-file A14B main अपना साथी **Transformer (Low Noise)** component slot के ज़रिए लेता है; Diffusers A14B main दोनों experts अपने अंदर रखता है। **TI2V-5B single-expert है** — न अदला-बदली, न low-noise CFG, न दूसरा slot।

#### Lightning (Wan का तेज़ रास्ता)

Stock A14B variants को ~40–50 denoise steps चाहिए। **Lightning distillation LoRAs** इसे CFG 1 पर **4 steps** तक घटा देते हैं, quality में बहुत कम नुकसान के साथ — लगभग 10× speedup। हर variant के लिए एक जोड़ी है (हर expert के लिए एक); पैनल का Lightning toggle दोनों को अपने-आप जोड़ देता है।

:::tip
**TI2V-5B का कोई Lightning LoRA नहीं है।** इसके छोटे साइज़ से हर step सस्ता होता है; A14B + Lightning जितने कुल समय के लिए इसे 40–50 steps पर चलाएँ।
:::

#### Wan models इंस्टॉल करना

**Wan 2.2** starter bundle (~56 GB) UMT5-XXL text encoder, दोनों VAEs, TI2V-5B Q4_K_M, T2V Lightning (high + low) के साथ T2V-A14B Q4_K_M (high + low), और I2V Lightning (high + low) के साथ I2V-A14B Q4_K_M (high + low) इंस्टॉल करता है।

ज़्यादा quality वाले Q8_0 quantizations और पूरे Diffusers builds starter models की सूची में अलग-अलग उपलब्ध हैं।

UMT5-XXL encoder एक GGUF फ़ाइल के रूप में भी आता है: starter models में **Wan T5 Encoder (UMT5-XXL, GGUF Q8_0)** (~6 GB, Diffusers encoder का लगभग आधा), या [city96 के `umt5-xxl-encoder-gguf`](https://huggingface.co/city96/umt5-xxl-encoder-gguf) से कोई दूसरा quantization। इसमें अपना tokenizer होता है; इसे **Wan T5 Encoder** slot में चुनें। कम quantizations text conditioning को बदलते हैं: quantized builds में, Q8_0 Diffusers encoder के सबसे करीब रहता है, जबकि Q4_K_M लगभग 21 % भटकता है (relative L2 error, worst-token cosine 0.40)। किसी पुराने InvokeAI द्वारा इंस्टॉल किया गया UMT5 GGUF, FLUX/SD 3 T5 encoder के रूप में सूचीबद्ध होता है: इसे Wan T5 encoder बनाने के लिए Model Manager में **Re-identify model** इस्तेमाल करें।

:::tip
**12 GB VRAM card पर**: TI2V-5B इस्तेमाल करें — यह text-to-video और image-to-video दोनों कवर करता है और आराम से आ जाता है। Bundle में यह शामिल है; A14B डाउनलोड छोड़ने के लिए, **Wan 2.2 TI2V-5B (Q4_K_M)** starter model अकेले इंस्टॉल करें, जो अपना VAE और UMT5-XXL encoder साथ लाता है। A14B variants तकनीकी रूप से aggressive offloading के ज़रिए चलेंगे, लेकिन धीमे हैं और OOM की संभावना रहती है।
:::

#### CPU पर GGUF text encoder की RAM

CPU पर, चाहे **Run on CPU** के साथ हो या बिना accelerator के, UMT5-XXL GGUF encoder अपने unpack किए गए weights float32 में रखता है। Resident weights Q8_0 के लिए लगभग 9 GB और F16, BF16 और F32 GGUFs के लिए लगभग 23 GB लेते हैं। जब encoder किसी accelerator पर bfloat16 में चलता है, तो वही weights क्रमशः लगभग 7 GB और 11 GB लेते हैं। लोड करने के लिए अस्थायी workspace भी चाहिए। अगर RAM सीमित है, तो Q8_0 चुनें। अगर system में पर्याप्त RAM है, तो model cache को ज़्यादा जगह देने के लिए `max_cache_ram_gb` बढ़ाएँ।

ये अनुमान standard UMT5-XXL tensor shapes से निकाले गए हैं। इनमें loading workspace और दूसरे models शामिल नहीं हैं। Starter model का ~6 GB का आँकड़ा उसका download size है।

#### ComfyUI fp8 scaled builds

ComfyUI के `fp8_scaled` format में single-file A14B और TI2V-5B transformers किसी भी दूसरी single file की तरह लोड होते हैं, A14B के लिए उसी two-expert सेटअप के साथ। [FP8 Storage](/configuration/optimization/fp8-storage/) चालू होने पर, जिसे ऐसी फ़ाइल इंस्टॉल करने पर वह अपने-आप चालू कर देती है, या सपोर्ट करने वाले GPU पर [FP8 Compute](/configuration/optimization/fp8-compute/) के साथ, scaled layers फ़ाइल के साथ आए scale के साथ memory में fp8 ही रहती हैं, इसलिए एक A14B expert bf16 वाले की लगभग आधी memory लेता है (लगभग 28 GB की जगह 14.3 GB फ़ाइल)। LoRAs, Lightning सहित, fp8 weights में merge होने की जगह उनके साथ-साथ लागू होते हैं। जो layers fp8 में नहीं रह सकतीं, वे लोड होते समय अपना scale लागू करके compute dtype तक चौड़ी की जाती हैं, और FP8 Storage उन्हें वैसे ही छोड़ देता है: condition embedder, जिसे model matrix multiply के बाहर पढ़ता है, float8_e5m2 layers, और per-block scale वाली layers (MXFP8 फ़ाइलें)। दोनों में से कोई सेटिंग चालू न होने पर, फ़ाइल लोड होते समय compute dtype तक चौड़ी की जाती है, और एक expert bf16 फ़ाइल जितनी ही memory लेता है।

RTX 4090 और default cache सेटिंग्स वाली एक Windows मशीन पर (T2V A14B `fp8_scaled` जोड़ी, 832x480, 17 frames, 8 steps), layers को fp8 में रखने पर peak लगभग 16 GB RAM और 18.5 GB VRAM रहा, प्रति clip लगभग 72 s, जबकि फ़ाइल को bf16 तक चौड़ा करने पर लगभग 40 GB RAM, 22.8 GB VRAM और लगभग 102 s। दूसरे systems पर नतीजे अलग होंगे।

#### ComfyUI int8 builds

ComfyUI के `int8_tensorwise` (convrot) format में single-file A14B और TI2V-5B transformers किसी भी दूसरी single file की तरह लोड होते हैं, A14B के लिए उसी two-expert सेटअप के साथ। Attention और feed-forward weights memory में int8 रहते हैं, जिससे memory बचती है। Default रूप से इन्हें हर forward pass पर per layer dequantize किया जाता है; [int8 Compute](/configuration/optimization/int8-compute/) इसकी जगह इन्हें NVIDIA int8 tensor cores पर चला सकता है। LoRAs, Lightning सहित, int8 weights में merge होने की जगह उनके साथ-साथ लागू होते हैं। सिर्फ़ `{"convrot": true}` से चिह्नित फ़ाइलें, जिनमें `format` entry नहीं है, और int4 builds इंस्टॉल करते समय अस्वीकार किए जाते हैं।

RTX 4090 वाली एक Windows मशीन पर (T2V A14B, 832x480, 17 frames), एक int8 expert फ़ाइल लगभग 14.5 GB की है, bf16 expert के लगभग 28.6 GB के मुकाबले। दोनों experts और UMT5 encoder को RAM cache में रखने पर, int8 build का peak लगभग 41 GB RAM रहा। `max_cache_ram_gb: 16` के साथ यह फिर भी चलता है लेकिन हर clip के लिए experts को फिर से लोड करता है, और peak लगभग 16 GB RAM रहा, क्योंकि अगला expert लोड होने से पहले जाने वाला expert छोड़ दिया जाता है। ये आँकड़े process working set के हैं; Windows किसी process की committed memory में VRAM भी गिनता है, इसलिए commit इस्तेमाल हो रही RAM से ज़्यादा दिखता है। int8 मुख्य रूप से memory बचाता है; speed कितनी बदलती है, यह इस पर निर्भर करता है कि model वैसे VRAM में आता है या नहीं। दूसरे systems पर नतीजे अलग होंगे।