Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio: Wan2.1 T2V 1.3B and 14B video families (#13376)

Daniel Han592be14608d7
diff --git a/studio/backend/core/inference/diffusion_content.py b/studio/backend/core/inference/diffusion_content.py
index 93f584c20ce..aec30261ac9 100644
--- a/studio/backend/core/inference/diffusion_content.py
+++ b/studio/backend/core/inference/diffusion_content.py
@@ -7,7 +7,8 @@ ControlNet), from the safetensors or GGUF header only: no torch, no weight bytes
Same-architecture variants (FLUX.1 dev / Krea / Kontext, Qwen-Image / 2512 / Edit / Edit-2509,
klein distilled / base, Z-Image base / Turbo, HiDream full / dev / fast, LTX-2 / 2.3,
-HunyuanVideo-1.5 480p / 720p, Wan A14B high / low noise) have identical keys: the file name decides.
+HunyuanVideo-1.5 480p / 720p, Wan A14B high / low noise, Wan2.1-T2V-14B vs an A14B expert) have identical keys: the
+file name decides.
"""
from __future__ import annotations
@@ -38,6 +39,8 @@ SAME_ARCH_VARIANTS: dict[str, frozenset[str]] = {
"qwen-image": frozenset({"qwen-image", "qwen-image-edit"}),
"qwen-image-edit": frozenset({"qwen-image-edit"}),
"hunyuanvideo-1.5": frozenset({"hunyuanvideo-1.5", "hunyuanvideo-1.5-720p"}),
+ # A name naming neither keeps the header's A14B answer.
+ "wan2.2-t2v-a14b": frozenset({"wan2.2-t2v-a14b", "wan2.1-t2v-14b"}),
}
_VIDEO_FAMILIES = frozenset(
@@ -45,6 +48,8 @@ _VIDEO_FAMILIES = frozenset(
"ltx-2",
"wan2.2-ti2v-5b",
"wan2.2-t2v-a14b",
+ "wan2.1-t2v-1.3b",
+ "wan2.1-t2v-14b",
"hunyuanvideo-1.5",
"hunyuanvideo-1.5-720p",
"minimax-h3",
@@ -361,11 +366,17 @@ def _match_dit(s: dict[str, list[int]]) -> Optional[CheckpointInfo]:
if in_ch == 16 and width == 5120:
return _dit(
"wan2.2-t2v-a14b",
- "a Wan 14B text-to-video diffusion transformer (one A14B expert)",
+ "a Wan 14B text-to-video diffusion transformer (Wan2.1 T2V-14B or one Wan2.2 A14B expert)",
layout,
)
+ if in_ch == 16 and width == 1536:
+ return _dit("wan2.1-t2v-1.3b", "a Wan2.1 T2V-1.3B diffusion transformer", layout)
if in_ch == 36:
- return _dit(None, "a Wan image-to-video diffusion transformer (not supported)", layout)
+ return _dit(
+ None,
+ "a Wan image-to-video diffusion transformer (not supported yet: image-to-video is coming)",
+ layout,
+ )
return _dit(None, "a Wan diffusion transformer of an unsupported size", layout)
if (
@@ -663,10 +674,13 @@ def resolve_family_with_content(
path: Optional[str],
page: str,
name_vetoed: bool = False,
+ file_family: Optional[str] = None,
) -> tuple[Optional[str], bool]:
"""(family, decided_by_content). Non-DiT / other page -> None; a same-architecture name variant
keeps the name, else the header wins; no supported header family -> the name. A name the variant
- guard refused (``...-inpaint``) stays refused."""
+ guard refused (``...-inpaint``) stays refused. ``file_family``, the family the checkpoint's own file
+ name implies, outranks ``name_family`` (which may come from a repo or folder) among same-architecture
+ variants."""
if not path:
return name_family, False
info = inspect_checkpoint(path)
@@ -679,7 +693,10 @@ def resolve_family_with_content(
return None, True
if info.page != page:
return None, True
- if name_family and name_family in SAME_ARCH_VARIANTS.get(info.family, frozenset({info.family})):
+ variants = SAME_ARCH_VARIANTS.get(info.family, frozenset({info.family}))
+ if file_family and file_family in variants:
+ return file_family, False
+ if name_family and name_family in variants:
return name_family, False
if name_vetoed and name_family is None:
return None, False
diff --git a/studio/backend/core/inference/video.py b/studio/backend/core/inference/video.py
index bfbb7b34362..f9eae1a86f7 100644
--- a/studio/backend/core/inference/video.py
+++ b/studio/backend/core/inference/video.py
@@ -270,6 +270,8 @@ _TRUSTED_NON_GGUF_VIDEO_REPOS = frozenset(
# Wan2.2 official diffusers base repos: safetensors-only, no remote code.
"wan-ai/wan2.2-ti2v-5b-diffusers",
"wan-ai/wan2.2-t2v-a14b-diffusers",
+ "wan-ai/wan2.1-t2v-1.3b-diffusers",
+ "wan-ai/wan2.1-t2v-14b-diffusers",
# HunyuanVideo-1.5 community Diffusers repacks (tencent's own repo has no model_index.json)
"hunyuanvideo-community/hunyuanvideo-1.5-diffusers-480p_t2v",
"hunyuanvideo-community/hunyuanvideo-1.5-diffusers-720p_t2v",
@@ -1092,12 +1094,26 @@ def _resolve_load_family(
arch = _picked_gguf_arch(repo_id, gguf_filename)
if arch:
fam = detect_video_family(repo_id, override = arch)
+ from .diffusion_content import SAME_ARCH_VARIANTS, local_pick_file, resolve_family_with_content
+
+ # Same layout, different model: the picked file's own name outranks its repo or folder (a Wan2.1 14B GGUF in a
+ # Wan2.2 A14B repo, or the reverse), local or remote.
+ if fam is not None and gguf_filename:
+ named = detect_video_family(os.path.basename(gguf_filename))
+ if named is not None and named.name != fam.name and (
+ named.name in SAME_ARCH_VARIANTS.get(fam.name, ())
+ or fam.name in SAME_ARCH_VARIANTS.get(named.name, ())
+ # A remote pick has no header pass, so a file naming another Wan model picks the base config.
+ or (named.name.startswith("wan") and fam.name.startswith("wan"))
+ ):
+ fam = named
# A local file's header outranks its name (the name still picks 480p vs 720p).
- from .diffusion_content import local_pick_file, resolve_family_with_content
-
path = local_pick_file(repo_id, gguf_filename)
if path:
- name, _ = resolve_family_with_content(fam.name if fam else None, path, "video")
+ file_fam = detect_video_family(os.path.basename(path))
+ name, _ = resolve_family_with_content(
+ fam.name if fam else None, path, "video", file_family = file_fam.name if file_fam else None
+ )
if name is None:
return None
if fam is None or fam.name != name:
@@ -2709,6 +2725,17 @@ class VideoBackend:
fam = _detect_load_family(
repo_id, gguf_filename, family_override, display_repo_id, model_kind
)
+ # Every pick name is judged, not just an unresolved one: a T2V repo id can hold an I2V / VACE file.
+ # A family override names the family for an opaque pick; it cannot make refused weights runnable.
+ from .video_families import unsupported_video_checkpoint_reason
+ reason = unsupported_video_checkpoint_reason(
+ display_repo_id,
+ repo_id,
+ gguf_filename,
+ wan21_checkpoint = (gguf_filename or repo_id) if fam and fam.name.startswith("wan2.1") else None,
+ )
+ if reason:
+ raise ValueError(reason)
if fam is None:
raise ValueError(
f"'{repo_id}' is not a supported text-to-video model. Supported families: "
diff --git a/studio/backend/core/inference/video_families.py b/studio/backend/core/inference/video_families.py
index eb92ced4e58..8babd1d03f2 100644
--- a/studio/backend/core/inference/video_families.py
+++ b/studio/backend/core/inference/video_families.py
@@ -466,6 +466,46 @@ _FAMILIES: tuple[VideoFamily, ...] = (
# no gguf_repo: community GGUFs split the experts; a gguf / single_file pick of either expert loads the pair
# (video_moe_pair)
),
+ # Wan2.1-T2V-1.3B: 480P only (upstream calls 720P unstable for 1.3B).
+ VideoFamily(
+ name = "wan2.1-t2v-1.3b",
+ comfy_flow_shift = 8.0, # reference workflow shift; replaces the repo's flow_shift 3.0
+ pipeline_class = "WanPipeline",
+ transformer_class = "WanTransformer3DModel",
+ base_repo = "Wan-AI/Wan2.1-T2V-1.3B-Diffusers",
+ aliases = ("wan2.1-1.3b", "wan21-t2v-1.3b", "wan21-1.3b"),
+ has_audio = False,
+ default_steps = 30,
+ default_guidance = 6.0,
+ default_num_frames = 33,
+ default_fps = 16,
+ frame_step = 4,
+ resolution_multiple = 16,
+ resolution_presets = ((832, 480), (480, 832)),
+ bf16_components_gb = (2.8, 11.4, 0.5),
+ vae_force_fp32 = True,
+ cudnn_benchmark = False,
+ ),
+ # Wan2.1-T2V-14B: same keys as one Wan2.2 A14B expert, run as a single denoiser.
+ VideoFamily(
+ name = "wan2.1-t2v-14b",
+ comfy_flow_shift = 5.0, # reference 14B workflow shift (the 1.3B uses 8); replaces the repo's flow_shift 3.0
+ pipeline_class = "WanPipeline",
+ transformer_class = "WanTransformer3DModel",
+ base_repo = "Wan-AI/Wan2.1-T2V-14B-Diffusers",
+ aliases = ("wan2.1-14b", "wan21-t2v-14b", "wan21-14b"),
+ has_audio = False,
+ default_steps = 20,
+ default_guidance = 6.0,
+ default_num_frames = 33,
+ default_fps = 16,
+ frame_step = 4,
+ resolution_multiple = 16,
+ resolution_presets = ((832, 480), (1280, 720), (480, 832), (720, 1280)),
+ bf16_components_gb = (28.6, 11.4, 0.5),
+ vae_force_fp32 = True,
+ cudnn_benchmark = False,
+ ),
# HunyuanVideo-1.5 (diffusers >= 0.39): 8.3B DiT, Qwen2.5-VL + ByT5 encoders. Three quirks: no guidance kwarg (CFG
# on the ``guider``), no callback_on_step_end (generate() wraps scheduler.step), and no upstream model_index.json,
# so only the community repacks load.
@@ -530,6 +570,69 @@ _FAMILIES: tuple[VideoFamily, ...] = (
)
+# Wan2.1 / FastWan / AnyFlow names no family can serve, each with its refusal. Kept to Wan2.1 / FastWan / AnyFlow
+# spellings so no other family's name can match. FastWan, AnyFlow, I2V and conditioning markers count only in the last path segment (an owner or folder
+# named "fastwan", "i2v" or "fun" is not such a checkpoint), and "fun" only right after the Wan2.1 token, where every Fun
+# release puts it.
+_WAN21_TOKEN = r"(?<![a-z0-9])wan-?2-?1(?![0-9])"
+_UNSUPPORTED_VIDEO_CHECKPOINTS: tuple[tuple[str, str], ...] = (
+ (
+ r"(?:^|[/\\])(?=[^/\\]*(?<![a-z0-9])fastwan(?![a-z]))[^/\\]*[/\\]*$",
+ "This is a FastVideo FastWan checkpoint. FastWan is distilled for FastVideo's own few-step "
+ "sampler and sparse attention (its repos declare WanDMDPipeline, which Diffusers does not "
+ "ship), so Studio cannot run it faithfully. Load Wan-AI/Wan2.1-T2V-1.3B-Diffusers or "
+ "Wan-AI/Wan2.1-T2V-14B-Diffusers instead.",
+ ),
+ (
+ r"(?:^|[/\\])(?=[^/\\]*(?<![a-z0-9])anyflow(?![a-z]))[^/\\]*[/\\]*$",
+ "This is an NVIDIA AnyFlow checkpoint. AnyFlow is a flow-map distillation of Wan2.1 whose "
+ "transformer takes a second (delta) timestep and samples through AnyFlowPipeline with "
+ "FlowMapEulerDiscreteScheduler, so the Wan text-to-video pipeline Studio loads cannot run it "
+ "faithfully. Load Wan-AI/Wan2.1-T2V-1.3B-Diffusers or Wan-AI/Wan2.1-T2V-14B-Diffusers instead.",
+ ),
+ (
+ r"(?:^|[/\\])(?=[^/\\]*" + _WAN21_TOKEN + r")(?=[^/\\]*(?<![a-z0-9])(?:i2v|flf2v)(?![a-z0-9]))"
+ r"[^/\\]*[/\\]*$",
+ "This is a Wan2.1 image-to-video checkpoint (I2V-14B 480P / 720P or FLF2V). It generates "
+ "from a start frame through its own image-conditioned transformer and a CLIP vision "
+ "encoder, which Studio does not load yet; image-to-video support is coming. Load a Wan2.1 "
+ "text-to-video checkpoint (Wan-AI/Wan2.1-T2V-1.3B-Diffusers or "
+ "Wan-AI/Wan2.1-T2V-14B-Diffusers) instead.",
+ ),
+ (
+ r"(?:^|[/\\])(?=[^/\\]*" + _WAN21_TOKEN + r")(?=[^/\\]*(?:(?<![a-z0-9])"
+ r"(?:vace|magref|phantom|multitalk|infinitetalk|controlnet|recammaster)|" + _WAN21_TOKEN + r"-fun)"
+ r"(?![a-z0-9]))[^/\\]*[/\\]*$",
+ "This is a Wan2.1 conditioning variant (VACE, Fun, MAGREF, Phantom, talking-head, "
+ "ControlNet or ReCamMaster). Its transformer takes extra control inputs the text-to-video "
+ "pipeline does not provide, so Studio cannot run it. Load a plain Wan2.1 text-to-video "
+ "checkpoint instead.",
+ ),
+)
+
+
+def unsupported_video_checkpoint_reason(
+ *identifiers: Optional[str], wan21_checkpoint: Optional[str] = None
+) -> Optional[str]:
+ """Why a Wan 2.1 / FastWan / AnyFlow pick cannot load, or None. ``wan21_checkpoint``: the selected checkpoint of a
+ pick that already resolved to a Wan2.1 family, whose last segment may omit the Wan2.1 token
+ (``i2v-14b-480p-Q4_K_M.gguf``) and is judged as if it carried it; containers never are."""
+ needles = [normalize_family_name(str(identifier)) for identifier in identifiers if identifier]
+ if wan21_checkpoint:
+ needle = normalize_family_name(str(wan21_checkpoint))
+ needles.append(needle)
+ name = re.split(r"[/\\]", needle.rstrip("/\\"))[-1]
+ # A leading "fun" is too generic to mark a Fun release unless it names one (version, size, InP, Control); the
+ # other markers are still judged.
+ generic_fun = re.match(r"fun(?![a-z0-9])", name) and not re.match(r"fun-(?:v\d|1-3b|14b|inp|control)", name)
+ needles.append(("wan2-1-t2v-" if generic_fun else "wan2-1-") + name)
+ for needle in needles:
+ for pattern, message in _UNSUPPORTED_VIDEO_CHECKPOINTS:
+ if re.search(pattern, needle):
+ return message
+ return None
+
+
def _token_in_needle(token: str, needle: str) -> bool:
"""Whole path/name segment match, as in diffusion_families (a short alias like
'ltx' must not match inside an unrelated word)."""
@@ -553,6 +656,9 @@ def detect_video_family(repo_id: str, override: Optional[str] = None) -> Optiona
if any(normalize_family_name(t) == norm for t in (fam.name, *fam.aliases)):
return fam
return None
+ # I2V / VACE / FastWan names can carry a T2V token (Wan2.1_T2V_14B_FusionX_VACE): no T2V pipeline over those weights.
+ if unsupported_video_checkpoint_reason(repo_id):
+ return None
needle = repo_id.lower()
best: Optional[tuple[VideoFamily, int]] = None
for fam in _FAMILIES:
@@ -954,13 +1060,27 @@ def validate_video_reference_conditioning(
# first.
_VIDEO_GENERATION_DEFAULTS: tuple[tuple[str, int, float], ...] = (
("distilled", 8, 1.0),
+ # Wan2.1 14B FusionX merge (CausVid / AccVideo distilled): its card asks for CFG 1 and 8-10 steps.
+ ("fusionx", 8, 1.0),
("ltx", 40, 4.0),
# T2V-A14B before the generic Wan key.
("a14b", 20, 3.5),
("wan2.2-14b", 20, 3.5),
+ # Before the generic Wan key; the 14B reference workflow runs 20 steps, the 1.3B 30.
+ ("wan2.1-t2v-14b", 20, 6.0),
+ ("wan2.1-14b", 20, 6.0),
+ ("wan21-t2v-14b", 20, 6.0),
+ ("wan21-14b", 20, 6.0),
+ ("wan2.1", 30, 6.0),
+ ("wan21", 30, 6.0),
("wan", 20, 5.0),
("hunyuanvideo", 20, 6.0),
)
+# The Wan and FusionX keys count only in the model / file name, so an owner or folder spelling one cannot outrank the family the
+# checkpoint itself names.
+_NAME_SEGMENT_DEFAULT_KEYS = frozenset(
+ k for k, _s, _g in _VIDEO_GENERATION_DEFAULTS if k.startswith(("wan", "fusionx"))
+)
def default_video_generation_params(
@@ -982,8 +1102,10 @@ def video_generation_variant(*identifiers: Optional[str]) -> Optional[str]:
"""The ``_VIDEO_GENERATION_DEFAULTS`` key the first identifier naming one matches, or None; the precedence
``default_video_generation_params`` uses, so every per-variant decision agrees with the defaults."""
for identifier in identifiers:
- needle = (identifier or "").lower()
+ whole = (identifier or "").lower()
+ name = whole.replace("\\", "/").rstrip("/").rsplit("/", 1)[-1]
for key, _steps, _guidance in _VIDEO_GENERATION_DEFAULTS:
+ needle = name if key in _NAME_SEGMENT_DEFAULT_KEYS else whole
# Match the key as a name segment: reject a preceding ASCII letter so "swan-video" does not false-match
# "wan".
if re.search(r"(?<![a-z])" + re.escape(key), needle) or re.search(
diff --git a/studio/backend/core/inference/video_vae_untiled.py b/studio/backend/core/inference/video_vae_untiled.py
index 10248493fb9..7e812614093 100644
--- a/studio/backend/core/inference/video_vae_untiled.py
+++ b/studio/backend/core/inference/video_vae_untiled.py
@@ -16,12 +16,16 @@ UNTILED_ENV = "UNSLOTH_VIDEO_VAE_UNTILED"
_BYTES_PER_LATENT_PIXEL = {
"wan2.2-ti2v-5b": 2.5 * 2**20,
"wan2.2-t2v-a14b": 0.6 * 2**20,
+ "wan2.1-t2v-1.3b": 0.6 * 2**20,
+ "wan2.1-t2v-14b": 0.6 * 2**20,
}
# (spatial, temporal) upsampling to the RGB output, which Wan's decode holds about twice (per-frame torch.cat, then
# clamp) and which grows with frames: 1021 frames at 1280x704 is 5.2 GiB per fp16 copy.
_OUTPUT_SCALE = {
"wan2.2-ti2v-5b": (16, 4),
"wan2.2-t2v-a14b": (8, 4),
+ "wan2.1-t2v-1.3b": (8, 4),
+ "wan2.1-t2v-14b": (8, 4),
}
# LTX-2 / 2.3 holds every frame: peak per output frame x latent pixel, 0.102-0.105 MiB measured bf16 (B200).
_BYTES_PER_FRAME_LATENT_PIXEL = {
diff --git a/studio/backend/hub/utils/comfy_models.py b/studio/backend/hub/utils/comfy_models.py
index 9b8c8ffc734..2e0f40c22ef 100644
--- a/studio/backend/hub/utils/comfy_models.py
+++ b/studio/backend/hub/utils/comfy_models.py
@@ -364,9 +364,21 @@ def _offer_loose_checkpoint(path: Path) -> bool:
if not info.family:
return False
if info.page == diffusion_content.PAGE_VIDEO:
- return _single_file_loadable(
- None, detect_video_family("", override = info.family), path.name
- )
+ from core.inference.video_families import unsupported_video_checkpoint_reason
+
+ family = info.family
+ # Same keys, different model: the name picks the variant (wan2.1_t2v_14B reads as an A14B expert by header).
+ named = detect_video_family(path.name)
+ if named is not None and named.name in diffusion_content.SAME_ARCH_VARIANTS.get(
+ family, frozenset()
+ ):
+ family = named.name
+ # A name the loader refuses (FastWan, Wan2.1 I2V / VACE) is not offered, whatever the header says.
+ if unsupported_video_checkpoint_reason(
+ path.name, wan21_checkpoint = path.name if family.startswith("wan2.1") else None
+ ):
+ return False
+ return _single_file_loadable(None, detect_video_family("", override = family), path.name)
return _single_file_loadable(detect_family("", override = info.family), None, path.name)
return _single_file_loadable(
detect_family(path.name), detect_video_family(path.name), path.name
diff --git a/studio/backend/tests/fixtures/vae_tile_configs.json b/studio/backend/tests/fixtures/vae_tile_configs.json
index 378a9799c2e..9336ed64a24 100644
--- a/studio/backend/tests/fixtures/vae_tile_configs.json
+++ b/studio/backend/tests/fixtures/vae_tile_configs.json
@@ -1208,6 +1208,128 @@
"z_dim": 16
}
},
+ "wan2.1-t2v-1.3b": {
+ "kind": "video",
+ "repo": "Wan-AI/Wan2.1-T2V-1.3B-Diffusers",
+ "revision": "0fad780a534b6463e45facd96134c9f345acfa5b",
+ "config": {
+ "_class_name": "AutoencoderKLWan",
+ "_diffusers_version": "0.33.0.dev0",
+ "attn_scales": [],
+ "base_dim": 96,
+ "dim_mult": [
+ 1,
+ 2,
+ 4,
+ 4
+ ],
+ "dropout": 0.0,
+ "latents_mean": [
+ -0.7571,
+ -0.7089,
+ -0.9113,
+ 0.1075,
+ -0.1745,
+ 0.9653,
+ -0.1517,
+ 1.5508,
+ 0.4134,
+ -0.0715,
+ 0.5517,
+ -0.3632,
+ -0.1922,
+ -0.9497,
+ 0.2503,
+ -0.2921
+ ],
+ "latents_std": [
+ 2.8184,
+ 1.4541,
+ 2.3275,
+ 2.6558,
+ 1.2196,
+ 1.7708,
+ 2.6052,
+ 2.0743,
+ 3.2687,
+ 2.1526,
+ 2.8652,
+ 1.5579,
+ 1.6382,
+ 1.1253,
+ 2.8251,
+ 1.916
+ ],
+ "num_res_blocks": 2,
+ "temperal_downsample": [
+ false,
+ true,
+ true
+ ],
+ "z_dim": 16
+ }
+ },
+ "wan2.1-t2v-14b": {
+ "kind": "video",
+ "repo": "Wan-AI/Wan2.1-T2V-14B-Diffusers",
+ "revision": "38ec498cb3208fb688890f8cc7e94ede2cbd7f68",
+ "config": {
+ "_class_name": "AutoencoderKLWan",
+ "_diffusers_version": "0.33.0.dev0",
+ "attn_scales": [],
+ "base_dim": 96,
+ "dim_mult": [
+ 1,
+ 2,
+ 4,
+ 4
+ ],
+ "dropout": 0.0,
+ "latents_mean": [
+ -0.7571,
+ -0.7089,
+ -0.9113,
+ 0.1075,
+ -0.1745,
+ 0.9653,
+ -0.1517,
+ 1.5508,
+ 0.4134,
+ -0.0715,
+ 0.5517,
+ -0.3632,
+ -0.1922,
+ -0.9497,
+ 0.2503,
+ -0.2921
+ ],
+ "latents_std": [
+ 2.8184,
+ 1.4541,
+ 2.3275,
+ 2.6558,
+ 1.2196,
+ 1.7708,
+ 2.6052,
+ 2.0743,
+ 3.2687,
+ 2.1526,
+ 2.8652,
+ 1.5579,
+ 1.6382,
+ 1.1253,
+ 2.8251,
+ 1.916
+ ],
+ "num_res_blocks": 2,
+ "temperal_downsample": [
+ false,
+ true,
+ true
+ ],
+ "z_dim": 16
+ }
+ },
"hunyuanvideo-1.5": {
"kind": "video",
"repo": "hunyuanvideo-community/HunyuanVideo-1.5-Diffusers-480p_t2v",
diff --git a/studio/backend/tests/fixtures/wan21_checkpoint_headers.json b/studio/backend/tests/fixtures/wan21_checkpoint_headers.json
new file mode 100644
index 00000000000..3b70c948121
--- /dev/null
+++ b/studio/backend/tests/fixtures/wan21_checkpoint_headers.json
@@ -0,0 +1,2800 @@
+{
+"Comfy-Org/Wan_2.1_ComfyUI_repackaged/split_files/clip_vision/clip_vision_h.safetensors": {
+"meta": {},
+"shapes": {
+"vision_model.embeddings.class_embedding": [
+1280
+],
+"vision_model.embeddings.patch_embedding.weight": [
+1280,
+3,
+14,
+14
+],
+"vision_model.embeddings.position_embedding.weight": [
+257,
+1280
+],
+"vision_model.embeddings.position_ids": [
+1,
+257
+],
+"vision_model.encoder.layers.0.layer_norm1.bias": [
+1280
+],
+"vision_model.encoder.layers.0.layer_norm1.weight": [
+1280
+],
+"vision_model.encoder.layers.0.layer_norm2.bias": [
+1280
+],
+"vision_model.encoder.layers.0.layer_norm2.weight": [
+1280
+],
+"vision_model.encoder.layers.0.mlp.fc1.bias": [
+5120
+],
+"vision_model.encoder.layers.0.mlp.fc1.weight": [
+5120,
+1280
+],
+"vision_model.encoder.layers.0.mlp.fc2.bias": [
+1280
+],
+"vision_model.encoder.layers.0.mlp.fc2.weight": [
+1280,
+5120
+],
+"vision_model.encoder.layers.0.self_attn.k_proj.bias": [
+1280
+],
+"vision_model.encoder.layers.0.self_attn.k_proj.weight": [
+1280,
+1280
+],
+"vision_model.encoder.layers.0.self_attn.out_proj.bias": [
+1280
+],
+"vision_model.encoder.layers.0.self_attn.out_proj.weight": [
+1280,
+1280
+],
+"vision_model.encoder.layers.0.self_attn.q_proj.bias": [
+1280
+],
+"vision_model.encoder.layers.0.self_attn.q_proj.weight": [
+1280,
+1280
+],
+"vision_model.encoder.layers.0.self_attn.v_proj.bias": [
+1280
+],
+"vision_model.encoder.layers.0.self_attn.v_proj.weight": [
+1280,
+1280
+],
+"vision_model.post_layernorm.bias": [
+1280
+],
+"vision_model.post_layernorm.weight": [
+1280
+],
+"vision_model.pre_layrnorm.bias": [
+1280
+],
+"vision_model.pre_layrnorm.weight": [
+1280
+],
+"visual_projection.weight": [
+1024,
+1280
+]
+}
+},
+"Comfy-Org/Wan_2.1_ComfyUI_repackaged/split_files/diffusion_models/wan2.1_fun_inp_1.3B_bf16.safetensors": {
+"meta": {},
+"shapes": {
+"blocks.0.cross_attn.k.bias": [
+1536
+],
+"blocks.0.cross_attn.k.weight": [
+1536,
+1536
+],
+"blocks.0.cross_attn.k_img.bias": [
+1536
+],
+"blocks.0.cross_attn.k_img.weight": [
+1536,
+1536
+],
+"blocks.0.cross_attn.norm_k.weight": [
+1536
+],
+"blocks.0.cross_attn.norm_k_img.weight": [
+1536
+],
+"blocks.0.cross_attn.norm_q.weight": [
+1536
+],
+"blocks.0.cross_attn.o.bias": [
+1536
+],
+"blocks.0.cross_attn.o.weight": [
+1536,
+1536
+],
+"blocks.0.cross_attn.q.bias": [
+1536
+],
+"blocks.0.cross_attn.q.weight": [
+1536,
+1536
+],
+"blocks.0.cross_attn.v.bias": [
+1536
+],
+"blocks.0.cross_attn.v.weight": [
+1536,
+1536
+],
+"blocks.0.cross_attn.v_img.bias": [
+1536
+],
+"blocks.0.cross_attn.v_img.weight": [
+1536,
+1536
+],
+"blocks.0.ffn.0.bias": [
+8960
+],
+"blocks.0.ffn.0.weight": [
+8960,
+1536
+],
+"blocks.0.ffn.2.bias": [
+1536
+],
+"blocks.0.ffn.2.weight": [
+1536,
+8960
+],
+"blocks.0.modulation": [
+1,
+6,
+1536
+],
+"blocks.0.norm3.bias": [
+1536
+],
+"blocks.0.norm3.weight": [
+1536
+],
+"blocks.0.self_attn.k.bias": [
+1536
+],
+"blocks.0.self_attn.k.weight": [
+1536,
+1536
+],
+"blocks.0.self_attn.norm_k.weight": [
+1536
+],
+"blocks.0.self_attn.norm_q.weight": [
+1536
+],
+"blocks.0.self_attn.o.bias": [
+1536
+],
+"blocks.0.self_attn.o.weight": [
+1536,
+1536
+],
+"blocks.0.self_attn.q.bias": [
+1536
+],
+"blocks.0.self_attn.q.weight": [
+1536,
+1536
+],
+"blocks.0.self_attn.v.bias": [
+1536
+],
+"blocks.0.self_attn.v.weight": [
+1536,
+1536
+],
+"head.head.bias": [
+64
+],
+"head.head.weight": [
+64,
+1536
+],
+"head.modulation": [
+1,
+2,
+1536
+],
+"img_emb.proj.0.bias": [
+1280
+],
+"img_emb.proj.0.weight": [
+1280
+],
+"img_emb.proj.1.bias": [
+1280
+],
+"img_emb.proj.1.weight": [
+1280,
+1280
+],
+"img_emb.proj.3.bias": [
+1536
+],
+"img_emb.proj.3.weight": [
+1536,
+1280
+],
+"img_emb.proj.4.bias": [
+1536
+],
+"img_emb.proj.4.weight": [
+1536
+],
+"patch_embedding.bias": [
+1536
+],
+"patch_embedding.weight": [
+1536,
+36,
+1,
+2,
+2
+],
+"text_embedding.0.bias": [
+1536
+],
+"text_embedding.0.weight": [
+1536,
+4096
+],
+"text_embedding.2.bias": [
+1536
+],
+"text_embedding.2.weight": [
+1536,
+1536
+],
+"time_embedding.0.bias": [
+1536
+],
+"time_embedding.0.weight": [
+1536,
+256
+],
+"time_embedding.2.bias": [
+1536
+],
+"time_embedding.2.weight": [
+1536,
+1536
+],
+"time_projection.1.bias": [
+9216
+],
+"time_projection.1.weight": [
+9216,
+1536
+]
+}
+},
+"Comfy-Org/Wan_2.1_ComfyUI_repackaged/split_files/diffusion_models/wan2.1_i2v_480p_14B_fp8_scaled.safetensors": {
+"meta": {},
+"shapes": {
+"blocks.0.cross_attn.k.bias": [
+5120
+],
+"blocks.0.cross_attn.k.scale_weight": [],
+"blocks.0.cross_attn.k.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.k_img.bias": [
+5120
+],
+"blocks.0.cross_attn.k_img.scale_weight": [],
+"blocks.0.cross_attn.k_img.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.norm_k.weight": [
+5120
+],
+"blocks.0.cross_attn.norm_k_img.weight": [
+5120
+],
+"blocks.0.cross_attn.norm_q.weight": [
+5120
+],
+"blocks.0.cross_attn.o.bias": [
+5120
+],
+"blocks.0.cross_attn.o.scale_weight": [],
+"blocks.0.cross_attn.o.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.q.bias": [
+5120
+],
+"blocks.0.cross_attn.q.scale_weight": [],
+"blocks.0.cross_attn.q.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.v.bias": [
+5120
+],
+"blocks.0.cross_attn.v.scale_weight": [],
+"blocks.0.cross_attn.v.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.v_img.bias": [
+5120
+],
+"blocks.0.cross_attn.v_img.scale_weight": [],
+"blocks.0.cross_attn.v_img.weight": [
+5120,
+5120
+],
+"blocks.0.ffn.0.bias": [
+13824
+],
+"blocks.0.ffn.0.scale_weight": [],
+"blocks.0.ffn.0.weight": [
+13824,
+5120
+],
+"blocks.0.ffn.2.bias": [
+5120
+],
+"blocks.0.ffn.2.scale_weight": [],
+"blocks.0.ffn.2.weight": [
+5120,
+13824
+],
+"blocks.0.modulation": [
+1,
+6,
+5120
+],
+"blocks.0.norm3.bias": [
+5120
+],
+"blocks.0.norm3.weight": [
+5120
+],
+"blocks.0.self_attn.k.bias": [
+5120
+],
+"blocks.0.self_attn.k.scale_weight": [],
+"blocks.0.self_attn.k.weight": [
+5120,
+5120
+],
+"blocks.0.self_attn.norm_k.weight": [
+5120
+],
+"blocks.0.self_attn.norm_q.weight": [
+5120
+],
+"blocks.0.self_attn.o.bias": [
+5120
+],
+"blocks.0.self_attn.o.scale_weight": [],
+"blocks.0.self_attn.o.weight": [
+5120,
+5120
+],
+"blocks.0.self_attn.q.bias": [
+5120
+],
+"blocks.0.self_attn.q.scale_weight": [],
+"blocks.0.self_attn.q.weight": [
+5120,
+5120
+],
+"blocks.0.self_attn.v.bias": [
+5120
+],
+"blocks.0.self_attn.v.scale_weight": [],
+"blocks.0.self_attn.v.weight": [
+5120,
+5120
+],
+"head.head.bias": [
+64
+],
+"head.head.scale_weight": [],
+"head.head.weight": [
+64,
+5120
+],
+"head.modulation": [
+1,
+2,
+5120
+],
+"img_emb.proj.0.bias": [
+1280
+],
+"img_emb.proj.0.weight": [
+1280
+],
+"img_emb.proj.1.bias": [
+1280
+],
+"img_emb.proj.1.scale_weight": [],
+"img_emb.proj.1.weight": [
+1280,
+1280
+],
+"img_emb.proj.3.bias": [
+5120
+],
+"img_emb.proj.3.scale_weight": [],
+"img_emb.proj.3.weight": [
+5120,
+1280
+],
+"img_emb.proj.4.bias": [
+5120
+],
+"img_emb.proj.4.weight": [
+5120
+],
+"patch_embedding.bias": [
+5120
+],
+"patch_embedding.weight": [
+5120,
+36,
+1,
+2,
+2
+],
+"scaled_fp8": [
+2
+],
+"text_embedding.0.bias": [
+5120
+],
+"text_embedding.0.scale_weight": [],
+"text_embedding.0.weight": [
+5120,
+4096
+],
+"text_embedding.2.bias": [
+5120
+],
+"text_embedding.2.scale_weight": [],
+"text_embedding.2.weight": [
+5120,
+5120
+],
+"time_embedding.0.bias": [
+5120
+],
+"time_embedding.0.scale_weight": [],
+"time_embedding.0.weight": [
+5120,
+256
+],
+"time_embedding.2.bias": [
+5120
+],
+"time_embedding.2.scale_weight": [],
+"time_embedding.2.weight": [
+5120,
+5120
+],
+"time_projection.1.bias": [
+30720
+],
+"time_projection.1.scale_weight": [],
+"time_projection.1.weight": [
+30720,
+5120
+]
+}
+},
+"Comfy-Org/Wan_2.1_ComfyUI_repackaged/split_files/diffusion_models/wan2.1_t2v_1.3B_bf16.safetensors": {
+"meta": {},
+"shapes": {
+"model.diffusion_model.blocks.0.cross_attn.k.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.k.weight": [
+1536,
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.norm_k.weight": [
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.norm_q.weight": [
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.o.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.o.weight": [
+1536,
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.q.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.q.weight": [
+1536,
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.v.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.v.weight": [
+1536,
+1536
+],
+"model.diffusion_model.blocks.0.ffn.0.bias": [
+8960
+],
+"model.diffusion_model.blocks.0.ffn.0.weight": [
+8960,
+1536
+],
+"model.diffusion_model.blocks.0.ffn.2.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.ffn.2.weight": [
+1536,
+8960
+],
+"model.diffusion_model.blocks.0.modulation": [
+1,
+6,
+1536
+],
+"model.diffusion_model.blocks.0.norm3.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.norm3.weight": [
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.k.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.k.weight": [
+1536,
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.norm_k.weight": [
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.norm_q.weight": [
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.o.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.o.weight": [
+1536,
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.q.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.q.weight": [
+1536,
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.v.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.v.weight": [
+1536,
+1536
+],
+"model.diffusion_model.head.head.bias": [
+64
+],
+"model.diffusion_model.head.head.weight": [
+64,
+1536
+],
+"model.diffusion_model.head.modulation": [
+1,
+2,
+1536
+],
+"model.diffusion_model.patch_embedding.bias": [
+1536
+],
+"model.diffusion_model.patch_embedding.weight": [
+1536,
+16,
+1,
+2,
+2
+],
+"model.diffusion_model.text_embedding.0.bias": [
+1536
+],
+"model.diffusion_model.text_embedding.0.weight": [
+1536,
+4096
+],
+"model.diffusion_model.text_embedding.2.bias": [
+1536
+],
+"model.diffusion_model.text_embedding.2.weight": [
+1536,
+1536
+],
+"model.diffusion_model.time_embedding.0.bias": [
+1536
+],
+"model.diffusion_model.time_embedding.0.weight": [
+1536,
+256
+],
+"model.diffusion_model.time_embedding.2.bias": [
+1536
+],
+"model.diffusion_model.time_embedding.2.weight": [
+1536,
+1536
+],
+"model.diffusion_model.time_projection.1.bias": [
+9216
+],
+"model.diffusion_model.time_projection.1.weight": [
+9216,
+1536
+]
+}
+},
+"Comfy-Org/Wan_2.1_ComfyUI_repackaged/split_files/diffusion_models/wan2.1_t2v_14B_fp8_scaled.safetensors": {
+"meta": {},
+"shapes": {
+"blocks.0.cross_attn.k.bias": [
+5120
+],
+"blocks.0.cross_attn.k.scale_weight": [],
+"blocks.0.cross_attn.k.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.norm_k.weight": [
+5120
+],
+"blocks.0.cross_attn.norm_q.weight": [
+5120
+],
+"blocks.0.cross_attn.o.bias": [
+5120
+],
+"blocks.0.cross_attn.o.scale_weight": [],
+"blocks.0.cross_attn.o.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.q.bias": [
+5120
+],
+"blocks.0.cross_attn.q.scale_weight": [],
+"blocks.0.cross_attn.q.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.v.bias": [
+5120
+],
+"blocks.0.cross_attn.v.scale_weight": [],
+"blocks.0.cross_attn.v.weight": [
+5120,
+5120
+],
+"blocks.0.ffn.0.bias": [
+13824
+],
+"blocks.0.ffn.0.scale_weight": [],
+"blocks.0.ffn.0.weight": [
+13824,
+5120
+],
+"blocks.0.ffn.2.bias": [
+5120
+],
+"blocks.0.ffn.2.scale_weight": [],
+"blocks.0.ffn.2.weight": [
+5120,
+13824
+],
+"blocks.0.modulation": [
+1,
+6,
+5120
+],
+"blocks.0.norm3.bias": [
+5120
+],
+"blocks.0.norm3.weight": [
+5120
+],
+"blocks.0.self_attn.k.bias": [
+5120
+],
+"blocks.0.self_attn.k.scale_weight": [],
+"blocks.0.self_attn.k.weight": [
+5120,
+5120
+],
+"blocks.0.self_attn.norm_k.weight": [
+5120
+],
+"blocks.0.self_attn.norm_q.weight": [
+5120
+],
+"blocks.0.self_attn.o.bias": [
+5120
+],
+"blocks.0.self_attn.o.scale_weight": [],
+"blocks.0.self_attn.o.weight": [
+5120,
+5120
+],
+"blocks.0.self_attn.q.bias": [
+5120
+],
+"blocks.0.self_attn.q.scale_weight": [],
+"blocks.0.self_attn.q.weight": [
+5120,
+5120
+],
+"blocks.0.self_attn.v.bias": [
+5120
+],
+"blocks.0.self_attn.v.scale_weight": [],
+"blocks.0.self_attn.v.weight": [
+5120,
+5120
+],
+"head.head.bias": [
+64
+],
+"head.head.scale_weight": [],
+"head.head.weight": [
+64,
+5120
+],
+"head.modulation": [
+1,
+2,
+5120
+],
+"patch_embedding.bias": [
+5120
+],
+"patch_embedding.weight": [
+5120,
+16,
+1,
+2,
+2
+],
+"scaled_fp8": [
+2
+],
+"text_embedding.0.bias": [
+5120
+],
+"text_embedding.0.scale_weight": [],
+"text_embedding.0.weight": [
+5120,
+4096
+],
+"text_embedding.2.bias": [
+5120
+],
+"text_embedding.2.scale_weight": [],
+"text_embedding.2.weight": [
+5120,
+5120
+],
+"time_embedding.0.bias": [
+5120
+],
+"time_embedding.0.scale_weight": [],
+"time_embedding.0.weight": [
+5120,
+256
+],
+"time_embedding.2.bias": [
+5120
+],
+"time_embedding.2.scale_weight": [],
+"time_embedding.2.weight": [
+5120,
+5120
+],
+"time_projection.1.bias": [
+30720
+],
+"time_projection.1.scale_weight": [],
+"time_projection.1.weight": [
+30720,
+5120
+]
+}
+},
+"Comfy-Org/Wan_2.1_ComfyUI_repackaged/split_files/diffusion_models/wan2.1_vace_1.3B_fp16.safetensors": {
+"meta": {},
+"shapes": {
+"model.diffusion_model.blocks.0.cross_attn.k.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.k.weight": [
+1536,
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.norm_k.weight": [
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.norm_q.weight": [
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.o.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.o.weight": [
+1536,
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.q.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.q.weight": [
+1536,
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.v.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.cross_attn.v.weight": [
+1536,
+1536
+],
+"model.diffusion_model.blocks.0.ffn.0.bias": [
+8960
+],
+"model.diffusion_model.blocks.0.ffn.0.weight": [
+8960,
+1536
+],
+"model.diffusion_model.blocks.0.ffn.2.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.ffn.2.weight": [
+1536,
+8960
+],
+"model.diffusion_model.blocks.0.modulation": [
+1,
+6,
+1536
+],
+"model.diffusion_model.blocks.0.norm3.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.norm3.weight": [
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.k.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.k.weight": [
+1536,
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.norm_k.weight": [
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.norm_q.weight": [
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.o.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.o.weight": [
+1536,
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.q.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.q.weight": [
+1536,
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.v.bias": [
+1536
+],
+"model.diffusion_model.blocks.0.self_attn.v.weight": [
+1536,
+1536
+],
+"model.diffusion_model.head.head.bias": [
+64
+],
+"model.diffusion_model.head.head.weight": [
+64,
+1536
+],
+"model.diffusion_model.head.modulation": [
+1,
+2,
+1536
+],
+"model.diffusion_model.patch_embedding.bias": [
+1536
+],
+"model.diffusion_model.patch_embedding.weight": [
+1536,
+16,
+1,
+2,
+2
+],
+"model.diffusion_model.text_embedding.0.bias": [
+1536
+],
+"model.diffusion_model.text_embedding.0.weight": [
+1536,
+4096
+],
+"model.diffusion_model.text_embedding.2.bias": [
+1536
+],
+"model.diffusion_model.text_embedding.2.weight": [
+1536,
+1536
+],
+"model.diffusion_model.time_embedding.0.bias": [
+1536
+],
+"model.diffusion_model.time_embedding.0.weight": [
+1536,
+256
+],
+"model.diffusion_model.time_embedding.2.bias": [
+1536
+],
+"model.diffusion_model.time_embedding.2.weight": [
+1536,
+1536
+],
+"model.diffusion_model.time_projection.1.bias": [
+9216
+],
+"model.diffusion_model.time_projection.1.weight": [
+9216,
+1536
+],
+"model.diffusion_model.vace_blocks.0.after_proj.bias": [
+1536
+],
+"model.diffusion_model.vace_blocks.0.after_proj.weight": [
+1536,
+1536
+],
+"model.diffusion_model.vace_blocks.0.before_proj.bias": [
+1536
+],
+"model.diffusion_model.vace_blocks.0.before_proj.weight": [
+1536,
+1536
+],
+"model.diffusion_model.vace_blocks.0.cross_attn.k.bias": [
+1536
+],
+"model.diffusion_model.vace_blocks.0.cross_attn.k.weight": [
+1536,
+1536
+],
+"model.diffusion_model.vace_blocks.0.cross_attn.norm_k.weight": [
+1536
+],
+"model.diffusion_model.vace_blocks.0.cross_attn.norm_q.weight": [
+1536
+],
+"model.diffusion_model.vace_blocks.0.cross_attn.o.bias": [
+1536
+],
+"model.diffusion_model.vace_blocks.0.cross_attn.o.weight": [
+1536,
+1536
+],
+"model.diffusion_model.vace_blocks.0.cross_attn.q.bias": [
+1536
+],
+"model.diffusion_model.vace_blocks.0.cross_attn.q.weight": [
+1536,
+1536
+],
+"model.diffusion_model.vace_blocks.0.cross_attn.v.bias": [
+1536
+],
+"model.diffusion_model.vace_blocks.0.cross_attn.v.weight": [
+1536,
+1536
+],
+"model.diffusion_model.vace_blocks.0.ffn.0.bias": [
+8960
+],
+"model.diffusion_model.vace_blocks.0.ffn.0.weight": [
+8960,
+1536
+],
+"model.diffusion_model.vace_blocks.0.ffn.2.bias": [
+1536
+],
+"model.diffusion_model.vace_blocks.0.ffn.2.weight": [
+1536,
+8960
+],
+"model.diffusion_model.vace_blocks.0.modulation": [
+1,
+6,
+1536
+],
+"model.diffusion_model.vace_blocks.0.norm3.bias": [
+1536
+],
+"model.diffusion_model.vace_blocks.0.norm3.weight": [
+1536
+],
+"model.diffusion_model.vace_blocks.0.self_attn.k.bias": [
+1536
+],
+"model.diffusion_model.vace_blocks.0.self_attn.k.weight": [
+1536,
+1536
+],
+"model.diffusion_model.vace_blocks.0.self_attn.norm_k.weight": [
+1536
+],
+"model.diffusion_model.vace_blocks.0.self_attn.norm_q.weight": [
+1536
+],
+"model.diffusion_model.vace_blocks.0.self_attn.o.bias": [
+1536
+],
+"model.diffusion_model.vace_blocks.0.self_attn.o.weight": [
+1536,
+1536
+],
+"model.diffusion_model.vace_blocks.0.self_attn.q.bias": [
+1536
+],
+"model.diffusion_model.vace_blocks.0.self_attn.q.weight": [
+1536,
+1536
+],
+"model.diffusion_model.vace_blocks.0.self_attn.v.bias": [
+1536
+],
+"model.diffusion_model.vace_blocks.0.self_attn.v.weight": [
+1536,
+1536
+],
+"model.diffusion_model.vace_patch_embedding.bias": [
+1536
+],
+"model.diffusion_model.vace_patch_embedding.weight": [
+1536,
+96,
+1,
+2,
+2
+]
+}
+},
+"Comfy-Org/Wan_2.1_ComfyUI_repackaged/split_files/vae/wan_2.1_vae.safetensors": {
+"meta": {},
+"shapes": {
+"conv1.bias": [
+32
+],
+"conv1.weight": [
+32,
+32,
+1,
+1,
+1
+],
+"conv2.bias": [
+16
+],
+"conv2.weight": [
+16,
+16,
+1,
+1,
+1
+],
+"decoder.conv1.bias": [
+384
+],
+"decoder.conv1.weight": [
+384,
+16,
+3,
+3,
+3
+],
+"decoder.head.0.gamma": [
+96,
+1,
+1,
+1
+],
+"decoder.head.2.bias": [
+3
+],
+"decoder.head.2.weight": [
+3,
+96,
+3,
+3,
+3
+],
+"decoder.middle.0.residual.0.gamma": [
+384,
+1,
+1,
+1
+],
+"decoder.middle.0.residual.2.bias": [
+384
+],
+"decoder.middle.0.residual.2.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"decoder.middle.0.residual.3.gamma": [
+384,
+1,
+1,
+1
+],
+"decoder.middle.0.residual.6.bias": [
+384
+],
+"decoder.middle.0.residual.6.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"decoder.middle.1.norm.gamma": [
+384,
+1,
+1
+],
+"decoder.middle.1.proj.bias": [
+384
+],
+"decoder.middle.1.proj.weight": [
+384,
+384,
+1,
+1
+],
+"decoder.middle.1.to_qkv.bias": [
+1152
+],
+"decoder.middle.1.to_qkv.weight": [
+1152,
+384,
+1,
+1
+],
+"decoder.middle.2.residual.0.gamma": [
+384,
+1,
+1,
+1
+],
+"decoder.middle.2.residual.2.bias": [
+384
+],
+"decoder.middle.2.residual.2.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"decoder.middle.2.residual.3.gamma": [
+384,
+1,
+1,
+1
+],
+"decoder.middle.2.residual.6.bias": [
+384
+],
+"decoder.middle.2.residual.6.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"decoder.upsamples.0.residual.0.gamma": [
+384,
+1,
+1,
+1
+],
+"decoder.upsamples.0.residual.2.bias": [
+384
+],
+"decoder.upsamples.0.residual.2.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"decoder.upsamples.0.residual.3.gamma": [
+384,
+1,
+1,
+1
+],
+"decoder.upsamples.0.residual.6.bias": [
+384
+],
+"decoder.upsamples.0.residual.6.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"decoder.upsamples.1.residual.0.gamma": [
+384,
+1,
+1,
+1
+],
+"decoder.upsamples.1.residual.2.bias": [
+384
+],
+"decoder.upsamples.1.residual.2.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"decoder.upsamples.1.residual.3.gamma": [
+384,
+1,
+1,
+1
+],
+"decoder.upsamples.1.residual.6.bias": [
+384
+],
+"decoder.upsamples.1.residual.6.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"decoder.upsamples.10.residual.0.gamma": [
+192,
+1,
+1,
+1
+],
+"decoder.upsamples.10.residual.2.bias": [
+192
+],
+"decoder.upsamples.10.residual.2.weight": [
+192,
+192,
+3,
+3,
+3
+],
+"decoder.upsamples.10.residual.3.gamma": [
+192,
+1,
+1,
+1
+],
+"decoder.upsamples.10.residual.6.bias": [
+192
+],
+"decoder.upsamples.10.residual.6.weight": [
+192,
+192,
+3,
+3,
+3
+],
+"decoder.upsamples.11.resample.1.bias": [
+96
+],
+"decoder.upsamples.11.resample.1.weight": [
+96,
+192,
+3,
+3
+],
+"decoder.upsamples.12.residual.0.gamma": [
+96,
+1,
+1,
+1
+],
+"decoder.upsamples.12.residual.2.bias": [
+96
+],
+"decoder.upsamples.12.residual.2.weight": [
+96,
+96,
+3,
+3,
+3
+],
+"decoder.upsamples.12.residual.3.gamma": [
+96,
+1,
+1,
+1
+],
+"decoder.upsamples.12.residual.6.bias": [
+96
+],
+"decoder.upsamples.12.residual.6.weight": [
+96,
+96,
+3,
+3,
+3
+],
+"decoder.upsamples.13.residual.0.gamma": [
+96,
+1,
+1,
+1
+],
+"decoder.upsamples.13.residual.2.bias": [
+96
+],
+"decoder.upsamples.13.residual.2.weight": [
+96,
+96,
+3,
+3,
+3
+],
+"decoder.upsamples.13.residual.3.gamma": [
+96,
+1,
+1,
+1
+],
+"decoder.upsamples.13.residual.6.bias": [
+96
+],
+"decoder.upsamples.13.residual.6.weight": [
+96,
+96,
+3,
+3,
+3
+],
+"decoder.upsamples.14.residual.0.gamma": [
+96,
+1,
+1,
+1
+],
+"decoder.upsamples.14.residual.2.bias": [
+96
+],
+"decoder.upsamples.14.residual.2.weight": [
+96,
+96,
+3,
+3,
+3
+],
+"decoder.upsamples.14.residual.3.gamma": [
+96,
+1,
+1,
+1
+],
+"decoder.upsamples.14.residual.6.bias": [
+96
+],
+"decoder.upsamples.14.residual.6.weight": [
+96,
+96,
+3,
+3,
+3
+],
+"decoder.upsamples.2.residual.0.gamma": [
+384,
+1,
+1,
+1
+],
+"decoder.upsamples.2.residual.2.bias": [
+384
+],
+"decoder.upsamples.2.residual.2.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"decoder.upsamples.2.residual.3.gamma": [
+384,
+1,
+1,
+1
+],
+"decoder.upsamples.2.residual.6.bias": [
+384
+],
+"decoder.upsamples.2.residual.6.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"decoder.upsamples.3.resample.1.bias": [
+192
+],
+"decoder.upsamples.3.resample.1.weight": [
+192,
+384,
+3,
+3
+],
+"decoder.upsamples.3.time_conv.bias": [
+768
+],
+"decoder.upsamples.3.time_conv.weight": [
+768,
+384,
+3,
+1,
+1
+],
+"decoder.upsamples.4.residual.0.gamma": [
+192,
+1,
+1,
+1
+],
+"decoder.upsamples.4.residual.2.bias": [
+384
+],
+"decoder.upsamples.4.residual.2.weight": [
+384,
+192,
+3,
+3,
+3
+],
+"decoder.upsamples.4.residual.3.gamma": [
+384,
+1,
+1,
+1
+],
+"decoder.upsamples.4.residual.6.bias": [
+384
+],
+"decoder.upsamples.4.residual.6.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"decoder.upsamples.4.shortcut.bias": [
+384
+],
+"decoder.upsamples.4.shortcut.weight": [
+384,
+192,
+1,
+1,
+1
+],
+"decoder.upsamples.5.residual.0.gamma": [
+384,
+1,
+1,
+1
+],
+"decoder.upsamples.5.residual.2.bias": [
+384
+],
+"decoder.upsamples.5.residual.2.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"decoder.upsamples.5.residual.3.gamma": [
+384,
+1,
+1,
+1
+],
+"decoder.upsamples.5.residual.6.bias": [
+384
+],
+"decoder.upsamples.5.residual.6.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"decoder.upsamples.6.residual.0.gamma": [
+384,
+1,
+1,
+1
+],
+"decoder.upsamples.6.residual.2.bias": [
+384
+],
+"decoder.upsamples.6.residual.2.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"decoder.upsamples.6.residual.3.gamma": [
+384,
+1,
+1,
+1
+],
+"decoder.upsamples.6.residual.6.bias": [
+384
+],
+"decoder.upsamples.6.residual.6.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"decoder.upsamples.7.resample.1.bias": [
+192
+],
+"decoder.upsamples.7.resample.1.weight": [
+192,
+384,
+3,
+3
+],
+"decoder.upsamples.7.time_conv.bias": [
+768
+],
+"decoder.upsamples.7.time_conv.weight": [
+768,
+384,
+3,
+1,
+1
+],
+"decoder.upsamples.8.residual.0.gamma": [
+192,
+1,
+1,
+1
+],
+"decoder.upsamples.8.residual.2.bias": [
+192
+],
+"decoder.upsamples.8.residual.2.weight": [
+192,
+192,
+3,
+3,
+3
+],
+"decoder.upsamples.8.residual.3.gamma": [
+192,
+1,
+1,
+1
+],
+"decoder.upsamples.8.residual.6.bias": [
+192
+],
+"decoder.upsamples.8.residual.6.weight": [
+192,
+192,
+3,
+3,
+3
+],
+"decoder.upsamples.9.residual.0.gamma": [
+192,
+1,
+1,
+1
+],
+"decoder.upsamples.9.residual.2.bias": [
+192
+],
+"decoder.upsamples.9.residual.2.weight": [
+192,
+192,
+3,
+3,
+3
+],
+"decoder.upsamples.9.residual.3.gamma": [
+192,
+1,
+1,
+1
+],
+"decoder.upsamples.9.residual.6.bias": [
+192
+],
+"decoder.upsamples.9.residual.6.weight": [
+192,
+192,
+3,
+3,
+3
+],
+"encoder.conv1.bias": [
+96
+],
+"encoder.conv1.weight": [
+96,
+3,
+3,
+3,
+3
+],
+"encoder.downsamples.0.residual.0.gamma": [
+96,
+1,
+1,
+1
+],
+"encoder.downsamples.0.residual.2.bias": [
+96
+],
+"encoder.downsamples.0.residual.2.weight": [
+96,
+96,
+3,
+3,
+3
+],
+"encoder.downsamples.0.residual.3.gamma": [
+96,
+1,
+1,
+1
+],
+"encoder.downsamples.0.residual.6.bias": [
+96
+],
+"encoder.downsamples.0.residual.6.weight": [
+96,
+96,
+3,
+3,
+3
+],
+"encoder.downsamples.1.residual.0.gamma": [
+96,
+1,
+1,
+1
+],
+"encoder.downsamples.1.residual.2.bias": [
+96
+],
+"encoder.downsamples.1.residual.2.weight": [
+96,
+96,
+3,
+3,
+3
+],
+"encoder.downsamples.1.residual.3.gamma": [
+96,
+1,
+1,
+1
+],
+"encoder.downsamples.1.residual.6.bias": [
+96
+],
+"encoder.downsamples.1.residual.6.weight": [
+96,
+96,
+3,
+3,
+3
+],
+"encoder.downsamples.10.residual.0.gamma": [
+384,
+1,
+1,
+1
+],
+"encoder.downsamples.10.residual.2.bias": [
+384
+],
+"encoder.downsamples.10.residual.2.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"encoder.downsamples.10.residual.3.gamma": [
+384,
+1,
+1,
+1
+],
+"encoder.downsamples.10.residual.6.bias": [
+384
+],
+"encoder.downsamples.10.residual.6.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"encoder.downsamples.2.resample.1.bias": [
+96
+],
+"encoder.downsamples.2.resample.1.weight": [
+96,
+96,
+3,
+3
+],
+"encoder.downsamples.3.residual.0.gamma": [
+96,
+1,
+1,
+1
+],
+"encoder.downsamples.3.residual.2.bias": [
+192
+],
+"encoder.downsamples.3.residual.2.weight": [
+192,
+96,
+3,
+3,
+3
+],
+"encoder.downsamples.3.residual.3.gamma": [
+192,
+1,
+1,
+1
+],
+"encoder.downsamples.3.residual.6.bias": [
+192
+],
+"encoder.downsamples.3.residual.6.weight": [
+192,
+192,
+3,
+3,
+3
+],
+"encoder.downsamples.3.shortcut.bias": [
+192
+],
+"encoder.downsamples.3.shortcut.weight": [
+192,
+96,
+1,
+1,
+1
+],
+"encoder.downsamples.4.residual.0.gamma": [
+192,
+1,
+1,
+1
+],
+"encoder.downsamples.4.residual.2.bias": [
+192
+],
+"encoder.downsamples.4.residual.2.weight": [
+192,
+192,
+3,
+3,
+3
+],
+"encoder.downsamples.4.residual.3.gamma": [
+192,
+1,
+1,
+1
+],
+"encoder.downsamples.4.residual.6.bias": [
+192
+],
+"encoder.downsamples.4.residual.6.weight": [
+192,
+192,
+3,
+3,
+3
+],
+"encoder.downsamples.5.resample.1.bias": [
+192
+],
+"encoder.downsamples.5.resample.1.weight": [
+192,
+192,
+3,
+3
+],
+"encoder.downsamples.5.time_conv.bias": [
+192
+],
+"encoder.downsamples.5.time_conv.weight": [
+192,
+192,
+3,
+1,
+1
+],
+"encoder.downsamples.6.residual.0.gamma": [
+192,
+1,
+1,
+1
+],
+"encoder.downsamples.6.residual.2.bias": [
+384
+],
+"encoder.downsamples.6.residual.2.weight": [
+384,
+192,
+3,
+3,
+3
+],
+"encoder.downsamples.6.residual.3.gamma": [
+384,
+1,
+1,
+1
+],
+"encoder.downsamples.6.residual.6.bias": [
+384
+],
+"encoder.downsamples.6.residual.6.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"encoder.downsamples.6.shortcut.bias": [
+384
+],
+"encoder.downsamples.6.shortcut.weight": [
+384,
+192,
+1,
+1,
+1
+],
+"encoder.downsamples.7.residual.0.gamma": [
+384,
+1,
+1,
+1
+],
+"encoder.downsamples.7.residual.2.bias": [
+384
+],
+"encoder.downsamples.7.residual.2.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"encoder.downsamples.7.residual.3.gamma": [
+384,
+1,
+1,
+1
+],
+"encoder.downsamples.7.residual.6.bias": [
+384
+],
+"encoder.downsamples.7.residual.6.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"encoder.downsamples.8.resample.1.bias": [
+384
+],
+"encoder.downsamples.8.resample.1.weight": [
+384,
+384,
+3,
+3
+],
+"encoder.downsamples.8.time_conv.bias": [
+384
+],
+"encoder.downsamples.8.time_conv.weight": [
+384,
+384,
+3,
+1,
+1
+],
+"encoder.downsamples.9.residual.0.gamma": [
+384,
+1,
+1,
+1
+],
+"encoder.downsamples.9.residual.2.bias": [
+384
+],
+"encoder.downsamples.9.residual.2.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"encoder.downsamples.9.residual.3.gamma": [
+384,
+1,
+1,
+1
+],
+"encoder.downsamples.9.residual.6.bias": [
+384
+],
+"encoder.downsamples.9.residual.6.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"encoder.head.0.gamma": [
+384,
+1,
+1,
+1
+],
+"encoder.head.2.bias": [
+32
+],
+"encoder.head.2.weight": [
+32,
+384,
+3,
+3,
+3
+],
+"encoder.middle.0.residual.0.gamma": [
+384,
+1,
+1,
+1
+],
+"encoder.middle.0.residual.2.bias": [
+384
+],
+"encoder.middle.0.residual.2.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"encoder.middle.0.residual.3.gamma": [
+384,
+1,
+1,
+1
+],
+"encoder.middle.0.residual.6.bias": [
+384
+],
+"encoder.middle.0.residual.6.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"encoder.middle.1.norm.gamma": [
+384,
+1,
+1
+],
+"encoder.middle.1.proj.bias": [
+384
+],
+"encoder.middle.1.proj.weight": [
+384,
+384,
+1,
+1
+],
+"encoder.middle.1.to_qkv.bias": [
+1152
+],
+"encoder.middle.1.to_qkv.weight": [
+1152,
+384,
+1,
+1
+],
+"encoder.middle.2.residual.0.gamma": [
+384,
+1,
+1,
+1
+],
+"encoder.middle.2.residual.2.bias": [
+384
+],
+"encoder.middle.2.residual.2.weight": [
+384,
+384,
+3,
+3,
+3
+],
+"encoder.middle.2.residual.3.gamma": [
+384,
+1,
+1,
+1
+],
+"encoder.middle.2.residual.6.bias": [
+384
+],
+"encoder.middle.2.residual.6.weight": [
+384,
+384,
+3,
+3,
+3
+]
+}
+},
+"QuantStack/Wan2.1_T2V_14B_FusionX-GGUF/Wan2.1_T2V_14B_FusionX-Q4_K_M.gguf": {
+"meta": {
+"general.architecture": "wan"
+},
+"shapes": {
+"blocks.0.cross_attn.k.bias": [
+5120
+],
+"blocks.0.cross_attn.k.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.norm_k.weight": [
+5120
+],
+"blocks.0.cross_attn.norm_q.weight": [
+5120
+],
+"blocks.0.cross_attn.o.bias": [
+5120
+],
+"blocks.0.cross_attn.o.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.q.bias": [
+5120
+],
+"blocks.0.cross_attn.q.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.v.bias": [
+5120
+],
+"blocks.0.cross_attn.v.weight": [
+5120,
+5120
+],
+"blocks.0.ffn.0.bias": [
+13824
+],
+"blocks.0.ffn.0.weight": [
+13824,
+5120
+],
+"blocks.0.ffn.2.bias": [
+5120
+],
+"blocks.0.ffn.2.weight": [
+5120,
+13824
+],
+"blocks.0.modulation": [
+1,
+6,
+5120
+],
+"blocks.0.norm3.bias": [
+5120
+],
+"blocks.0.norm3.weight": [
+5120
+],
+"blocks.0.self_attn.k.bias": [
+5120
+],
+"blocks.0.self_attn.k.weight": [
+5120,
+5120
+],
+"blocks.0.self_attn.norm_k.weight": [
+5120
+],
+"blocks.0.self_attn.norm_q.weight": [
+5120
+],
+"blocks.0.self_attn.o.bias": [
+5120
+],
+"blocks.0.self_attn.o.weight": [
+5120,
+5120
+],
+"blocks.0.self_attn.q.bias": [
+5120
+],
+"blocks.0.self_attn.q.weight": [
+5120,
+5120
+],
+"blocks.0.self_attn.v.bias": [
+5120
+],
+"blocks.0.self_attn.v.weight": [
+5120,
+5120
+],
+"head.head.bias": [
+64
+],
+"head.head.weight": [
+64,
+5120
+],
+"head.modulation": [
+1,
+2,
+5120
+],
+"patch_embedding.bias": [
+5120
+],
+"patch_embedding.weight": [
+5120,
+16,
+1,
+2,
+2
+],
+"text_embedding.0.bias": [
+5120
+],
+"text_embedding.0.weight": [
+5120,
+4096
+],
+"text_embedding.2.bias": [
+5120
+],
+"text_embedding.2.weight": [
+5120,
+5120
+],
+"time_embedding.0.bias": [
+5120
+],
+"time_embedding.0.weight": [
+5120,
+256
+],
+"time_embedding.2.bias": [
+5120
+],
+"time_embedding.2.weight": [
+5120,
+5120
+],
+"time_projection.1.bias": [
+30720
+],
+"time_projection.1.weight": [
+30720,
+5120
+]
+}
+},
+"city96/Wan2.1-I2V-14B-480P-gguf/wan2.1-i2v-14b-480p-Q4_K_M.gguf": {
+"meta": {
+"general.architecture": "wan"
+},
+"shapes": {
+"blocks.0.cross_attn.k.bias": [
+5120
+],
+"blocks.0.cross_attn.k.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.k_img.bias": [
+5120
+],
+"blocks.0.cross_attn.k_img.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.norm_k.weight": [
+5120
+],
+"blocks.0.cross_attn.norm_k_img.weight": [
+5120
+],
+"blocks.0.cross_attn.norm_q.weight": [
+5120
+],
+"blocks.0.cross_attn.o.bias": [
+5120
+],
+"blocks.0.cross_attn.o.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.q.bias": [
+5120
+],
+"blocks.0.cross_attn.q.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.v.bias": [
+5120
+],
+"blocks.0.cross_attn.v.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.v_img.bias": [
+5120
+],
+"blocks.0.cross_attn.v_img.weight": [
+5120,
+5120
+],
+"blocks.0.ffn.0.bias": [
+13824
+],
+"blocks.0.ffn.0.weight": [
+13824,
+5120
+],
+"blocks.0.ffn.2.bias": [
+5120
+],
+"blocks.0.ffn.2.weight": [
+5120,
+13824
+],
+"blocks.0.modulation": [
+1,
+6,
+5120
+],
+"blocks.0.norm3.bias": [
+5120
+],
+"blocks.0.norm3.weight": [
+5120
+],
+"blocks.0.self_attn.k.bias": [
+5120
+],
+"blocks.0.self_attn.k.weight": [
+5120,
+5120
+],
+"blocks.0.self_attn.norm_k.weight": [
+5120
+],
+"blocks.0.self_attn.norm_q.weight": [
+5120
+],
+"blocks.0.self_attn.o.bias": [
+5120
+],
+"blocks.0.self_attn.o.weight": [
+5120,
+5120
+],
+"blocks.0.self_attn.q.bias": [
+5120
+],
+"blocks.0.self_attn.q.weight": [
+5120,
+5120
+],
+"blocks.0.self_attn.v.bias": [
+5120
+],
+"blocks.0.self_attn.v.weight": [
+5120,
+5120
+],
+"head.head.bias": [
+64
+],
+"head.head.weight": [
+64,
+5120
+],
+"head.modulation": [
+1,
+2,
+5120
+],
+"img_emb.proj.0.bias": [
+1280
+],
+"img_emb.proj.0.weight": [
+1280
+],
+"img_emb.proj.1.bias": [
+1280
+],
+"img_emb.proj.1.weight": [
+1280,
+1280
+],
+"img_emb.proj.3.bias": [
+5120
+],
+"img_emb.proj.3.weight": [
+5120,
+1280
+],
+"img_emb.proj.4.bias": [
+5120
+],
+"img_emb.proj.4.weight": [
+5120
+],
+"patch_embedding.bias": [
+5120
+],
+"patch_embedding.weight": [
+5120,
+36,
+1,
+2,
+2
+],
+"text_embedding.0.bias": [
+5120
+],
+"text_embedding.0.weight": [
+5120,
+4096
+],
+"text_embedding.2.bias": [
+5120
+],
+"text_embedding.2.weight": [
+5120,
+5120
+],
+"time_embedding.0.bias": [
+5120
+],
+"time_embedding.0.weight": [
+5120,
+256
+],
+"time_embedding.2.bias": [
+5120
+],
+"time_embedding.2.weight": [
+5120,
+5120
+],
+"time_projection.1.bias": [
+30720
+],
+"time_projection.1.weight": [
+30720,
+5120
+]
+}
+},
+"city96/Wan2.1-T2V-14B-gguf/wan2.1-t2v-14b-Q4_K_M.gguf": {
+"meta": {
+"general.architecture": "wan"
+},
+"shapes": {
+"blocks.0.cross_attn.k.bias": [
+5120
+],
+"blocks.0.cross_attn.k.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.norm_k.weight": [
+5120
+],
+"blocks.0.cross_attn.norm_q.weight": [
+5120
+],
+"blocks.0.cross_attn.o.bias": [
+5120
+],
+"blocks.0.cross_attn.o.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.q.bias": [
+5120
+],
+"blocks.0.cross_attn.q.weight": [
+5120,
+5120
+],
+"blocks.0.cross_attn.v.bias": [
+5120
+],
+"blocks.0.cross_attn.v.weight": [
+5120,
+5120
+],
+"blocks.0.ffn.0.bias": [
+13824
+],
+"blocks.0.ffn.0.weight": [
+13824,
+5120
+],
+"blocks.0.ffn.2.bias": [
+5120
+],
+"blocks.0.ffn.2.weight": [
+5120,
+13824
+],
+"blocks.0.modulation": [
+1,
+6,
+5120
+],
+"blocks.0.norm3.bias": [
+5120
+],
+"blocks.0.norm3.weight": [
+5120
+],
+"blocks.0.self_attn.k.bias": [
+5120
+],
+"blocks.0.self_attn.k.weight": [
+5120,
+5120
+],
+"blocks.0.self_attn.norm_k.weight": [
+5120
+],
+"blocks.0.self_attn.norm_q.weight": [
+5120
+],
+"blocks.0.self_attn.o.bias": [
+5120
+],
+"blocks.0.self_attn.o.weight": [
+5120,
+5120
+],
+"blocks.0.self_attn.q.bias": [
+5120
+],
+"blocks.0.self_attn.q.weight": [
+5120,
+5120
+],
+"blocks.0.self_attn.v.bias": [
+5120
+],
+"blocks.0.self_attn.v.weight": [
+5120,
+5120
+],
+"head.head.bias": [
+64
+],
+"head.head.weight": [
+64,
+5120
+],
+"head.modulation": [
+1,
+2,
+5120
+],
+"patch_embedding.bias": [
+5120
+],
+"patch_embedding.weight": [
+5120,
+16,
+1,
+2,
+2
+],
+"text_embedding.0.bias": [
+5120
+],
+"text_embedding.0.weight": [
+5120,
+4096
+],
+"text_embedding.2.bias": [
+5120
+],
+"text_embedding.2.weight": [
+5120,
+5120
+],
+"time_embedding.0.bias": [
+5120
+],
+"time_embedding.0.weight": [
+5120,
+256
+],
+"time_embedding.2.bias": [
+5120
+],
+"time_embedding.2.weight": [
+5120,
+5120
+],
+"time_projection.1.bias": [
+30720
+],
+"time_projection.1.weight": [
+30720,
+5120
+]
+}
+},
+"samuelchristlie/Wan2.1-T2V-1.3B-GGUF/Wan2.1-T2V-1.3B-Q8_0.gguf": {
+"meta": {
+"general.architecture": "wan"
+},
+"shapes": {
+"blocks.0.cross_attn.k.bias": [
+1536
+],
+"blocks.0.cross_attn.k.weight": [
+1536,
+1536
+],
+"blocks.0.cross_attn.norm_k.weight": [
+1536
+],
+"blocks.0.cross_attn.norm_q.weight": [
+1536
+],
+"blocks.0.cross_attn.o.bias": [
+1536
+],
+"blocks.0.cross_attn.o.weight": [
+1536,
+1536
+],
+"blocks.0.cross_attn.q.bias": [
+1536
+],
+"blocks.0.cross_attn.q.weight": [
+1536,
+1536
+],
+"blocks.0.cross_attn.v.bias": [
+1536
+],
+"blocks.0.cross_attn.v.weight": [
+1536,
+1536
+],
+"blocks.0.ffn.0.bias": [
+8960
+],
+"blocks.0.ffn.0.weight": [
+8960,
+1536
+],
+"blocks.0.ffn.2.bias": [
+1536
+],
+"blocks.0.ffn.2.weight": [
+1536,
+8960
+],
+"blocks.0.modulation": [
+1,
+6,
+1536
+],
+"blocks.0.norm3.bias": [
+1536
+],
+"blocks.0.norm3.weight": [
+1536
+],
+"blocks.0.self_attn.k.bias": [
+1536
+],
+"blocks.0.self_attn.k.weight": [
+1536,
+1536
+],
+"blocks.0.self_attn.norm_k.weight": [
+1536
+],
+"blocks.0.self_attn.norm_q.weight": [
+1536
+],
+"blocks.0.self_attn.o.bias": [
+1536
+],
+"blocks.0.self_attn.o.weight": [
+1536,
+1536
+],
+"blocks.0.self_attn.q.bias": [
+1536
+],
+"blocks.0.self_attn.q.weight": [
+1536,
+1536
+],
+"blocks.0.self_attn.v.bias": [
+1536
+],
+"blocks.0.self_attn.v.weight": [
+1536,
+1536
+],
+"head.head.bias": [
+64
+],
+"head.head.weight": [
+64,
+1536
+],
+"head.modulation": [
+1,
+2,
+1536
+],
+"patch_embedding.bias": [
+1536
+],
+"patch_embedding.weight": [
+1536,
+16,
+1,
+2,
+2
+],
+"text_embedding.0.bias": [
+1536
+],
+"text_embedding.0.weight": [
+1536,
+4096
+],
+"text_embedding.2.bias": [
+1536
+],
+"text_embedding.2.weight": [
+1536,
+1536
+],
+"time_embedding.0.bias": [
+1536
+],
+"time_embedding.0.weight": [
+1536,
+256
+],
+"time_embedding.2.bias": [
+1536
+],
+"time_embedding.2.weight": [
+1536,
+1536
+],
+"time_projection.1.bias": [
+9216
+],
+"time_projection.1.weight": [
+9216,
+1536
+]
+}
+}
+}
\ No newline at end of file
diff --git a/studio/backend/tests/test_diffusion_memory.py b/studio/backend/tests/test_diffusion_memory.py
index 125929e1f58..8c2a0d25117 100644
--- a/studio/backend/tests/test_diffusion_memory.py
+++ b/studio/backend/tests/test_diffusion_memory.py
@@ -1447,6 +1447,12 @@ def test_unified_oversize_decision_matrix_for_the_real_video_families():
"ltx-2": {16, 24, 32, 64, 96},
"wan2.2-ti2v-5b": {16, 24, 32},
"wan2.2-t2v-a14b": {16, 24, 32, 64, 96},
+ # 14.7 GB (1.3B DiT + UMT5-XXL + the Wan2.1 VAE): plus overhead it just misses the ~14.4 GiB
+ # budget of a 24 GiB Mac, and fits from 32 GiB up.
+ "wan2.1-t2v-1.3b": {16, 24},
+ # 40.5 GB (one 14B DiT, same encoder + VAE): plus overhead it just misses the ~38.4 GiB budget
+ # at 64 GiB, and fits at 96 GiB and above (unlike the two-expert A14B at 69.1 GB).
+ "wan2.1-t2v-14b": {16, 24, 32, 64},
"hunyuanvideo-1.5": {16, 24, 32},
"hunyuanvideo-1.5-720p": {16, 24, 32},
}
diff --git a/studio/backend/tests/test_llama_cpp_non_chat_gguf_preflight.py b/studio/backend/tests/test_llama_cpp_non_chat_gguf_preflight.py
index 6cc2b584ad9..bed693bbce2 100644
--- a/studio/backend/tests/test_llama_cpp_non_chat_gguf_preflight.py
+++ b/studio/backend/tests/test_llama_cpp_non_chat_gguf_preflight.py
@@ -284,17 +284,15 @@ def test_a_placeholder_architecture_matches_the_picker_verdict(tmp_path):
def test_an_unassemblable_video_arch_promises_no_page(tmp_path):
- # Wan 2.2 A14B is a two-expert MoE the Video backend assembles only from a file naming one
- # expert of a high/low noise pair, and Wan 2.1's repo ids resolve to no family, so
- # _arch_to_task tags an unpaired A14B file and Wan 2.1 image-diffusion-unsupported and the
- # Video picker never lists them. The header says "wan" for all of them, so the refusal has
- # to consult the same family resolution rather than trusting the arch.
+ # The header says "wan" for an unpaired A14B expert and Wan 2.1 I2V alike: the refusal must consult
+ # family resolution, not the arch.
from routes.models import _arch_to_task
for identifier, name, page_named in (
("QuantStack/Wan2.2-TI2V-5B-GGUF", "Wan2.2-TI2V-5B-Q4_K_M.gguf", True),
("QuantStack/Wan2.2-T2V-A14B-GGUF", "Wan2.2-T2V-A14B-HighNoise-Q4_K_M.gguf", True),
("QuantStack/Wan2.2-T2V-A14B-GGUF", "Wan2.2-T2V-A14B-Q4_K_M.gguf", False),
- ("QuantStack/Wan2.1-T2V-14B-GGUF", "Wan2.1-T2V-14B-Q4_K_M.gguf", False),
+ ("QuantStack/Wan2.1-T2V-14B-GGUF", "Wan2.1-T2V-14B-Q4_K_M.gguf", True),
+ ("city96/Wan2.1-I2V-14B-480P-gguf", "wan2.1-i2v-14b-480p-Q4_K_M.gguf", False),
):
_, message = _refusal(tmp_path, arch = "wan", name = name, identifier = identifier)
assert message is not None
diff --git a/studio/backend/tests/test_video_backend.py b/studio/backend/tests/test_video_backend.py
index 914e92cb8f8..449db3362e1 100644
--- a/studio/backend/tests/test_video_backend.py
+++ b/studio/backend/tests/test_video_backend.py
@@ -8859,7 +8859,7 @@ def test_h3_guidance_normalises_to_its_own_default_not_a_neighbours(monkeypatch)
pytest.importorskip("PIL.Image")
calls: list = []
backend = _h3_native_backend(monkeypatch, calls)
- local = "/models/wan/minimax_h3_fl2va-Q4_K_M.gguf"
+ local = "/models/ltx/minimax_h3_fl2va-Q4_K_M.gguf"
backend._state = dataclasses.replace(backend._state, repo_id = local)
# Precondition: the identifier really does resolve to a different family's guidance, so the
diff --git a/studio/backend/tests/test_video_families.py b/studio/backend/tests/test_video_families.py
index 27c12b9ed79..31aaa61ee94 100644
--- a/studio/backend/tests/test_video_families.py
+++ b/studio/backend/tests/test_video_families.py
@@ -183,6 +183,8 @@ def test_supported_names():
"ltx-2",
"wan2.2-ti2v-5b",
"wan2.2-t2v-a14b",
+ "wan2.1-t2v-1.3b",
+ "wan2.1-t2v-14b",
"hunyuanvideo-1.5",
"hunyuanvideo-1.5-720p",
)
diff --git a/studio/backend/tests/test_video_wan21_families.py b/studio/backend/tests/test_video_wan21_families.py
new file mode 100644
index 00000000000..373801de49b
--- /dev/null
+++ b/studio/backend/tests/test_video_wan21_families.py
@@ -0,0 +1,559 @@
+# SPDX-License-Identifier: AGPL-3.0-only
+# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+"""Wan2.1 text-to-video families: detection by repo name, alias, file name and checkpoint header,
+ComfyUI defaults, the refusals for Wan2.1 checkpoints no family serves, and a table proving every
+repo the other video families already claimed keeps its family.
+
+The header fixture holds real tensor names / shapes (first block of each stack only) read from the
+Comfy-Org repackage, city96, samuelchristlie and QuantStack files on the Hub."""
+
+from __future__ import annotations
+
+import json
+import struct
+from pathlib import Path
+
+import pytest
+
+from core.inference import diffusion_content as dc
+from core.inference import video_families as vf
+
+_HEADERS = json.loads(
+ (Path(__file__).parent / "fixtures" / "wan21_checkpoint_headers.json").read_text(
+ encoding = "utf-8"
+ )
+)
+
+_I2V = "image-to-video"
+_VARIANT = "conditioning variant"
+_FASTWAN = "FastWan"
+_ANYFLOW = "NVIDIA AnyFlow checkpoint"
+
+# (identifier, family on this branch). Rows above the marker are what main already detected and must not move; the
+# Wan2.1 rows below it all detected None on main.
+_TABLE = [
+ ("Wan-AI/Wan2.2-TI2V-5B-Diffusers", "wan2.2-ti2v-5b"),
+ ("Wan-AI/Wan2.2-TI2V-5B", "wan2.2-ti2v-5b"),
+ ("unsloth/Wan2.2-TI2V-5B-GGUF", "wan2.2-ti2v-5b"),
+ ("QuantStack/Wan2.2-TI2V-5B-GGUF/Wan2.2-TI2V-5B-Q4_K_M.gguf", "wan2.2-ti2v-5b"),
+ ("wan2.2_ti2v_5B_fp16.safetensors", "wan2.2-ti2v-5b"),
+ ("Wan-AI/Wan2.2-T2V-A14B-Diffusers", "wan2.2-t2v-a14b"),
+ ("Wan-AI/Wan2.2-T2V-A14B", "wan2.2-t2v-a14b"),
+ (
+ "QuantStack/Wan2.2-T2V-A14B-GGUF/HighNoise/Wan2.2-T2V-A14B-HighNoise-Q4_K_M.gguf",
+ "wan2.2-t2v-a14b",
+ ),
+ ("wan2.2_t2v_high_noise_14B_fp8_scaled.safetensors", "wan2.2-t2v-a14b"),
+ ("Wan2_2-T2V-A14B-LOW_fp8_e4m3fn_scaled_KJ.safetensors", "wan2.2-t2v-a14b"),
+ ("Wan-AI/Wan2.2-I2V-A14B-Diffusers", None),
+ ("FastVideo/FastWan2.2-TI2V-5B-FullAttn-Diffusers", None),
+ ("Lightricks/LTX-2", "ltx-2"),
+ ("Lightricks/LTX-2.3", "ltx-2"),
+ ("unsloth/LTX-2.3-GGUF", "ltx-2"),
+ ("hunyuanvideo-community/HunyuanVideo-1.5-Diffusers-480p_t2v", "hunyuanvideo-1.5"),
+ ("hunyuanvideo-community/HunyuanVideo-1.5-Diffusers-720p_t2v", "hunyuanvideo-1.5-720p"),
+ ("hunyuanvideo1.5_720p_t2v_fp16.safetensors", "hunyuanvideo-1.5-720p"),
+ ("tencent/HunyuanVideo", None),
+ ("MiniMaxAI/MiniMax-H3", "minimax-h3"),
+ ("unsloth/MiniMax-H3-GGUF", "minimax-h3"),
+ ("minimax_h3_fl2va_int8_convrot.safetensors", "minimax-h3"),
+ # ---- Wan2.1 (None on main for every row) ----
+ ("Wan-AI/Wan2.1-T2V-1.3B-Diffusers", "wan2.1-t2v-1.3b"),
+ ("Wan-AI/Wan2.1-T2V-1.3B", "wan2.1-t2v-1.3b"),
+ ("Wan-AI/Wan2.1-T2V-14B-Diffusers", "wan2.1-t2v-14b"),
+ ("Wan-AI/Wan2.1-T2V-14B", "wan2.1-t2v-14b"),
+ (
+ "Comfy-Org/Wan_2.1_ComfyUI_repackaged/split_files/diffusion_models/wan2.1_t2v_1.3B_fp16.safetensors",
+ "wan2.1-t2v-1.3b",
+ ),
+ (
+ "Comfy-Org/Wan_2.1_ComfyUI_repackaged/split_files/diffusion_models/wan2.1_t2v_14B_fp8_scaled.safetensors",
+ "wan2.1-t2v-14b",
+ ),
+ ("city96/Wan2.1-T2V-14B-gguf", "wan2.1-t2v-14b"),
+ ("city96/Wan2.1-T2V-14B-gguf/wan2.1-t2v-14b-Q4_K_M.gguf", "wan2.1-t2v-14b"),
+ ("samuelchristlie/Wan2.1-T2V-1.3B-GGUF/Wan2.1-T2V-1.3B-Q8_0.gguf", "wan2.1-t2v-1.3b"),
+ (
+ "QuantStack/Wan2.1_T2V_14B_FusionX-GGUF/Wan2.1_T2V_14B_FusionX-Q4_K_M.gguf",
+ "wan2.1-t2v-14b",
+ ),
+ ("Kijai/WanVideo_comfy/Wan2_1-T2V-1_3B_bf16.safetensors", "wan2.1-t2v-1.3b"),
+ ("someone/wan21-14b-gguf", "wan2.1-t2v-14b"),
+ ("someone/wan21-1.3b-gguf/wan21-1.3b-Q8_0.gguf", "wan2.1-t2v-1.3b"),
+ ("Kijai/WanVideo_comfy/Wan2_1-T2V-14B_fp8_e4m3fn.safetensors", "wan2.1-t2v-14b"),
+ ("Wan-AI/Wan2.1-I2V-14B-480P-Diffusers", None),
+ ("Wan-AI/Wan2.1-I2V-14B-720P-Diffusers", None),
+ ("city96/Wan2.1-I2V-14B-480P-gguf/wan2.1-i2v-14b-480p-Q4_K_M.gguf", None),
+ ("Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers", None),
+ ("Wan-AI/Wan2.1-VACE-14B-diffusers", None),
+ ("QuantStack/Wan2.1_T2V_14B_FusionX_VACE-GGUF", None),
+ ("lym00/Wan2.1_T2V_1.3B_SelfForcing_VACE-GGUF", None),
+ ("TheDenk/wan2.1-t2v-1.3b-controlnet-canny-v1", None),
+ ("FastVideo/FastWan2.1-T2V-1.3B-Diffusers", None),
+ ("FastVideo/FastWan2.1-T2V-14B-Diffusers", None),
+]
+
+
[email protected]("identifier, expected", _TABLE)
+def test_detection_table(identifier, expected):
+ fam = vf.detect_video_family(identifier)
+ assert (fam.name if fam else None) == expected
+
+
+ "identifier, reason",
+ [
+ ("Wan-AI/Wan2.1-I2V-14B-480P-Diffusers", _I2V),
+ ("Wan-AI/Wan2.1-I2V-14B-720P", _I2V),
+ ("wan2.1_i2v_480p_14B_fp8_scaled.safetensors", _I2V),
+ ("city96/Wan2.1-I2V-14B-720P-gguf", _I2V),
+ ("Wan-AI/Wan2.1-FLF2V-14B-720P-diffusers", _I2V),
+ ("Wan-AI/Wan2.1-VACE-1.3B", _VARIANT),
+ ("wan2.1_fun_inp_1.3B_bf16.safetensors", _VARIANT),
+ ("QuantStack/Wan2.1_T2V_14B_FusionX_VACE-GGUF", _VARIANT),
+ ("alibaba-pai/Wan2.1-Fun-1.3B-InP", _VARIANT),
+ ("alibaba-pai/Wan2.1-Fun-V1.1-14B-Control", _VARIANT),
+ ("/models/Wan2.1-VACE-14B-diffusers/", _VARIANT),
+ ("FastVideo/FastWan2.1-T2V-1.3B-Diffusers", _FASTWAN),
+ ("FastVideo/FastWan-QAD-1.3B", _FASTWAN),
+ ],
+)
+def test_unsupported_wan21_checkpoints_name_their_reason(identifier, reason):
+ message = vf.unsupported_video_checkpoint_reason(identifier)
+ assert message is not None and reason in message
+ assert vf.detect_video_family(identifier) is None
+
+
[email protected]("identifier, expected", [row for row in _TABLE if row[1] is not None])
+def test_supported_names_carry_no_refusal(identifier, expected):
+ assert vf.unsupported_video_checkpoint_reason(identifier) is None
+
+
+ "identifier, expected",
+ [
+ ("fun/Wan2.1-T2V-14B-Diffusers", "wan2.1-t2v-14b"),
+ ("someone/Wan2.1-T2V-14B-fun-style", "wan2.1-t2v-14b"),
+ ("/home/fun/models/Wan2.1-T2V-1.3B-Diffusers", "wan2.1-t2v-1.3b"),
+ ("vace-lab/Wan2.1-T2V-1.3B-Diffusers", "wan2.1-t2v-1.3b"),
+ ("i2v-lab/Wan2.1-T2V-14B-Diffusers", "wan2.1-t2v-14b"),
+ ("/home/i2v/models/Wan2.1-T2V-14B-Diffusers", "wan2.1-t2v-14b"),
+ ("/data/flf2v/Wan2.1-T2V-1.3B-Diffusers/", "wan2.1-t2v-1.3b"),
+ ("/home/fastwan/models/Wan2.1-T2V-1.3B-Diffusers", "wan2.1-t2v-1.3b"),
+ ("fastwanderers/Wan2.1-T2V-14B-Diffusers", "wan2.1-t2v-14b"),
+ ],
+)
+def test_conditioning_markers_outside_the_model_name_do_not_refuse(identifier, expected):
+ assert vf.unsupported_video_checkpoint_reason(identifier) is None
+ assert vf.detect_video_family(identifier).name == expected
+
+
+def test_comfyui_template_defaults():
+ for name, presets, steps, shift in (
+ ("wan2.1-t2v-1.3b", ((832, 480), (480, 832)), 30, 8.0),
+ ("wan2.1-t2v-14b", ((832, 480), (1280, 720), (480, 832), (720, 1280)), 20, 5.0),
+ ):
+ fam = vf.detect_video_family("", override = name)
+ assert fam.pipeline_class == "WanPipeline"
+ assert fam.transformer_class == "WanTransformer3DModel"
+ assert not fam.is_moe and fam.transformer2_class is None
+ assert (fam.default_steps, fam.default_guidance) == (steps, 6.0)
+ assert fam.comfy_flow_shift == shift
+ assert (fam.default_num_frames, fam.default_fps, fam.frame_step) == (33, 16, 4)
+ assert fam.resolution_presets == presets and fam.resolution_multiple == 16
+ assert fam.vae_force_fp32 and not fam.cudnn_benchmark
+ vf.validate_video_request_shape(fam, 832, 480, 33)
+ with pytest.raises(vf.VideoShapeError):
+ vf.validate_video_request_shape(fam, 832, 480, 32)
+ assert vf.detect_video_family("", override = "wan2.1-t2v-14b").base_repo == (
+ "Wan-AI/Wan2.1-T2V-14B-Diffusers"
+ )
+ assert vf.detect_video_family("", override = "wan2_1_t2v_1_3b").name == "wan2.1-t2v-1.3b"
+
+
+ "ids, expected",
+ [
+ (("Wan-AI/Wan2.1-T2V-1.3B-Diffusers",), (30, 6.0)),
+ (("wan2.1-t2v-14b-Q4_K_M.gguf", "city96/Wan2.1-T2V-14B-gguf"), (20, 6.0)),
+ (("wan2.1_t2v_14B_fp8_scaled.safetensors",), (20, 6.0)),
+ ((None, "Wan-AI/Wan2.1-T2V-14B-Diffusers"), (20, 6.0)),
+ (("Wan2_1-T2V-1_3B_bf16.safetensors",), (30, 6.0)),
+ (("wan21-t2v-1.3b-Q8_0.gguf",), (30, 6.0)),
+ (("Wan21_T2V_14B_fp8.safetensors",), (20, 6.0)),
+ (("someone/wan21-14b-gguf",), (20, 6.0)),
+ (("Wan2.1_T2V_14B_FusionX-Q4_K_M.gguf", "QuantStack/Wan2.1_T2V_14B_FusionX-GGUF"), (8, 1.0)),
+ (("wan21-lab/HunyuanVideo-1.5-Diffusers-480p_t2v",), (20, 6.0)),
+ (("fusionx-lab/HunyuanVideo-1.5-Diffusers-480p_t2v",), (20, 6.0)),
+ (("/models/FusionX/wan2.1-t2v-14b-Q4_K_M.gguf",), (20, 6.0)),
+ (("/home/wan2.1/models/HunyuanVideo-1.5-Diffusers-480p_t2v",), (20, 6.0)),
+ (("/models/wan2.1-t2v-14b/",), (20, 6.0)),
+ ((None, "Wan-AI/Wan2.2-TI2V-5B-Diffusers"), (20, 5.0)),
+ ((None, "Wan-AI/Wan2.2-T2V-A14B-Diffusers"), (20, 3.5)),
+ (("wan2.2-ti2v-5b-Q4_K_M.gguf",), (20, 5.0)),
+ (("Lightricks/LTX-2",), (40, 4.0)),
+ ],
+)
+def test_generation_defaults(ids, expected):
+ assert vf.default_video_generation_params(*ids) == expected
+
+
+def test_registry_lists_the_new_families_after_the_existing_ones():
+ names = vf.supported_video_family_names()
+ assert names[-2:] == ("hunyuanvideo-1.5", "hunyuanvideo-1.5-720p")
+ assert "wan2.1-t2v-1.3b" in names and "wan2.1-t2v-14b" in names
+ for fam in ("wan2.1-t2v-1.3b", "wan2.1-t2v-14b"):
+ assert dc.family_page(fam) == dc.PAGE_VIDEO
+
+
+def _row(suffix: str) -> dict:
+ return next(v for k, v in _HEADERS.items() if k.endswith(suffix))
+
+
+ "suffix, role, family",
+ [
+ ("wan2.1_t2v_1.3B_bf16.safetensors", dc.ROLE_DIT, "wan2.1-t2v-1.3b"),
+ ("Wan2.1-T2V-1.3B-Q8_0.gguf", dc.ROLE_DIT, "wan2.1-t2v-1.3b"),
+ # The 14B stack has an A14B expert's keys exactly: the header alone keeps main's answer.
+ ("wan2.1_t2v_14B_fp8_scaled.safetensors", dc.ROLE_DIT, "wan2.2-t2v-a14b"),
+ ("wan2.1-t2v-14b-Q4_K_M.gguf", dc.ROLE_DIT, "wan2.2-t2v-a14b"),
+ ("Wan2.1_T2V_14B_FusionX-Q4_K_M.gguf", dc.ROLE_DIT, "wan2.2-t2v-a14b"),
+ ("wan2.1_i2v_480p_14B_fp8_scaled.safetensors", dc.ROLE_DIT, None),
+ ("wan2.1-i2v-14b-480p-Q4_K_M.gguf", dc.ROLE_DIT, None),
+ ("wan2.1_vace_1.3B_fp16.safetensors", dc.ROLE_DIT, None),
+ ("wan2.1_fun_inp_1.3B_bf16.safetensors", dc.ROLE_DIT, None),
+ ("wan_2.1_vae.safetensors", dc.ROLE_VAE, None),
+ ],
+)
+def test_header_classification(suffix, role, family):
+ row = _row(suffix)
+ info = dc.classify_tensors(row["shapes"], row["meta"])
+ assert (info.role, info.family) == (role, family)
+
+
+def _write_safetensors(path: Path, shapes: dict) -> Path:
+ header = {k: {"dtype": "BF16", "shape": v, "data_offsets": [0, 0]} for k, v in shapes.items()}
+ raw = json.dumps(header).encode()
+ path.write_bytes(struct.pack("<Q", len(raw)) + raw)
+ return path
+
+
+def _write_gguf(path: Path, shapes: dict, arch: str) -> Path:
+ def s(text):
+ b = text.encode()
+ return struct.pack("<Q", len(b)) + b
+
+ out = struct.pack("<IIQQ", 0x46554747, 3, len(shapes), 1)
+ out += s("general.architecture") + struct.pack("<I", 8) + s(arch)
+ for name, shape in shapes.items():
+ dims = list(reversed(shape))
+ out += s(name) + struct.pack("<I", len(dims)) + struct.pack(f"<{len(dims)}Q", *dims)
+ out += struct.pack("<IQ", 0, 0)
+ path.write_bytes(out)
+ return path
+
+
+def test_name_picks_wan21_14b_over_the_a14b_header(tmp_path):
+ shapes = _row("wan2.1_t2v_14B_fp8_scaled.safetensors")["shapes"]
+ _write_safetensors(tmp_path / "wan2.1_t2v_14B_fp8_scaled.safetensors", shapes)
+ _write_safetensors(tmp_path / "wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors", shapes)
+ _write_safetensors(tmp_path / "renamed.safetensors", shapes)
+ resolve = lambda f: dc.resolve_family_with_content( # noqa: E731
+ (vf.detect_video_family(f).name if vf.detect_video_family(f) else None),
+ str(tmp_path / f),
+ dc.PAGE_VIDEO,
+ )[0]
+ assert resolve("wan2.1_t2v_14B_fp8_scaled.safetensors") == "wan2.1-t2v-14b"
+ assert resolve("wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors") == "wan2.2-t2v-a14b"
+ assert resolve("renamed.safetensors") == "wan2.2-t2v-a14b"
+
+
+def test_file_name_outranks_the_folder_for_a_14b_header(tmp_path):
+ from core.inference.video import _detect_load_family
+
+ shapes = _row("wan2.1_t2v_14B_fp8_scaled.safetensors")["shapes"]
+ folder = tmp_path / "Wan2.1-T2V-14B"
+ folder.mkdir()
+ _write_safetensors(folder / "Wan2.2-T2V-A14B-HighNoise-fp8.safetensors", shapes)
+ _write_safetensors(folder / "model-fp8.safetensors", shapes)
+ assert _detect_load_family(str(folder), "Wan2.2-T2V-A14B-HighNoise-fp8.safetensors", None).name == (
+ "wan2.2-t2v-a14b"
+ )
+ assert _detect_load_family(str(folder / "Wan2.2-T2V-A14B-HighNoise-fp8.safetensors"), None, None).name == (
+ "wan2.2-t2v-a14b"
+ )
+ assert _detect_load_family(str(folder), "model-fp8.safetensors", None).name == "wan2.1-t2v-14b"
+
+
+ "repo, filename, expected",
+ [
+ ("someorg/Wan2.2-T2V-A14B-GGUF", "Wan2.1-T2V-14B-Q4_K_M.gguf", "wan2.1-t2v-14b"),
+ ("someorg/Wan2.1-T2V-14B-GGUF", "Wan2.2-T2V-A14B-HighNoise-Q4_K_M.gguf", "wan2.2-t2v-a14b"),
+ ("someorg/Wan2.1-T2V-14B-GGUF", "model-Q4_K_M.gguf", "wan2.1-t2v-14b"),
+ ("city96/Wan2.1-T2V-14B-gguf", "wan2.1-t2v-14b-Q4_K_M.gguf", "wan2.1-t2v-14b"),
+ ("org/Wan2.2-TI2V-5B-GGUF", "Wan2.1-T2V-1.3B-Q8_0.gguf", "wan2.1-t2v-1.3b"),
+ ("org/Wan2.1-T2V-1.3B-GGUF", "Wan2.2-TI2V-5B-Q4_K_M.gguf", "wan2.2-ti2v-5b"),
+ ("org/Wan2.2-TI2V-5B-GGUF", "model-Q4_K_M.gguf", "wan2.2-ti2v-5b"),
+ ("org/LTX-2-GGUF", "Wan2.1-T2V-1.3B-Q8_0.gguf", "ltx-2"),
+ ],
+)
+def test_remote_file_name_outranks_the_repo_for_same_layout_wan(repo, filename, expected, monkeypatch):
+ import core.inference.video as video
+
+ monkeypatch.setattr(video, "_picked_gguf_arch", lambda *a, **k: None)
+ assert video._detect_load_family(repo, filename, None).name == expected
+
+
+ "repo, filename, expected",
+ [
+ ("org/Wan2.1-T2V-14B-GGUF", "Wan2.1-T2V-1.3B-Q8_0.gguf", "wan2.1-t2v-1.3b"),
+ ("org/Wan2.1-T2V-1.3B-GGUF", "Wan2.1-T2V-14B-Q4_K_M.gguf", "wan2.1-t2v-14b"),
+ ("org/Wan2.1-T2V-14B-GGUF", "model-Q8_0.gguf", "wan2.1-t2v-14b"),
+ ],
+)
+def test_remote_file_name_naming_the_other_wan21_size_outranks_the_repo(repo, filename, expected, monkeypatch):
+ # No header pass for a remote pick, so the file's own size token decides which base config builds the transformer.
+ import core.inference.video as video
+
+ monkeypatch.setattr(video, "_picked_gguf_arch", lambda *a, **k: None)
+ assert video._detect_load_family(repo, filename, None).name == expected
+
+
+def test_renamed_wan21_1_3b_gguf_resolves_by_header(tmp_path):
+ from core.inference.video import _detect_load_family
+
+ shapes = _row("Wan2.1-T2V-1.3B-Q8_0.gguf")["shapes"]
+ _write_gguf(tmp_path / "model-Q8_0.gguf", shapes, "wan")
+ fam = _detect_load_family(str(tmp_path), "model-Q8_0.gguf", None)
+ assert fam is not None and fam.name == "wan2.1-t2v-1.3b"
+
+
+def test_comfy_folder_hides_refused_names_with_a_t2v_header(tmp_path):
+ # FastWan 1.3B and a renamed variant carry the plain 1.3B T2V layout; the loader refuses them by name, so the
+ # listing must not offer them.
+ from hub.utils import comfy_models
+
+ folder = tmp_path / "diffusion_models"
+ folder.mkdir()
+ shapes = _row("wan2.1_t2v_1.3B_bf16.safetensors")["shapes"]
+ for name in (
+ "wan2.1_t2v_1.3B_bf16.safetensors",
+ "FastWan2.1-T2V-1.3B_bf16.safetensors",
+ "wan2.1_fun_1.3B_bf16.safetensors",
+ ):
+ _write_safetensors(folder / name, shapes)
+ names = {p.name for p in comfy_models.loose_diffusion_checkpoints(folder)}
+ assert names == {"wan2.1_t2v_1.3B_bf16.safetensors"}
+
+
+def test_comfy_folder_hides_variant_names_without_the_family_token(tmp_path):
+ # The header resolves these to Wan2.1 1.3B; the loader then judges the file name with that context and refuses
+ # it, so the listing must too.
+ from hub.utils import comfy_models
+
+ folder = tmp_path / "diffusion_models"
+ folder.mkdir()
+ shapes = _row("wan2.1_t2v_1.3B_bf16.safetensors")["shapes"]
+ for name in (
+ "renamed-1.3b_bf16.safetensors",
+ "fun-inp-1.3b.safetensors",
+ "vace-1.3b.safetensors",
+ "i2v-1.3b.safetensors",
+ ):
+ _write_safetensors(folder / name, shapes)
+ names = {p.name for p in comfy_models.loose_diffusion_checkpoints(folder)}
+ assert names == {"renamed-1.3b_bf16.safetensors"}
+
+
+def test_comfy_folder_lists_wan21_t2v_files(tmp_path):
+ from hub.utils import comfy_models
+
+ folder = tmp_path / "diffusion_models"
+ folder.mkdir()
+ for suffix in (
+ "wan2.1_t2v_1.3B_bf16.safetensors",
+ "wan2.1_t2v_14B_fp8_scaled.safetensors",
+ "wan2.1_i2v_480p_14B_fp8_scaled.safetensors",
+ "wan2.1_vace_1.3B_fp16.safetensors",
+ ):
+ _write_safetensors(folder / suffix, _row(suffix)["shapes"])
+ # An unpaired A14B expert stays hidden, as on main.
+ _write_safetensors(
+ folder / "wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors",
+ _row("wan2.1_t2v_14B_fp8_scaled.safetensors")["shapes"],
+ )
+ names = {p.name for p in comfy_models.loose_diffusion_checkpoints(folder)}
+ assert names == {"wan2.1_t2v_1.3B_bf16.safetensors", "wan2.1_t2v_14B_fp8_scaled.safetensors"}
+
+
+ "hints, video",
+ [
+ (("city96/Wan2.1-T2V-14B-gguf", "wan2.1-t2v-14b-Q4_K_M.gguf"), True),
+ (("samuelchristlie/Wan2.1-T2V-1.3B-GGUF", "Wan2.1-T2V-1.3B-Q8_0.gguf"), True),
+ (("city96/Wan2.1-I2V-14B-480P-gguf", "wan2.1-i2v-14b-480p-Q4_K_M.gguf"), False),
+ (("QuantStack/Wan2.1_T2V_14B_FusionX_VACE-GGUF", "x-Q4_K_M.gguf"), False),
+ (("unsloth/Wan2.2-TI2V-5B-GGUF", "Wan2.2-TI2V-5B-Q4_K_M.gguf"), True),
+ (("QuantStack/Wan2.2-T2V-A14B-GGUF", "Wan2.2-T2V-A14B-HighNoise-Q4_K_M.gguf"), True),
+ ],
+)
+def test_wan_gguf_listing_task(hints, video):
+ from hub.services.models.catalog_classification import _VIDEO_GEN_TASK, _arch_to_task
+ assert (_arch_to_task("wan", hints) == _VIDEO_GEN_TASK) is video
+
+
+def test_load_validation_refuses_with_the_named_reason():
+ from core.inference.video import VideoBackend
+
+ backend = VideoBackend()
+ with pytest.raises(ValueError, match = _I2V):
+ backend.validate_load_request("Wan-AI/Wan2.1-I2V-14B-480P-Diffusers")
+ with pytest.raises(ValueError, match = _I2V):
+ backend.validate_load_request(
+ "city96/Wan2.1-I2V-14B-480P-gguf",
+ gguf_filename = "wan2.1-i2v-14b-480p-Q4_K_M.gguf",
+ model_kind = "gguf",
+ )
+ with pytest.raises(ValueError, match = _FASTWAN):
+ backend.validate_load_request("FastVideo/FastWan2.1-T2V-1.3B-Diffusers")
+ with pytest.raises(ValueError, match = "not a supported text-to-video model"):
+ backend.validate_load_request("someorg/some-image-model")
+
+
+ "repo, kwargs, reason",
+ [
+ (
+ "city96/Wan2.1-T2V-14B-gguf",
+ {"gguf_filename": "wan2.1-i2v-14b-480p-Q4_K_M.gguf", "model_kind": "gguf"},
+ _I2V,
+ ),
+ (
+ "Wan-AI/Wan2.1-T2V-1.3B",
+ {"gguf_filename": "wan2.1_vace_1.3B_fp16.safetensors", "model_kind": "single_file"},
+ _VARIANT,
+ ),
+ (
+ "someorg/Wan2.1-T2V-1.3B-mix",
+ {"gguf_filename": "FastWan2.1-T2V-1.3B-Q8_0.gguf", "model_kind": "gguf"},
+ _FASTWAN,
+ ),
+ ("city96/Wan2.1-T2V-14B-gguf", {"gguf_filename": "i2v-14b-480p-Q4_K_M.gguf", "model_kind": "gguf"}, _I2V),
+ ("someorg/Wan2.1-T2V-1.3B-mix", {"gguf_filename": "vace-1.3b-Q8_0.gguf", "model_kind": "gguf"}, _VARIANT),
+ ("someorg/Wan2.1-T2V-1.3B-mix", {"gguf_filename": "fun-inp-1.3b-Q8_0.gguf", "model_kind": "gguf"}, _VARIANT),
+ ("someorg/Wan2.1-T2V-14B-GGUF", {"gguf_filename": "fun-14b-control-Q4_K_M.gguf", "model_kind": "gguf"}, _VARIANT),
+ ("someorg/Wan2.1-T2V-1.3B-mix", {"gguf_filename": "fun-v1.1-1.3b-inp-Q8_0.gguf", "model_kind": "gguf"}, _VARIANT),
+ ("city96/Wan2.1-T2V-14B-gguf", {"gguf_filename": "fun-style-i2v-14b-Q4_K_M.gguf", "model_kind": "gguf"}, _I2V),
+ ],
+)
+def test_unsupported_file_under_a_t2v_repo_is_refused(repo, kwargs, reason):
+ # The repo id alone resolves a T2V family; the picked file must still be judged.
+ from core.inference.video import VideoBackend
+ assert vf.detect_video_family(repo) is not None
+ with pytest.raises(ValueError, match = reason):
+ VideoBackend().validate_load_request(repo, **kwargs)
+
+
+ "repo, kwargs, family",
+ [
+ ("Wan-AI/Wan2.1-T2V-1.3B-Diffusers", {}, "wan2.1-t2v-1.3b"),
+ ("Wan-AI/Wan2.1-T2V-14B-Diffusers", {}, "wan2.1-t2v-14b"),
+ (
+ "city96/Wan2.1-T2V-14B-gguf",
+ {"gguf_filename": "wan2.1-t2v-14b-Q4_K_M.gguf", "model_kind": "gguf"},
+ "wan2.1-t2v-14b",
+ ),
+ (
+ "Comfy-Org/Wan_2.1_ComfyUI_repackaged",
+ {
+ "gguf_filename": "split_files/diffusion_models/wan2.1_t2v_1.3B_bf16.safetensors",
+ "model_kind": "single_file",
+ },
+ "wan2.1-t2v-1.3b",
+ ),
+ ],
+)
+def test_load_validation_accepts_wan21_t2v(repo, kwargs, family):
+ from core.inference.video import VideoBackend
+ assert VideoBackend().validate_load_request(repo, **kwargs).name == family
+
+
[email protected]("filename", ["fun-style-Q4_K_M.gguf", "funky-Q4_K_M.gguf"])
+def test_short_file_starting_with_fun_is_not_made_a_fun_release(filename):
+ # Spelled in one segment (Wan2.1-T2V-14B-fun-style) this is accepted; the family context must not change that.
+ from core.inference.video import VideoBackend
+ fam = VideoBackend().validate_load_request(
+ "someone/Wan2.1-T2V-14B-GGUF", gguf_filename = filename, model_kind = "gguf"
+ )
+ assert fam.name == "wan2.1-t2v-14b"
+
+
+def test_non_diffusers_upstream_repo_stays_untrusted():
+ from core.inference.video import VideoBackend
+
+ # The original-format repo has no model_index.json; like Wan-AI/Wan2.2-TI2V-5B it is not a pipeline load.
+ with pytest.raises(ValueError, match = "limited to"):
+ VideoBackend().validate_load_request("Wan-AI/Wan2.1-T2V-1.3B")
+
+
+def test_vae_untiled_tables_cover_wan21():
+ from core.inference import video_vae_untiled as vu
+ for fam in ("wan2.1-t2v-1.3b", "wan2.1-t2v-14b"):
+ assert vu._BYTES_PER_LATENT_PIXEL[fam] == vu._BYTES_PER_LATENT_PIXEL["wan2.2-t2v-a14b"]
+ assert vu._OUTPUT_SCALE[fam] == (8, 4)
+
+
+ "identifier",
+ [
+ "nvidia/AnyFlow-Wan2.1-T2V-14B-Diffusers",
+ "nvidia/AnyFlow-Wan2.1-T2V-1.3B-Diffusers",
+ "nvidia/AnyFlow-FAR-Wan2.1-14B-Diffusers",
+ "/models/AnyFlow-Wan2.1-T2V-1.3B-Diffusers/",
+ ],
+)
+def test_anyflow_is_refused(identifier):
+ from core.inference.video import VideoBackend
+ assert _ANYFLOW in vf.unsupported_video_checkpoint_reason(identifier)
+ assert vf.detect_video_family(identifier) is None
+ with pytest.raises(ValueError, match = _ANYFLOW):
+ VideoBackend().validate_load_request(identifier)
+
+
+def test_anyflow_owner_or_folder_does_not_refuse():
+ assert vf.unsupported_video_checkpoint_reason("/home/anyflow/Wan2.1-T2V-14B-Diffusers") is None
+
+
+ "repo, kwargs, reason",
+ [
+ (
+ "city96/Wan2.1-I2V-14B-480P-gguf",
+ {"gguf_filename": "wan2.1-i2v-14b-480p-Q4_K_M.gguf", "model_kind": "gguf"},
+ _I2V,
+ ),
+ ("someorg/opaque-gguf", {"gguf_filename": "i2v-14b-480p-Q4_K_M.gguf", "model_kind": "gguf"}, _I2V),
+ ("FastVideo/FastWan2.1-T2V-1.3B-Diffusers", {}, "FastVideo FastWan checkpoint"),
+ ("nvidia/AnyFlow-Wan2.1-T2V-14B-Diffusers", {}, _ANYFLOW),
+ ],
+)
+def test_family_override_does_not_bypass_the_refusal(repo, kwargs, reason):
+ from core.inference.video import VideoBackend
+ with pytest.raises(ValueError, match = reason):
+ VideoBackend().validate_load_request(repo, family_override = "wan2.1-t2v-14b", **kwargs)
+
+
[email protected]("folder", ["i2v", "vace", "fun"])
+def test_wan21_context_is_added_only_to_the_picked_file(tmp_path, folder):
+ from core.inference.video import VideoBackend
+ (tmp_path / folder).mkdir()
+ _write_gguf(tmp_path / folder / "Wan2.1-T2V-1.3B-Q8_0.gguf", _row("Wan2.1-T2V-1.3B-Q8_0.gguf")["shapes"], "wan")
+ fam = VideoBackend().validate_load_request(
+ str(tmp_path / folder), gguf_filename = "Wan2.1-T2V-1.3B-Q8_0.gguf", model_kind = "gguf"
+ )
+ assert fam.name == "wan2.1-t2v-1.3b"
diff --git a/studio/frontend/src/features/model-picker/components/model-selector/family-override.ts b/studio/frontend/src/features/model-picker/components/model-selector/family-override.ts
index 007624e06b5..19b53adc610 100644
--- a/studio/frontend/src/features/model-picker/components/model-selector/family-override.ts
+++ b/studio/frontend/src/features/model-picker/components/model-selector/family-override.ts
@@ -25,6 +25,8 @@ const LABELS: Readonly<Record<string, string>> = {
"ltx-2": "LTX-2",
"wan2.2-ti2v-5b": "Wan2.2 TI2V 5B",
"wan2.2-t2v-a14b": "Wan2.2 T2V A14B",
+ "wan2.1-t2v-1.3b": "Wan2.1 T2V 1.3B",
+ "wan2.1-t2v-14b": "Wan2.1 T2V 14B",
"hunyuanvideo-1.5": "HunyuanVideo 1.5 (480p)",
"hunyuanvideo-1.5-720p": "HunyuanVideo 1.5 (720p)",
};
diff --git a/studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts b/studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts
index edcf391fa70..1f19347b64a 100644
--- a/studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts
+++ b/studio/frontend/src/features/model-picker/components/model-selector/model-catalog.ts
@@ -564,6 +564,20 @@ export const VIDEO_CATALOG: CatalogGroup[] = [
scope: "video",
artifacts: [bf16Pipeline("Wan-AI/Wan2.2-T2V-A14B-Diffusers", 114, { totalParams: 14288491584 })],
},
+ {
+ canonicalId: "Wan-AI/Wan2.1-T2V-1.3B",
+ displayName: "Wan 2.1 T2V 1.3B",
+ description: "Text-to-video 480p, small",
+ scope: "video",
+ artifacts: [bf16Pipeline("Wan-AI/Wan2.1-T2V-1.3B-Diffusers", 15, { totalParams: 1418996800 })],
+ },
+ {
+ canonicalId: "Wan-AI/Wan2.1-T2V-14B",
+ displayName: "Wan 2.1 T2V 14B",
+ description: "Text-to-video 480p / 720p",
+ scope: "video",
+ artifacts: [bf16Pipeline("Wan-AI/Wan2.1-T2V-14B-Diffusers", 41, { totalParams: 14288491584 })],
+ },
{
canonicalId: "hunyuanvideo-community/HunyuanVideo-1.5",
displayName: "HunyuanVideo 1.5",
diff --git a/studio/frontend/src/features/video/video-page.tsx b/studio/frontend/src/features/video/video-page.tsx
index 415de8f9095..865f61a8b29 100644
--- a/studio/frontend/src/features/video/video-page.tsx
+++ b/studio/frontend/src/features/video/video-page.tsx
@@ -245,26 +245,43 @@ function useVideoModels(
);
}
-// Per-model generation defaults (steps + guidance), matched by repo-id substring, most specific first.
+// Per-model generation defaults (steps + guidance), matched by repo-id substring, most specific first. The id is
+// normalized like the backend's family matcher (separator runs become "-", plus a trailing "-"), so "Wan2_1-T2V-14B"
+// and "wan2.1_t2v_14b" hit the same row.
const DEFAULT_GEN = { steps: 8, guidance: 1 };
const MODEL_DEFAULTS: Array<{ match: string; steps: number; guidance: number }> = [
{ match: "minimax-h3", steps: 30, guidance: 1 },
- { match: "minimax_h3", steps: 30, guidance: 1 },
// "distilled" before the generic "ltx": the distilled model runs at 8 steps, guidance 1.
{ match: "distilled", steps: 8, guidance: 1 },
+ // Wan2.1 14B FusionX merge (CausVid / AccVideo distilled): its card asks for CFG 1 and 8-10 steps.
+ { match: "fusionx", steps: 8, guidance: 1 },
{ match: "ltx", steps: 40, guidance: 4 },
// T2V-A14B before the generic Wan key.
{ match: "a14b", steps: 20, guidance: 3.5 },
- { match: "wan2.2-14b", steps: 20, guidance: 3.5 },
+ { match: "wan2-2-14b", steps: 20, guidance: 3.5 },
+ // Before the generic Wan key; the 14B reference workflow runs 20 steps, the 1.3B 30.
+ { match: "wan2-1-t2v-14b-", steps: 20, guidance: 6 },
+ { match: "wan2-1-14b-", steps: 20, guidance: 6 },
+ { match: "wan21-t2v-14b-", steps: 20, guidance: 6 },
+ { match: "wan21-14b-", steps: 20, guidance: 6 },
+ { match: "wan2-1-", steps: 30, guidance: 6 },
+ { match: "wan21-", steps: 30, guidance: 6 },
// The backend supplies the fps per family.
{ match: "wan", steps: 20, guidance: 5 },
{ match: "hunyuanvideo", steps: 20, guidance: 6 },
];
function defaultsFor(repoId: string): { steps: number; guidance: number } {
- const id = repoId.toLowerCase();
- return MODEL_DEFAULTS.find((d) => id.includes(d.match)) ?? DEFAULT_GEN;
+ const fold = (text: string) => `${text.toLowerCase().replace(/[-_.\s]+/g, "-")}-`;
+ const id = fold(repoId);
+ // The Wan and FusionX rows count only in the model / file name, as on the backend.
+ const name = fold(repoId.replace(/[\\/]+$/, "").split(/[\\/]/).pop() ?? "");
+ return (
+ MODEL_DEFAULTS.find((d) =>
+ (d.match.startsWith("wan") || d.match === "fusionx" ? name : id).includes(d.match),
+ ) ?? DEFAULT_GEN
+ );
}
function defaultsKeyFor(repoId: string, familyOverride: string): string {
diff --git a/studio/frontend/tests/dense-quant-prequant-routing.test.ts b/studio/frontend/tests/dense-quant-prequant-routing.test.ts
index 178462a2670..1a3f1f8b77e 100644
--- a/studio/frontend/tests/dense-quant-prequant-routing.test.ts
+++ b/studio/frontend/tests/dense-quant-prequant-routing.test.ts
@@ -351,3 +351,13 @@ test("Qwen-Image-2.1 routes every card as on main", () => {
assert.equal(pick(36), "unsloth/Qwen-Image-2.1-GGUF");
assert.equal(pick(39.5), QWEN_21);
});
+
+test("the Wan2.1 rows are sized by the bf16 weights the backend keeps resident", () => {
+ // Backend bf16_components_gb: 14B 28.6 + 11.4 + 0.5, 1.3B 2.8 + 11.4 + 0.5, not the repo download.
+ const WAN21_14B = "Wan-AI/Wan2.1-T2V-14B-Diffusers";
+ const WAN21_1_3B = "Wan-AI/Wan2.1-T2V-1.3B-Diffusers";
+ assert.equal(curatedArtifactFitsDevice(WAN21_14B, VIDEO_CATALOG, onCard(80)), true);
+ assert.equal(curatedArtifactFitsDevice(WAN21_14B, VIDEO_CATALOG, onCard(48)), false);
+ assert.equal(curatedArtifactFitsDevice(WAN21_1_3B, VIDEO_CATALOG, onCard(24)), true);
+ assert.equal(curatedArtifactFitsDevice(WAN21_1_3B, VIDEO_CATALOG, onCard(16)), false);
+});
diff --git a/studio/frontend/tests/video-model-defaults.test.ts b/studio/frontend/tests/video-model-defaults.test.ts
new file mode 100644
index 00000000000..d12d509db1a
--- /dev/null
+++ b/studio/frontend/tests/video-model-defaults.test.ts
@@ -0,0 +1,84 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+// The Video page seeds steps and guidance from a repo-id substring table before the backend status
+// answers. The table and its matcher live inside the page component, so this lifts both out of the
+// source and runs them on real checkpoint names, including separator spellings the backend's family
+// matcher already folds together.
+
+import assert from "node:assert/strict";
+import test from "node:test";
+
+import { readText } from "./helpers/kit.ts";
+
+const VIDEO = readText("../src/features/video/video-page.tsx");
+
+function sliceFrom(start: string, end: string): string {
+ const from = VIDEO.indexOf(start);
+ assert.ok(from >= 0, `${start} must exist`);
+ const to = VIDEO.indexOf(end, from);
+ assert.ok(to > from, `${end} must follow ${start}`);
+ return VIDEO.slice(from, to);
+}
+
+const defaultsFor = (() => {
+ const source = [
+ sliceFrom("const DEFAULT_GEN", "\n"),
+ sliceFrom("const MODEL_DEFAULTS", "];") + "];",
+ sliceFrom("function defaultsFor", "\n}\n") + "\n}",
+ ]
+ .join("\n")
+ .replace(/: Array<\{[^}]*\}>/, "")
+ .replace(/\(repoId: string\): \{[^}]*\}/, "(repoId)")
+ .replace(/\((\w+): string\)/g, "($1)");
+ const pick = new Function(`${source}\nreturn defaultsFor;`)() as (
+ repoId: string,
+ ) => { steps: number; guidance: number };
+ return (repoId: string) => {
+ const { steps, guidance } = pick(repoId);
+ return { steps, guidance };
+ };
+})();
+
+test("every Wan2.1 14B spelling seeds the 14B recipe, every 1.3B spelling the 1.3B one", () => {
+ for (const id of [
+ "Wan-AI/Wan2.1-T2V-14B-Diffusers",
+ "Kijai/WanVideo_comfy/Wan2_1-T2V-14B_fp8_e4m3fn.safetensors",
+ "wan2.1_t2v_14B_bf16.safetensors",
+ "city96/Wan2.1-T2V-14B-gguf/wan2.1-t2v-14b-Q4_K_M.gguf",
+ "Wan21_T2V_14B_fp8.safetensors",
+ ]) {
+ assert.deepEqual(defaultsFor(id), { steps: 20, guidance: 6 }, id);
+ }
+ for (const id of [
+ "Wan-AI/Wan2.1-T2V-1.3B-Diffusers",
+ "wan2.1_t2v_1.3B_fp16.safetensors",
+ "Kijai/WanVideo_comfy/Wan2_1-T2V-1_3B_fp8_e4m3fn.safetensors",
+ "wan21-t2v-1.3b-Q8_0.gguf",
+ ]) {
+ assert.deepEqual(defaultsFor(id), { steps: 30, guidance: 6 }, id);
+ }
+});
+
+test("the other families keep their recipes", () => {
+ const cases: Array<[string, number, number]> = [
+ ["Wan-AI/Wan2.2-T2V-A14B-Diffusers", 20, 3.5],
+ ["Wan-AI/Wan2.2-TI2V-5B-Diffusers", 20, 5],
+ ["MiniMaxAI/MiniMax-H3", 30, 1],
+ ["MiniMaxAI/MiniMax_H3", 30, 1],
+ ["Lightricks/LTX-2.3", 40, 4],
+ ["Lightricks/LTX-2.3/ltx-2.3-22b-distilled.safetensors", 8, 1],
+ ["hunyuanvideo-community/HunyuanVideo-1.5-Diffusers-480p_t2v", 20, 6],
+ ["someone/unknown-model", 8, 1],
+ ["wan21-lab/HunyuanVideo-1.5-Diffusers-480p_t2v", 20, 6],
+ ["/home/wan2.1/models/HunyuanVideo-1.5-Diffusers-480p_t2v", 20, 6],
+ ["wan-lab/LTX-2.3", 40, 4],
+ ["QuantStack/Wan2.1_T2V_14B_FusionX-GGUF/Wan2.1_T2V_14B_FusionX-Q4_K_M.gguf", 8, 1],
+ ["fusionx-lab/HunyuanVideo-1.5-Diffusers-480p_t2v", 20, 6],
+ ["/models/FusionX/wan2.1-t2v-14b-Q4_K_M.gguf", 20, 6],
+ ["/home/user/ComfyUI/models/diffusion_models/wan2.2_ti2v_5B_fp16.safetensors", 20, 5],
+ ];
+ for (const [id, steps, guidance] of cases) {
+ assert.deepEqual(defaultsFor(id), { steps, guidance }, id);
+ }
+});