KBlueLeaf / Kohaku-XL-Epsilon

huggingface.co
Total runs: 1.2K
24-hour runs: 0
7-day runs: 426
30-day runs: 747
Model's Last Updated: July 07 2024
text-to-image

Introduction of Kohaku-XL-Epsilon

Model Details of Kohaku-XL-Epsilon

Kohaku XL εpsilon

The best example of tuning t2i model at home with consumer-level hardware

join us: https://discord.gg/tPBsKDyRR5

Image 1 Image 2 Image 3 Image 4 Image 5 Image 6 Image 7 Image 8 Image 9 Image a Image b Image c

Introduction

Kohaku XL Epsilon, the fifth major iteration in the Kohaku XL series, features a 5.2 million images dataset, LyCORIS fine-tuning[1], trained on comsumer-level hardware, and is fully open-sourced.

Benchmark

CCIP score on 3600 characters (0~1, higher is better) image Clearly, Kohaku XL Epsilon is way better than Kohaku XL Delta

Usage
<1girl/1boy/1other/...>, 
<character>, <series>, <artists>, 

<general tags>,
<quality tags>, <year tags>, <meta tags>, <rating tags>

Kohaku XL Epsilon has mastered more artists' styles then Delta. But it also increases the stablility when combining multiple artist tags together. Users are encouraged to make their own style prompts.

Some good style prompts

ask \(askzy\), torino aqua, migolu, (jiu ye sang:1.1), (rumoon:0.9), (mizumi zumi:1.1)
ciloranko, maccha \(mochancc\), lobelia \(saclia\), migolu, 
ask \(askzy\), wanke, (jiu ye sang:1.1), (rumoon:0.9), (mizumi zumi:1.1)
shiro9jira, ciloranko, ask \(askzy\), (tianliang duohe fangdongye:0.8)
(azuuru:1.1), (torino aqua:1.2), (azuuru:1.1), kedama milk, 
fuzichoco, ask \(askzy\), chen bin, atdan, hito, mignon
ask \(askzy\), torino aqua, migolu
Tags

All the danbooru tags with at least 1000 popularity should work. All the danbooru tags with at least 100 popularity can possibly work with high emphasis.

Remember to remove all the underscore in tags. (Underscores in short tags are not be removed, which are very likely part of emoji tags.) Remember to use xxx\(yyy\) when tag have bracket and you are using sd-webui.

Special Tags
  • Quality tag s: masterpiece, best quality, great quality, good quality, normal quality, low quality, worst quality
  • Rating tags : safe, sensitive, nsfw, explicit
  • Date tags : newest, recent, mid, early, old

Quality Tags Quality tags are assigned based on the percentile rankings of the favorite count (fav_count) within each rating category to avoid bias on nsfw content (Animagine XL v3 have met this problem), organized from high to low as follows: 90th, 75th, 60th, 45th, 30th, and 10th percentiles . This creates seven distinct quality levels separated by six thresholds.

I lower the threshold since I found that the average quality of images in Danbooru is higher than I expected.

Rating tags

  • General : safe
  • Sensitive : sensitive
  • Questionable : nsfw
  • Explicit : nsfw, explicit

Note: During training, content tagged as "explicit" is also considered under "nsfw" to ensure a comprehensive understanding.

Date tags Date tags are based on the upload dates of the images, as the metadata does not include the actual creation dates. The periods are categorized as follows:

  • 2005~2010: old
  • 2011~2014: early
  • 2015~2017: mid
  • 2018~2020: recent
  • 2021~2024: newest
Resolution

This model is trained for resolutions from ARB 1024x1024 with minimum resolution 256 and maximum resolution 4096. This means you can use the standard SDXL resolution. However, opting for a slightly higher resolution than 1024x1024 is recommended. Applying a hires-fix is also suggested for better results.

For more information, please check out the sample images provided.

How This Model Came to Be
Why Epsilon

Same as Delta, just a test for new dataset and it is good. The outputs are also very different (compare to Delta).

Dataset

The dataset for training this model was sourced from HakuBooru , comprising 5.2 million images selected from the danbooru2023 dataset.[2][3]

A selection process was employed to choose 1 million posts from IDs 0 to 2,000,000 , another 2 millions from IDs 2,000,000 to 4,999,999 , and all posts after ID 5,000,000 , totaling 5.35 million posts. After filtering out deleted posts, gold account posts and those without images (which could be GIFs or MP4s), the final dataset comprised 5.2 million images.

The selection was essentially random, but a fixed seed was utilized to ensure reproducibility.

Further Process

  • Shuffle tags : The order of general tags was shuffled in each step.
  • Tag dropout : Randomly, 15% of general tags were dropped in each step.
Training

The training of Kohaku XL Epsilon was facilitated by the LyCORIS project and the trainer from kohya-ss/sd-scripts . [1][4]

Algorithm: LoKr [5] The model was trained using the LoKr algorithm with full matrix triggered and a factor of 2~8 for different modules. The aim was to demonstrate the applicability of LoRA/LyCORIS in training base models.

The original LoKr file size is under 800MB, and the TE was not frozen. The original LoKr file also be provided as "delta-lokr" version.

For detailed settings, refer to the LyCORIS config file from Kohaku XL Delta.

Other Training Details

  • Hardware : Quad RTX 3090s
  • Num Train Images : 5,210,319
  • Batch Size : 4
  • Grad Accumulation Step : 16
  • Equivalent Batch Size : 256
  • Total Epoch : 1
  • Total Steps : 20354
  • Optimizer : Lion8bit
    • Learning Rate : 2e-5 for UNet / 5e-6 for TE
    • LR Scheduler : Constant (with warmup)
    • Warmup Steps : 1000
    • Weight Decay : 0.1
    • Betas : 0.9, 0.95
  • Min SNR Gamma : 5
  • Noise Offset : 0.0357
  • Resolution : 1024x1024
  • Min Bucket Resolution : 256
  • Max Bucket Resolution : 4096
  • Mixed Precision : FP16

Warning : Versions 0.36.0~0.41.0 of bitsandbytes have significant bugs in the 8bit optimizer that could compromise training, so updating is essential.[6]

Training Cost Utilizing DDP with four RTX 3090s, completing 1 epoch across the 5.2 million image dataset took approximately 12 to 13 days. Each step for an equivalent batch size of 256 took about 49 to 50 seconds to complete.

Why I publish 13600step intermediate ckpt

The training progress have crashed when between 13600step~15300step. And kohya-ss trainer didn't implement resume+step skip before.

Although Kohya and I figured out how to do it correctly and did some sanity check on it. I still cannot fully ensure the final result is correct. So I publish the final intermedate ckpt so if anyone want to reproduce the training. They have chance to figure out the problem of final result.

What's Next

I am focusing on making new dataset (targeting 10M~15M images), and wait for SD3 to see if it is worth trying.

I may also do some small FT on Epsilon and publish them as rev2/3/4... but dataset still my main focus now.

Special Thanks

AngelBottomless & Nyanko7: danbooru2023 dataset[3] Kohya-ss: Trainer[4]


AI art should be looked like AI, not like humans.


(Some fun fact: this slogan come from my personal homepage. Lot of ppl like this one and put it in their model page.)

Reference & Resource
Reference

[1] SHIH-YING YEH , Yu-Guan Hsieh, Zhidong Gao, Bernard B W Yang, Giyeong Oh, & Yanmin Gong (2024). Navigating Text-To-Image Customization: From LyCORIS Fine-Tuning to Model Evaluation. In The Twelfth International Conference on Learning Representations.

[2] HakuBooru - text-image dataset maker for booru style image platform. https://github.com/KohakuBlueleaf/HakuBooru

[3] Danbooru2023: A Large-Scale Crowdsourced and Tagged Anime Illustration Dataset. https://huggingface.co/datasets/nyanko7/danbooru2023

[4] kohya-ss/sd-scripts. https://github.com/kohya-ss/sd-scripts

[5] LyCORIS - Lora beYond Conventional methods, Other Rank adaptation Implementations for Stable diffusion. https://github.com/KohakuBlueleaf/LyCORIS/blob/main/docs/Algo-Details.md#lokr

[6] TimDettmers/bitsandbytes - issue 659/152/227/262 - Wrong indented lines cause bugs for a long time. https://github.com/TimDettmers/bitsandbytes/issues/659

Resource
License

This model is licensed under "Fair-AI public license 1.0-SD", please refer to the original License for more information: https://freedevproject.org/faipl-1.0-sd/

Runs of KBlueLeaf Kohaku-XL-Epsilon on huggingface.co

1.2K
Total runs
0
24-hour runs
-1
3-day runs
426
7-day runs
747
30-day runs

More Information About Kohaku-XL-Epsilon huggingface.co Model

Kohaku-XL-Epsilon huggingface.co

Kohaku-XL-Epsilon huggingface.co is an AI model on huggingface.co that provides Kohaku-XL-Epsilon's model effect (), which can be used instantly with this KBlueLeaf Kohaku-XL-Epsilon model. huggingface.co supports a free trial of the Kohaku-XL-Epsilon model, and also provides paid use of the Kohaku-XL-Epsilon. Support call Kohaku-XL-Epsilon model through api, including Node.js, Python, http.

Kohaku-XL-Epsilon huggingface.co Url

https://huggingface.co/KBlueLeaf/Kohaku-XL-Epsilon

KBlueLeaf Kohaku-XL-Epsilon online free

Kohaku-XL-Epsilon huggingface.co is an online trial and call api platform, which integrates Kohaku-XL-Epsilon's modeling effects, including api services, and provides a free online trial of Kohaku-XL-Epsilon, you can try Kohaku-XL-Epsilon online for free by clicking the link below.

KBlueLeaf Kohaku-XL-Epsilon online free url in huggingface.co:

https://huggingface.co/KBlueLeaf/Kohaku-XL-Epsilon

Kohaku-XL-Epsilon install

Kohaku-XL-Epsilon is an open source model from GitHub that offers a free installation service, and any user can find Kohaku-XL-Epsilon on GitHub to install. At the same time, huggingface.co provides the effect of Kohaku-XL-Epsilon install, users can directly use Kohaku-XL-Epsilon installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Kohaku-XL-Epsilon install url in huggingface.co:

https://huggingface.co/KBlueLeaf/Kohaku-XL-Epsilon

Url of Kohaku-XL-Epsilon

Kohaku-XL-Epsilon huggingface.co Url

Provider of Kohaku-XL-Epsilon huggingface.co

KBlueLeaf
ORGANIZATIONS

Other API from KBlueLeaf

huggingface.co

Total runs: 40.1K
Run Growth: 32.0K
Growth Rate: 79.77%
Updated:November 29 2024
huggingface.co

Total runs: 26.9K
Run Growth: -10.3K
Growth Rate: -38.08%
Updated:January 22 2025
huggingface.co

Total runs: 1.6K
Run Growth: -1.7K
Growth Rate: -106.24%
Updated:November 29 2024
huggingface.co

Total runs: 1.5K
Run Growth: -133
Growth Rate: -9.17%
Updated:August 14 2023
huggingface.co

Total runs: 1.1K
Run Growth: -271
Growth Rate: -24.09%
Updated:November 29 2024
huggingface.co

Total runs: 83
Run Growth: -48
Growth Rate: -56.47%
Updated:February 26 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 18 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 04 2026