Downloads · 30 days
13
10% of all-time downloads
codemichaeld/Wan1.3b_fp8
Wan1.3b_fp8 is a machine learning model from codemichaeld. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for diffusers.
- Source: https://huggingface.co/Kijai/WanVideocomfy - File: Wan21-T2V-13Bfp32.safetensors - FP8 Format: E5M2 - Delta File: Wan21-T2V-13Bfp32-fp8-delta.safetensors
Downloads · 30 days
13
10% of all-time downloads
All-time downloads
136
Public
Repo size
7.1 GB
Likes
0
Public
Click a slice to open those files.
.safetensors7.1 GB · 100%
From the Hugging Face model README
https://huggingface.co/Kijai/WanVideo_comfyWan2_1-T2V-1_3B_fp32.safetensorsE5M2Wan2_1-T2V-1_3B_fp32-fp8-delta.safetensorsTo restore near-original precision:
import torch
from safetensors.torch import load_file
fp8_state = load_file("Wan2_1-T2V-1_3B_fp32-fp8-e5m2.safetensors")
delta_state = load_file("Wan2_1-T2V-1_3B_fp32-fp8-delta.safetensors")
restored_state = {}
for key in fp8_state:
if f"delta.{key}" in delta_state:
fp8_weight = fp8_state[key].to(torch.float32)
delta = delta_state[f"delta.{key}"]
restored_state[key] = fp8_weight + delta
else:
restored_state[key] = fp8_state[key].to(torch.float32)
Requires PyTorch ≥ 2.1 for FP8 support.