Krea 2 Anime-tuned Raw
A full fine-tune of Krea 2 Raw on ~196k anime illustrations (releasing the EMA weights from the final training step). Use it as the first stage of the hybrid sampler with Krea 2 Anime-tuned Turbo (where sample images are showcased), for standalone CFG sampling around 1 MP, or as a base model for further training and LoRAs.
Files and usage
| File | ComfyUI folder | Notes |
|---|---|---|
krea2_anime_tuned_raw_fp8_scaled.safetensors | models/diffusion_models/ | 13.1 GB, ComfyUI fp8_scaled scheme (same layout as Comfy-Org's Krea 2 files) |
krea2_anime_tuned_raw_bf16.safetensors | models/diffusion_models/ | 25.6 GB, official key layout |
krea2_anime_tuned_raw_int8_convrot.safetensors | models/diffusion_models/ | 13.5 GB, ComfyUI int8_tensorwise + ConvRot scheme (same layout as Comfy-Org's Krea 2 int8 files); for GPUs without FP8 support (e.g. RTX 20/30 series, A100), needs ComfyUI v0.27.0 or newer |
krea2_anime_tuned_turbo_fp8_scaled.safetensors (or _bf16 / _int8_convrot) | models/diffusion_models/ | Optional, from Krea-2-Anime-tuned-Turbo (for hybrid sampling) |
qwen3vl_4b_fp8_scaled.safetensors (or _bf16) | models/text_encoders/ | From Comfy-Org/Krea-2 |
qwen_image_vae.safetensors | models/vae/ | From Comfy-Org/Krea-2 |
Which file? fp8_scaled on GPUs with FP8 support (RTX 40/50 series, L4, H100). On GPUs without FP8 (RTX 20/30 series, A100), ComfyUI upcasts fp8_scaled weights to bf16 for compute, while int8_convrot runs on INT8 tensor cores and, at 13.5 GB, fits on 24 GB cards where bf16 (25.6–26.3 GB) does not. The int8_convrot files were tested in ComfyUI v0.44.0 on an L4 with the same seeds as bf16.
Example ComfyUI workflows are located in workflows/ of the Krea-2-Anime-tuned-Turbo repository: krea2_anime_tuned_hybrid.json, krea2_anime_tuned_raw.json, and krea2_anime_tuned_turbo.json (plus _api versions). They use the capgen custom node by default, which can be swapped for a standard text prompt node.
Hybrid (recommended, both models)
The samples on the Turbo-tuned card use a two-model setup (workflows/krea2_anime_tuned_hybrid.json): the Raw-tuned model generates the first 2 of 8 steps with CFG, and the Turbo-tuned model finishes the remaining 6 steps without CFG:
- Schedule: 8 steps,
euler/simple, fixed shift 1.15 (ModelSamplingFluxwithbase_shift = max_shift = 1.15) applied to both models. KSamplerAdvanced#1 (Raw-tuned): steps0 → 2, cfg 2.5, empty negative prompt,add_noise: enable,return_with_leftover_noise: enable.KSamplerAdvanced#2 (Turbo-tuned): steps2 → 8, cfg 1.0,add_noise: disable, same seed.
Tested in ComfyUI v0.44.0 on a 24 GB L4 GPU using both fp8_scaled files at 2K (~2 min per image including model swapping).
Raw-tuned alone
28 steps, euler / simple, cfg 5.5 in ComfyUI (equivalent to guidance 4.5 in Krea's cond + g·(cond − uncond) convention), empty negative prompt, and resolution-dependent shift matching Krea's sampler (ModelSamplingFlux with base_shift = 0.5, max_shift = 0.90625, and width / height set to the target resolution). Krea's official README also suggests 52 steps with guidance 3.5 (ComfyUI cfg 4.5). Best around 1 MP.
Diffusers
transformer/ is a drop-in replacement for the official pipeline (untested by the author; requires access to krea/Krea-2-Raw for the text encoder and VAE):
import torch
from diffusers import Krea2Pipeline, Krea2Transformer2DModel
transformer = Krea2Transformer2DModel.from_pretrained(
"ricecake/Krea-2-Anime-tuned-Raw", subfolder="transformer",
torch_dtype=torch.bfloat16)
pipe = Krea2Pipeline.from_pretrained("krea/Krea-2-Raw", transformer=transformer,
torch_dtype=torch.bfloat16).to("cuda")
image = pipe("anime illustration of a girl, ...").images[0] # see krea/Krea-2-Raw for sampler kwargs
Prompting (capgen)
The model was trained on long natural-language captions written in a consistent descriptive style, e.g.:
anime illustration of a girl, upper body portrait, long pale pink hair with blue tips, ... , clean line art, soft shading.
Short tag lists or generic prompts work, but captions matching the training style perform best.
capgen expands a few Danbooru tags into full captions in this exact style (no LLM, CPU-only, milliseconds per caption). Use it as a ComfyUI custom node (tag autocomplete; the example workflows already include it), try it in the browser demo (runs locally in your browser, ~450 MB download cached after the first visit), or use the Python library.
Tip: Auto-generated captions frequently default to a white background and lean toward Danbooru's sensitive rating (roughly PG-12 to PG-15). You can exclude unwanted elements with -tag, e.g. 1girl, -white background, -cleavage (used for the samples on the Turbo-tuned card).
Evaluation (blind A/B by the author)
Pairwise blind votes by a single judge (the author) using identical capgen prompts and seeds at training-bucket resolutions (~1 MP) with the Raw sampler (28 steps, guidance 4.5). The first two comparisons evaluated a uniform average of 9 late training snapshots; a third test confirmed that this average is indistinguishable from the released EMA weights:
- vs. base Krea 2 Raw: 47 : 3 (50 prompts, 94% win rate, p ≈ 4e-11).
- vs. author's previous fine-tune (96k images, shorter recipe): 33 : 17 (50 prompts, p = 0.033).
- EMA (this release) vs. 9-snapshot average: 29 : 22 (51 prompts, not statistically significant; EMA was kept).
Training data and recipe
- Data: 196,099 anime illustrations from Danbooru and Gelbooru (
generalandsensitiveratings only, ≥ 1 MP, aspect ratio ≤ 2.5, at least one girl, no male focus, watermarked and text-heavy images removed). Selected as the top ~200k out of ~906k filtered candidates ranked by a preference model trained on the author's pairwise judgments (reflecting a single person's aesthetic taste; published here with the watermark probe used for the removal), grouped into 19 aspect buckets around 1 MP. - Captions: VLM-generated natural-language captions in a unified style (long / medium / short variants sampled with p = 0.5 / 0.3 / 0.2).
- Training recipe (full fine-tune of Krea 2 Raw, all 12.8B DiT parameters): 4 epochs at 512 px (batch size 256, lr 2e-5) followed by 2 epochs at 1024 px (batch size 64, lr 1e-5) for 9,192 total steps; Adam optimizer, 150-step warmup, warmup-stable-decay schedule, weight decay 0, EMA 0.999. Trained in JAX on 8× AMD Instinct MI355X (~8.3 hours). Code: ricecake000/Krea-2-JAX.
Limitations
- Subject bias: The training set consists almost entirely of single-girl anime illustrations. Male characters, multi-character scenes, and non-anime styles are weak; photorealism was not a goal.
- High-resolution (2K) behavior: Because the Raw-tuned model was trained at up to ~1 MP, running it alone at 2K can occasionally cause facial artifacts. This was seen on 1 of 5 2K test prompts; the Turbo-tuned model was clean on the same prompts and the hybrid sampler on the 3 2K prompts it was checked on, so both are recommended for 2K.
- Out-of-distribution tags: Because captions were written by a VLM, niche Danbooru tags that never appeared in the training captions are passed through verbatim by capgen and may not be understood by the model.
- Content rating: Trained strictly on Danbooru
generalandsensitiveimages (questionableandexplicitexcluded), though outputs can still be suggestive—see the safety note below.
License and safety
- Distributed under the Krea 2 Community License Agreement (
LICENSE.pdf; seeNOTICE). This model is a modified derivative of the Krea Model and is neither an official Krea product nor endorsed by Krea. - If you deploy this model, the license requires implementing content filters (§4.2), complying with the Acceptable Use Policy, and disclosing AI-generated outputs where applicable (§4.3).