FP8 (e4m3)
weight-only quantization of
TencentARC/StereoCrafter2
(the Wan2.1-VACE-14B-based stereo video inpainting transformer), produced with
torchao Float8WeightOnlyConfig.
1import torch
2from accelerate import init_empty_weights
3from diffusers import WanVACETransformer3DModel
4from huggingface_hub import hf_hub_download, snapshot_download
5
6repo = snapshot_download("enoky/StereoCrafter2-FP8")
7cfg = WanVACETransformer3DModel.load_config(repo)
8with init_empty_weights():
9 transformer = WanVACETransformer3DModel.from_config(cfg)
10
11sd = torch.load(f"{repo}/diffusion_pytorch_model_fp8.pt", map_location="cpu", weights_only=False)
12transformer.load_state_dict(sd, assign=True) # peak RAM ~= checkpoint size
13transformer.eval().requires_grad_(False).to("cuda")
Ready-made integration: the
enoky/StereoCrafter
GUI suite loads this checkpoint via the
"FP8 resident" offload mode in its
V2 inpainting GUI (place this folder at
weights/StereoCrafter2-FP8). The
checkpoint was produced by that repo's
export_fp8_transformer.py.
This is a derivative of TencentARC/StereoCrafter2 and is distributed under the
same license (see
LICENSE):
academic, research and education
purposes only — no commercial or production use. The VACE/Wan2.1 base
components remain under Apache 2.0 as described in the upstream license.
All credit for the model goes to the StereoCrafter2 authors at ARC Lab,
Tencent PCG. This repository only re-packages their released weights in a
lower-precision format.