Downloads · 30 days
11
27% of all-time downloads
enoky/StereoCrafter2-FP8
StereoCrafter2-FP8 is a machine learning model from enoky. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as other.
FP8 (e4m3) weight-only quantization of TencentARC/StereoCrafter2 (the Wan2.1-VACE-14B-based stereo video inpainting transformer), produced with torchao Float8WeightOnlyConfig.
Downloads · 30 days
11
27% of all-time downloads
All-time downloads
41
Public
Repo size
17.4 GB
Likes
0
Public
Click a slice to open those files.
.pt17.4 GB · 100%
From the Hugging Face model README
FP8 (e4m3) weight-only quantization of
TencentARC/StereoCrafter2
(the Wan2.1-VACE-14B-based stereo video inpainting transformer), produced with
torchao Float8WeightOnlyConfig.
torch >= 2.10, diffusers 0.36.x, acceleratetorchao >= 0.13, < 0.16 — the upper bound matters: torchao ≥ 0.16
removes module paths that diffusers 0.36 imports, which breaks diffusers
model loading entirely while torchao is installed.Note: the checkpoint is a pickled torch state dict containing torchao tensor subclasses (safetensors cannot represent them), so it must be loaded with
weights_only=False. Only load checkpoints from sources you trust.
import torch
from accelerate import init_empty_weights
from diffusers import WanVACETransformer3DModel
from huggingface_hub import hf_hub_download, snapshot_download
repo = snapshot_download("enoky/StereoCrafter2-FP8")
cfg = WanVACETransformer3DModel.load_config(repo)
with init_empty_weights():
transformer = WanVACETransformer3DModel.from_config(cfg)
sd = torch.load(f"{repo}/diffusion_pytorch_model_fp8.pt", map_location="cpu", weights_only=False)
transformer.load_state_dict(sd, assign=True) # peak RAM ~= checkpoint size
transformer.eval().requires_grad_(False).to("cuda")
The meta-device init + assign=True load keeps peak system RAM at roughly the
checkpoint size (~17 GB) — the bf16 model is never materialized.
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.