Instructions to use mm9all/klein9b-lora-klein9b-lora-j9n8xs-9b-test-3-1770645277 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use mm9all/klein9b-lora-klein9b-lora-j9n8xs-9b-test-3-1770645277 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.2-klein-9B", torch_dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("mm9all/klein9b-lora-klein9b-lora-j9n8xs-9b-test-3-1770645277") prompt = "a photo of AndyYang" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
End of training
Browse files
README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: black-forest-labs/FLUX.2-klein-9B
|
| 3 |
+
library_name: diffusers
|
| 4 |
+
license: other
|
| 5 |
+
instance_prompt: a photo of AndyYang
|
| 6 |
+
widget: []
|
| 7 |
+
tags:
|
| 8 |
+
- text-to-image
|
| 9 |
+
- diffusers-training
|
| 10 |
+
- diffusers
|
| 11 |
+
- lora
|
| 12 |
+
- flux2-klein
|
| 13 |
+
- flux2-klein-diffusers
|
| 14 |
+
- template:sd-lora
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
<!-- This model card has been generated automatically according to the information the training script had access to. You
|
| 18 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
# Flux.2 [Klein] DreamBooth LoRA - mm9all/klein9b-lora-klein9b-lora-j9n8xs-9b-test-3-1770645277
|
| 22 |
+
|
| 23 |
+
<Gallery />
|
| 24 |
+
|
| 25 |
+
## Model description
|
| 26 |
+
|
| 27 |
+
These are mm9all/klein9b-lora-klein9b-lora-j9n8xs-9b-test-3-1770645277 DreamBooth LoRA weights for black-forest-labs/FLUX.2-klein-9B.
|
| 28 |
+
|
| 29 |
+
The weights were trained using [DreamBooth](https://dreambooth.github.io/) with the [Flux2 diffusers trainer](https://github.com/huggingface/diffusers/blob/main/examples/dreambooth/README_flux2.md).
|
| 30 |
+
|
| 31 |
+
Quant training? None
|
| 32 |
+
|
| 33 |
+
## Trigger words
|
| 34 |
+
|
| 35 |
+
You should use `a photo of AndyYang` to trigger the image generation.
|
| 36 |
+
|
| 37 |
+
## Download model
|
| 38 |
+
|
| 39 |
+
[Download the *.safetensors LoRA](mm9all/klein9b-lora-klein9b-lora-j9n8xs-9b-test-3-1770645277/tree/main) in the Files & versions tab.
|
| 40 |
+
|
| 41 |
+
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
| 42 |
+
|
| 43 |
+
```py
|
| 44 |
+
from diffusers import AutoPipelineForText2Image
|
| 45 |
+
import torch
|
| 46 |
+
pipeline = AutoPipelineForText2Image.from_pretrained("black-forest-labs/FLUX.2", torch_dtype=torch.bfloat16).to('cuda')
|
| 47 |
+
pipeline.load_lora_weights('mm9all/klein9b-lora-klein9b-lora-j9n8xs-9b-test-3-1770645277', weight_name='pytorch_lora_weights.safetensors')
|
| 48 |
+
image = pipeline('a photo of AndyYang').images[0]
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)
|
| 52 |
+
|
| 53 |
+
## License
|
| 54 |
+
|
| 55 |
+
Please adhere to the licensing terms as described [here](https://huggingface.co/black-forest-labs/FLUX.2/blob/main/LICENSE.md).
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
## Intended uses & limitations
|
| 59 |
+
|
| 60 |
+
#### How to use
|
| 61 |
+
|
| 62 |
+
```python
|
| 63 |
+
# TODO: add an example code snippet for running this diffusion pipeline
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
#### Limitations and bias
|
| 67 |
+
|
| 68 |
+
[TODO: provide examples of latent issues and potential remediations]
|
| 69 |
+
|
| 70 |
+
## Training details
|
| 71 |
+
|
| 72 |
+
[TODO: describe the data used to train the model]
|
checkpoint-1000/optimizer.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2eaf422ebb3b765e7775204d94ecc03c52281af959a097eed471da895a1b6579
|
| 3 |
+
size 8597707
|
checkpoint-1000/pytorch_lora_weights.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94723aac15bb21913d901ac21d90862c830ea6a4b80a4393e867512657ef801f
|
| 3 |
+
size 8398392
|
checkpoint-1000/random_states_0.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e69e37bca12d0e18e425fe2db701941d35d1970b2f498d7d358010b7f0f454ab
|
| 3 |
+
size 14757
|
checkpoint-1000/scheduler.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d5ca5fd1f3d50dfbd88c5f854e399c1c22a842d2231d41415da16bf924479e76
|
| 3 |
+
size 1401
|
pytorch_lora_weights.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94723aac15bb21913d901ac21d90862c830ea6a4b80a4393e867512657ef801f
|
| 3 |
+
size 8398392
|
training_progress.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"current_step": 1000, "total_steps": 1000, "resume_from_step": 0, "current_loss": 0.627, "best_loss": 0.343, "best_checkpoint_step": 890, "current_lr": 0.0001, "step_time": 2.6753219604492187, "eta_seconds": 0, "progress": 100, "status": "training", "model_version": "klein_9b"}
|