Anima-Turbo-v1.1 W8A8 (SVDQuant)

Language: English | 中文

INT8 weight-and-activation quantization of the Anima-Turbo transformer, for inference with Nunchaku. Text encoders and the VAE stay in BF16.

Model

Anima is a 2B text-to-image model from CircleStone Labs and Comfy Org, aimed at anime and illustration. Anima-Turbo is the distilled variant. The upstream card recommends CFG 1 and 8–12 steps.

The checkpoint quantizes 280 transformer linears to W8A8: signed INT8 weights with one scale per output channel, and dynamic per-row INT8 activations. Rank is 0, so there is no low-rank branch. Embeddings, AdaLN, and proj_out stay in BF16.

Samples

Same prompt, 1024×1024, CFG 1. Left: BF16 transformer. Right: W8A8.

masterpiece, best quality, a cat is holding a sign that says: CreatePPTX.com

BF16 W8A8
BF16 W8A8

Composition and linework stay close. Anima is already weak at long text; both images miss the exact wording on the sign.

Performance

BF16 pipeline vs this W8A8 transformer. 1024×1024, CFG 1, 8 steps, bfloat16. Steady time is one run after a warmup.

GPU BF16 W8A8 Speedup
RTX 3090 3.329s 2.451s 1.36×
RTX 4090 1.644s 1.310s 1.25×
RTX 5090 1.145s 0.932s 1.23×

Cold start is in the same range: 1.31× on the 3090, 1.22× on the 4090, 1.17× on the 5090. The first load of the INT8 file is slightly slower, because 280 linears are packed before inference.

GPU memory does not depend on which of these cards ran the test:

BF16 W8A8 Saved
Allocated after load 5.30 GiB 3.64 GiB 1.66 GiB (31%)
Peak allocated during inference 9.44 GiB 7.82 GiB 1.63 GiB (17%)

nvidia-smi process memory after load drops by about 1.6 GiB (roughly 5.6–5.8 GiB → 4.0–4.3 GiB). The extra ~4 GiB at peak is activations, which stay in BF16, so the peak shrinks by about the same amount as the weights.

Samples from the benchmark

In each pair, the left image is BF16 and the right image is W8A8.

BF16 garden tea
BF16 · garden tea
W8A8 garden tea
W8A8 · garden tea
BF16 fox lantern
BF16 · fox lantern
W8A8 fox lantern
W8A8 · fox lantern
BF16 knitting
BF16 · knitting
W8A8 knitting
W8A8 · knitting
BF16 shrine
BF16 · shrine
W8A8 shrine
W8A8 · shrine

Use in ComfyUI

Install the Vitoom Nunchaku plugin. ComfyUI 0.44 or newer is required, started with --enable-manager. Installing the plugin also installs a matching nunchaku wheel.

  1. Open ComfyUI and click Manage Extensions in the top-right corner.
  2. Search for Vitoom Nunchaku and click Install.
  3. Restart ComfyUI.

Place svdq-int8_r0-Anima-Turbo-v1.1-Nunchaku.safetensors from this repo in ComfyUI/models/diffusion_models. The text encoder is ComfyUI's own Qwen3-0.6B (qwen_3_06b_base.safetensors). The VAE is qwen_image_vae.safetensors.

Drag example_workflows/anima_turbo.json from the plugin onto the canvas, or open it from the workflow templates. Connect Vitoom Nunchaku DiT Loader to KSampler. Turbo still uses CFG 1 and 8 steps.

Use in Python

Install

Anima W8A8 needs a Nunchaku build that provides NunchakuAnimaTransformer3DModel. Install nunchaku-1.4.0+cu13.0torch2.11-cp311-cp311-linux_x86_64.whl from tonera/vitoom-nunchaku, and a Diffusers build that includes AnimaModularPipeline.

pip install "git+https://github.com/huggingface/diffusers.git"

pip install torch==2.11.* torchvision==0.26.* torchaudio==2.11.* \
  --index-url https://download.pytorch.org/whl/cu130

hf download tonera/vitoom-nunchaku \
  nunchaku-1.4.0+cu13.0torch2.11-cp311-cp311-linux_x86_64.whl \
  --local-dir ./wheels

pip install ./wheels/nunchaku-1.4.0+cu13.0torch2.11-cp311-cp311-linux_x86_64.whl

This wheel is Python 3.11, CUDA 13.0, PyTorch 2.11, Linux x86_64. Other platforms are listed in the vitoom-nunchaku model card.

python -c "from nunchaku import NunchakuAnimaTransformer3DModel; print('ok')"

Usage

guidance_scale is stored on guider. Do not pass it into pipe(...). Turbo expects scale 1 and about 8 steps. The component list below skips the BF16 transformer so it is never loaded. from_pretrained(..., device="cuda") packs the plain INT8 weights for the kernel and moves the unpacked copies off the GPU.

import torch
from diffusers import AnimaModularPipeline
from diffusers.guiders import ClassifierFreeGuidance
from nunchaku import NunchakuAnimaTransformer3DModel

REPO = "tonera/Anima-Turbo-v1.1-Nunchaku"

pipe = AnimaModularPipeline.from_pretrained(REPO)
pipe.load_components(
    [
        "text_encoder",
        "tokenizer",
        "t5_tokenizer",
        "text_conditioner",
        "scheduler",
        "vae",
    ],
    torch_dtype=torch.bfloat16,
)
pipe.update_components(guider=ClassifierFreeGuidance(guidance_scale=1.0))

transformer = NunchakuAnimaTransformer3DModel.from_pretrained(
    f"{REPO}/svdq-int8_r0-Anima-Turbo-v1.1-Nunchaku.safetensors",
    torch_dtype=torch.bfloat16,
    device="cuda",
)
pipe.update_components(transformer=transformer)
pipe.to("cuda")

image = pipe(
    prompt="masterpiece, best quality, a cat is holding a sign that says: CreatePPTX.com",
    height=1024,
    width=1024,
    num_inference_steps=8,
    generator=torch.Generator(device="cuda").manual_seed(42),
).images[0]
image.save("anima-turbo-w8a8.png")

License

This quantization is a derivative of circlestone-labs/Anima. Weights follow the CircleStone Labs Non-Commercial License. Anima is also a derivative of NVIDIA Cosmos-Predict2-2B-Text2Image, so the NVIDIA Open Model License applies where that agreement covers derivative models. Generated images are not under the non-commercial restriction. See the upstream model card for commercial-use examples and the contact for a commercial license.

Downloads last month
122
Safetensors
Model size
2B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for tonera/Anima-Turbo-v1.1-Nunchaku

Quantized
(72)
this model

Collection including tonera/Anima-Turbo-v1.1-Nunchaku