Downloads · 30 days
0
p1atdev/animagine-xl-3.1-fp8
animagine-xl-3.1-fp8 is a machine learning model from p1atdev. 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.
Downloads · 30 days
0
Access
Public
Updated Aug 28, 2024
Repo size
3.5 GB
Likes
1
Public
Click a slice to open those files.
.safetensors3.5 GB · 100%
From the Hugging Face model README
import torch
from huggingface_hub import cached_download
from safetensors.torch import load_file, save_file
ckpt_path = cached_download(
"https://huggingface.co/cagliostrolab/animagine-xl-3.1/resolve/main/animagine-xl-3.1.safetensors",
)
state_dict = load_file(ckpt_path)
for key, value in state_dict.items():
state_dict[key] = value.to(torch.float8_e4m3fn)
save_file(state_dict, "./animagine-xl-3.1.float8_e4m3fn.safetensors")