Instructions to use Alisson990/thumbnail-lora-flux2-dev with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Alisson990/thumbnail-lora-flux2-dev 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-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Alisson990/thumbnail-lora-flux2-dev") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
LoRA final -- 3000 steps rank32
Browse files- README.md +18 -0
- adapter_config.json +100 -0
- adapter_model.safetensors +3 -0
README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: black-forest-labs/FLUX.2-dev
|
| 3 |
+
tags: [lora, flux, flux2, youtube-thumbnails, diffusers]
|
| 4 |
+
license: other
|
| 5 |
+
license_name: flux-dev-non-commercial-license
|
| 6 |
+
library_name: diffusers
|
| 7 |
+
pipeline_tag: text-to-image
|
| 8 |
+
---
|
| 9 |
+
# YouTube Thumbnail LoRA -- FLUX.2-dev
|
| 10 |
+
| Parametro | Valor |
|
| 11 |
+
|-----------|-------|
|
| 12 |
+
| Base Model | black-forest-labs/FLUX.2-dev |
|
| 13 |
+
| Dataset | Alisson990/snn_compute |
|
| 14 |
+
| Steps | 3000 |
|
| 15 |
+
| LoRA Rank | 32 |
|
| 16 |
+
| LR | 0.0001 |
|
| 17 |
+
| Resolucao | 1280x720 |
|
| 18 |
+
| Batch efetivo | 8 |
|
adapter_config.json
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": {
|
| 6 |
+
"base_model_class": "Flux2Transformer2DModel",
|
| 7 |
+
"parent_library": "diffusers.models.transformers.transformer_flux2"
|
| 8 |
+
},
|
| 9 |
+
"base_model_name_or_path": null,
|
| 10 |
+
"bias": "none",
|
| 11 |
+
"corda_config": null,
|
| 12 |
+
"ensure_weight_tying": false,
|
| 13 |
+
"eva_config": null,
|
| 14 |
+
"exclude_modules": null,
|
| 15 |
+
"fan_in_fan_out": false,
|
| 16 |
+
"inference_mode": true,
|
| 17 |
+
"init_lora_weights": "gaussian",
|
| 18 |
+
"layer_replication": null,
|
| 19 |
+
"layers_pattern": null,
|
| 20 |
+
"layers_to_transform": null,
|
| 21 |
+
"loftq_config": {},
|
| 22 |
+
"lora_alpha": 32,
|
| 23 |
+
"lora_bias": false,
|
| 24 |
+
"lora_dropout": 0.05,
|
| 25 |
+
"megatron_config": null,
|
| 26 |
+
"megatron_core": "megatron.core",
|
| 27 |
+
"modules_to_save": null,
|
| 28 |
+
"peft_type": "LORA",
|
| 29 |
+
"peft_version": "0.18.1",
|
| 30 |
+
"qalora_group_size": 16,
|
| 31 |
+
"r": 32,
|
| 32 |
+
"rank_pattern": {},
|
| 33 |
+
"revision": null,
|
| 34 |
+
"target_modules": [
|
| 35 |
+
"to_qkv_mlp_proj",
|
| 36 |
+
"16.attn.to_out",
|
| 37 |
+
"25.attn.to_out",
|
| 38 |
+
"33.attn.to_out",
|
| 39 |
+
"12.attn.to_out",
|
| 40 |
+
"8.attn.to_out",
|
| 41 |
+
"26.attn.to_out",
|
| 42 |
+
"to_out.0",
|
| 43 |
+
"single_transformer_blocks.2.attn.to_out",
|
| 44 |
+
"43.attn.to_out",
|
| 45 |
+
"46.attn.to_out",
|
| 46 |
+
"to_k",
|
| 47 |
+
"single_transformer_blocks.7.attn.to_out",
|
| 48 |
+
"14.attn.to_out",
|
| 49 |
+
"to_v",
|
| 50 |
+
"18.attn.to_out",
|
| 51 |
+
"32.attn.to_out",
|
| 52 |
+
"31.attn.to_out",
|
| 53 |
+
"13.attn.to_out",
|
| 54 |
+
"15.attn.to_out",
|
| 55 |
+
"add_q_proj",
|
| 56 |
+
"34.attn.to_out",
|
| 57 |
+
"36.attn.to_out",
|
| 58 |
+
"single_transformer_blocks.3.attn.to_out",
|
| 59 |
+
"single_transformer_blocks.5.attn.to_out",
|
| 60 |
+
"proj_out",
|
| 61 |
+
"single_transformer_blocks.0.attn.to_out",
|
| 62 |
+
"to_q",
|
| 63 |
+
"29.attn.to_out",
|
| 64 |
+
"27.attn.to_out",
|
| 65 |
+
"23.attn.to_out",
|
| 66 |
+
"10.attn.to_out",
|
| 67 |
+
"21.attn.to_out",
|
| 68 |
+
"40.attn.to_out",
|
| 69 |
+
"22.attn.to_out",
|
| 70 |
+
"28.attn.to_out",
|
| 71 |
+
"39.attn.to_out",
|
| 72 |
+
"single_transformer_blocks.1.attn.to_out",
|
| 73 |
+
"20.attn.to_out",
|
| 74 |
+
"24.attn.to_out",
|
| 75 |
+
"41.attn.to_out",
|
| 76 |
+
"19.attn.to_out",
|
| 77 |
+
"to_add_out",
|
| 78 |
+
"11.attn.to_out",
|
| 79 |
+
"17.attn.to_out",
|
| 80 |
+
"38.attn.to_out",
|
| 81 |
+
"42.attn.to_out",
|
| 82 |
+
"single_transformer_blocks.6.attn.to_out",
|
| 83 |
+
"add_v_proj",
|
| 84 |
+
"single_transformer_blocks.4.attn.to_out",
|
| 85 |
+
"9.attn.to_out",
|
| 86 |
+
"30.attn.to_out",
|
| 87 |
+
"37.attn.to_out",
|
| 88 |
+
"add_k_proj",
|
| 89 |
+
"45.attn.to_out",
|
| 90 |
+
"35.attn.to_out",
|
| 91 |
+
"47.attn.to_out",
|
| 92 |
+
"44.attn.to_out"
|
| 93 |
+
],
|
| 94 |
+
"target_parameters": null,
|
| 95 |
+
"task_type": null,
|
| 96 |
+
"trainable_token_indices": null,
|
| 97 |
+
"use_dora": false,
|
| 98 |
+
"use_qalora": false,
|
| 99 |
+
"use_rslora": false
|
| 100 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1502368226d5e95fca488f3c6cafb68dab3702c27eada917b22d9a3cf8a6d09
|
| 3 |
+
size 667743816
|