Skip to main content
Back

Cagliostro Research Lab's Animagine XL 3.0 Rewrites How Open Anime AI Learns

Cagliostro Lab's anime-focused SDXL fine-tune trades pure aesthetics for deeper concept understanding, better hand anatomy, and structured Danbooru-style prompting.

Pro

  • Cagliostro Lab's Animagine XL 3.0 is an SDXL fine-tune focused on anime concept coverage over aesthetics.
  • Trained on 2x A100 80GB for 21 days across 1.27M+ images in three distinct stages.
  • Uses structured Danbooru-style tag prompting with character, series, and quality modifiers.
  • Supports multi-aspect SDXL resolutions from 640x1536 up to 1536x640.
  • Ships under CreativeML Open RAIL++-M, commercial use permitted.
  • Recommended settings: Euler Ancestral, CFG 5-7, under 30 steps.

Cagliostro Research Lab has released Animagine XL 3.0, the third generation of their open-source anime text-to-image model built on Stable Diffusion XL. Unlike most anime fine-tunes, which optimize for a signature look, this one was trained to learn concepts first and aesthetics second, a distinction that affects how you prompt it and what it reliably generates.

The model fine-tunes Animagine XL 2.0, itself derived from SDXL 1.0, and ships under the CreativeML Open RAIL++-M license. Commercial use, modification, and redistribution are all permitted outside the standard prohibited categories.

Three stages, one big dataset leap

Training ran on 2x A100 80GB GPUs for 21 days, roughly 500 GPU hours, across three distinct stages. The dataset scaled from around 253k images in v2.0 to over 1.27 million images plus a 3.5k curated aesthetic set in v3.0.

Each stage had a specific job:

  • Feature Alignment: 1.2M images to teach the model basic anime concepts, with both UNet and text encoder trained at 7.5e-6 and 3.75e-6 respectively.
  • Refining UNet: 2.5k curated images used to fine-tune only the UNet at a low 2e-6 learning rate.
  • Aesthetic Tuning: 3.5k high-quality curated images to refine art style at 1e-6.

Most anime SDXL fine-tunes compress concept and aesthetic learning into a single training run, which tends to produce over-fit house styles that stumble on obscure characters. Splitting them means the model knows who Arima Kana is before it learns how to render her.

Structured tags, not natural language

Animagine XL 3.0 is trained on Danbooru-style tags with a rigid ordering: 1girl/1boy, character name, series name, everything else. Natural language prompts will underperform; the model card is explicit that natural language interpretation was never a design goal.

Three families of special tags are baked into training:

  • Quality modifiers: masterpiece, best quality, down through worst quality, mapped to internal aesthetic score buckets.
  • Rating modifiers: rating: general through rating: explicit, useful for steering away from NSFW output.
  • Year modifiers: newest, late, mid, early, oldest, corresponding to art style eras from 2005 through 2023.

One practical gotcha: masterpiece and best quality are frequently associated with NSFW datasets in the training corpus. For safe output, add nsfw, rating: sensitive to your negative prompt and rating: general to your positive prompt.

The team suggests a classifier-free guidance (CFG) scale of 5-7, sampling steps below 30, and Euler Ancestral as the sampler. A minimal script following their configuration:

import torch
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler, AutoencoderKL
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
pipe = StableDiffusionXLPipeline.from_pretrained(
    "cagliostrolab/animagine-xl-3.0", vae=vae, torch_dtype=torch.float16, use_safetensors=True,
)
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
pipe.to("cuda")
prompt = "1girl, arima kana, oshi no ko, solo, upper body, smile, outdoors, night, masterpiece, best quality"
image = pipe(prompt, width=832, height=1216, guidance_scale=7, num_inference_steps=28).images[0]

The model supports SDXL's multi-aspect resolutions up to 1536x640 and 640x1536, so portrait character shots and wide cinematic banners both work without upscaling workarounds.

Known weaknesses

Prioritizing concept coverage came with tradeoffs the team acknowledges directly. The default aesthetic can feel less polished than v2.0's. Complex poses still produce anatomical glitches. Any character or series underrepresented in the 1.2M image corpus will be generated poorly or ignored entirely. Photorealism is explicitly out of scope.

Ecosystem footprint and training methodology

Despite the arrival of Animagine XL 4.0 and various Pony and Illustrious derivatives, v3.0 remains a widely used base. It has spawned 48 adapter models, 18 fine-tunes, and 3 quantizations, and runs inside nearly a hundred Hugging Face Spaces. For anyone building an anime-focused pipeline, a character generator for a game project, or a LoRA training base, it is one of the most battle-tested zero-cost SDXL checkpoints available.

The training methodology itself is worth borrowing beyond the anime domain. Separating concept learning from aesthetic refinement, then layering in a structured tag vocabulary drawn from Danbooru and NovelAI, is a pattern that keeps appearing in the strongest open image models, and v3.0 is one of the cleaner documented examples of it in practice.