ostris commited on
Commit
4407c77
1 Parent(s): 114d762

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +36 -3
README.md CHANGED
@@ -1,3 +1,36 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: diffusers
4
+ ---
5
+ # FLUX.1-schnell-training-adapter
6
+
7
+ This won't do anything on it's own. To use it, you will need a trainer that can train with it. It was designed for my trainer, [ai-toolkit](https://github.com/ostris/ai-toolkit).
8
+ But other trainers may support it as well.
9
+
10
+
11
+ ## What is this?
12
+
13
+ This is an adapter that allows you to train LoRAs directly on [black-forest-labs/FLUX.1-schnell](https://huggingface.co/black-forest-labs/FLUX.1-schnell). Schnell is
14
+ a step distilled model, meaning it can generate an image in just a few steps. However, this makes it impossible to train on it directly because every step you train
15
+ breaks down the compression more and more. With this adapter enabled during training, that doesnt happen. It is activated during the training process, and
16
+ disabled during sampling. After the LoRA is trained, this adapter is no longer needed.
17
+
18
+
19
+ ## Benefits of training directly on schnell
20
+
21
+ - **Apache 2.0** - FLUX.1 schnell is licensed as Apache 2.0, and so is this adapter, which means everything you train on it can be licensed however you want. When training on dev, everything trained on it inherits the non commercial license.
22
+ - **Better Compatibility** - LoRAs trained on dev seem to not work as well on schnell. By training directly on schnell, your LoRAs will be more compatable with it.
23
+ - **Sampling Speed** - I love training samples to watch progress. But doing 20-30 steps for every sample image takes FOREVER. With this adapter, you only need 1-4 steps.
24
+
25
+
26
+ ## Support my work
27
+
28
+ <a href="https://glif.app" target="_blank">
29
+ <img alt="glif.app" src="https://raw.githubusercontent.com/ostris/ai-toolkit/main/assets/glif.svg?v=1" width="256" height="auto">
30
+ </a>
31
+
32
+
33
+ My work on this project would not be possible without the amazing support of [Glif](https://glif.app/) and everyone on the
34
+ team. If you want to support me, support Glif. [Join the site](https://glif.app/),
35
+ [Join us on Discord](https://discord.com/invite/nuR9zZ2nsh), [follow us on Twitter](https://x.com/heyglif)
36
+ and come make some cool stuff with us