Downloads · 30 days
13
11% of all-time downloads
AsadIsmail/Wan2.1-T2V-1.3B-ternary
Wan2.1-T2V-1.3B-ternary is a text-to-video model from AsadIsmail. Use it when you need video from a text prompt. It is set up for diffusers. The card lists the license as apache-2.0.
Storage format note. This checkpoint is stored dequantized to FP16. Loaded with stock diffusers it runs like the base model — the memory/compute benefits of ternary are not realized in this format. It demonstrates tha…
Downloads · 30 days
13
11% of all-time downloads
All-time downloads
114
Public
Parameters
1.4B
25.8 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors25.8 GB · 100%
How the weights are stored.
F161.4B · 100%
From the Hugging Face model README
Storage format note. This checkpoint is stored dequantized to FP16. Loaded with stock
diffusersit runs like the base model — the memory/compute benefits of ternary are not realized in this format. It demonstrates that ternary PTQ preserves generation quality. The packed 2-bit ternary runtime (ternary-quant) currently targets transformers LLMs/VLMs, not diffusers video pipelines, so there is no accelerated ternary inference path for this model yet. Packed weights and a diffusers runtime are on the roadmap.
First publicly available ternary-quantized Wan video model on HuggingFace.
Ternary-quantized version of Wan-AI/Wan2.1-T2V-1.3B-Diffusers — Alibaba's text-to-video DiT model. Produced with ternary-quant applied to the WanTransformer3DModel.
| Property | Value |
|---|---|
| Base Model | Wan-AI/Wan2.1-T2V-1.3B-Diffusers |
| Architecture | WanTransformer3DModel (DiT) |
| Transformer Params | 1.42B |
| Quantization | tritplane3 (306 linear layers) |
| Text Encoder (UMT5-XXL) | FP16 (preserved) |
| VAE (WanVAE) | FP16 (preserved) |
| License | Apache 2.0 |
| Method | Transformer Size |
|---|---|
| FP16 (original) | 2.84 GB |
| Ternary tritplane3 (theoretical packed) | ~1.42 GB |
| In this repo (dequantized FP16) | 2.7 GB |
Weights have ternary precision but stored as FP16 for drop-in diffusers compatibility.
import torch
from diffusers import WanPipeline
from diffusers.utils import export_to_video
pipe = WanPipeline.from_pretrained(
"AsadIsmail/Wan2.1-T2V-1.3B-ternary",
torch_dtype=torch.bfloat16,
)
pipe.to("mps") # or "cuda"
output = pipe(
prompt="a cat walking on green grass",
num_frames=81,
num_inference_steps=30,
).frames[0]
export_to_video(output, "output.mp4", fps=16)
Part of ternary-models.