Run this model with HF Jobs

Run wavespeed/Wan2.1-I2V-14B-480P-Diffusers-fp16 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/wavespeed/Wan2.1-I2V-14B-480P-Diffusers-fp16. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/wavespeed/Wan2.1-I2V-14B-480P-Diffusers-fp16 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
from diffusers.utils import load_image, export_to_video

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("wavespeed/Wan2.1-I2V-14B-480P-Diffusers-fp16", dtype=torch.bfloat16, device_map="cuda")
pipe.to("cuda")

prompt = "A man with short gray hair plays a red electric guitar."
image = load_image(
    "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png"
)

output = pipe(image=image, prompt=prompt).frames[0]
export_to_video(output, "output.mp4")

Wan2.1-I2V-14B-480P-Diffusers-fp16

An fp16 cast of Wan2.1-I2V-14B-480P-Diffusers.

What was changed

Upstream ships the transformer in fp32. Here every component โ€” transformer, UMT5 text encoder, CLIP image encoder and VAE โ€” is stored in fp16. The transformer goes from ~65.6 GB to ~32.8 GB. Tensor names and shapes are unchanged and nothing is quantized; this is a straight dtype cast.

Usage

import torch
from diffusers import WanImageToVideoPipeline
from diffusers.utils import load_image

pipe = WanImageToVideoPipeline.from_pretrained(
    "wavespeed/Wan2.1-I2V-14B-480P-Diffusers-fp16", torch_dtype=torch.float16
).to("cuda")

frames = pipe(
    image=load_image("still.png"),
    prompt="the camera drifts slowly to the left",
    height=480, width=832, num_frames=81,
).frames[0]

License

Apache-2.0, inherited from Wan2.1.

Downloads last month
51
Safetensors
Model size
16B params
Tensor type
F32
ยท
F16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for wavespeed/Wan2.1-I2V-14B-480P-Diffusers-fp16

Quantized
(1)
this model