vllm_omni.diffusion.models.sana_wm.config ¶
Config for the SANA-WM Stage-1 transformer.
Loaded from the standard diffusers transformer/config.json (a flat dict keyed by the dataclass field names). The bespoke config.yaml release format is handled once, offline, at checkpoint-conversion time — the runtime only ever sees the converted, diffusers-standard config.
SanaWmConfig dataclass ¶
SANA-WM Stage-1 architecture and runtime config.
Defaults mirror the first public HF release. from_json (reading transformer/config.json) is the normal construction path.
architecture_name class-attribute instance-attribute ¶
architecture_name: str | None = (
"SanaMSVideoCamCtrl_1600M_P1_D20"
)
chunk_plucker_post_attn_blocks class-attribute instance-attribute ¶
chunk_plucker_post_attn_blocks: int = 20
use_chunk_plucker_post_attn class-attribute instance-attribute ¶
use_chunk_plucker_post_attn: bool = True
from_dict classmethod ¶
from_dict(data: Mapping[str, Any]) -> SanaWmConfig
Build from a flat mapping of field name -> value.
Unknown keys (e.g. the diffusers _class_name marker or the latent_channels / prompt_channels constructor kwargs) are ignored. patch_size is coerced from a JSON list back to a tuple.