Downloads · 30 days
0
SanDiegoDude/daVinci-MagiHuman-FP8
daVinci-MagiHuman-FP8 is a text-to-video model from SanDiegoDude. Use it when you need video from a text prompt. It is set up for safetensors. The card lists the license as apache-2.0.
Static FP8 (float8e4m3fn) quantized weights for GAIR/daVinci-MagiHuman, a state-of-the-art audio-video generation model.
Downloads · 30 days
0
Access
Public
Updated Mar 25, 2026
Repo size
61.3 GB
Likes
15
Public
Click a slice to open those files.
.safetensors61.3 GB · 100%
From the Hugging Face model README
Static FP8 (float8_e4m3fn) quantized weights for GAIR/daVinci-MagiHuman, a state-of-the-art audio-video generation model.
| Directory | Description | Original Size | FP8 Size | Compression |
|---|---|---|---|---|
distill_fp8/ | Distilled DiT model (8-step, no CFG) | 61.2 GB | 15.3 GB | 4.0x |
base_fp8/ | Full base DiT model (32-step, CFG=2) | 30.6 GB | 15.3 GB | 2.0x |
540p_sr_fp8/ | 540p super-resolution DiT | 61.2 GB | 15.3 GB | 4.0x |
1080p_sr_fp8/ | 1080p super-resolution DiT | 61.2 GB | 15.3 GB | 4.0x |
Total savings: ~214 GB → ~61 GB on disk
Note: The distill and SR models store weights in FP32 on disk (hence the 4x compression), while the base model stores in BF16 (hence 2x). All have the same ~15.3 GB FP8 size and identical VRAM usage.
torch.float8_e4m3fn for large linear layer weights (≥2D, ≥1M elements)torch.float32 (one scalar per weight tensor, stored as weight.__fp8_scale)torch._scaled_mm for FP8 tensor-core matmulsBaseLinear and NativeMoELinear weight matrices)With FP8 weights, the DiT model loads at ~14.3 GB (down from ~28.5 GB in BF16 / ~76.4 GB as reported from the FP32-on-disk originals). Combined with the text encoder, VAEs, and audio model, total VRAM is approximately:
Tested on NVIDIA GB10 (Blackwell) with PyTorch 2.9.0+cu128:
torch._scaled_mm)These FP8 weights are designed to be used with the modified inference code from daVinci-MagiHuman that includes FP8 BaseLinear support. The key changes needed in the inference code:
BaseLinear / NativeMoELinear in dit_module.py: Add FP8 detection (weight.dtype == float8_e4m3fn) and route through torch._scaled_mm with dynamic input quantization. Weight dimensions are padded to multiples of 16 at runtime for _scaled_mm compatibility.load_model_checkpoint.py: Remap key.__fp8_scale → module.weight_scale buffers, and re-install FP8 weight parameters after load_state_dict (which auto-casts to BF16)# Download just the distilled model (recommended for faster generation)
huggingface-cli download SanDiegoDude/daVinci-MagiHuman-FP8 \
--include "distill_fp8/*" \
--local-dir /path/to/models/daVinci-MagiHuman
# Download the full base model (higher quality, 32 steps)
huggingface-cli download SanDiegoDude/daVinci-MagiHuman-FP8 \
--include "base_fp8/*" \
--local-dir /path/to/models/daVinci-MagiHuman
# Download everything
huggingface-cli download SanDiegoDude/daVinci-MagiHuman-FP8 \
--local-dir /path/to/models/daVinci-MagiHuman
You still need the following from the original repos:
GAIR/daVinci-MagiHuman (turbo_vae/)Wan-AI/Wan2.2-TI2V-5B (Wan2.2_VAE.pth)stabilityai/stable-audio-open-1.0google/t5gemma-9b-9b-ul2The FP8 models were created using convert_fp8.py:
# Convert the distilled model
python convert_fp8.py \
--input /path/to/daVinci-MagiHuman/distill \
--output /path/to/daVinci-MagiHuman/distill_fp8
# Convert the full base model
python convert_fp8.py \
--input /path/to/daVinci-MagiHuman/base \
--output /path/to/daVinci-MagiHuman/base_fp8
The script is available in the daVinci-MagiHuman repository.
Apache 2.0 (same as the original model)