AdamLucek commited on
Commit
826d89a
·
verified ·
1 Parent(s): 287edb8

Added ai-toolkit config file

Browse files
Files changed (1) hide show
  1. train_lora_flux_me.yaml +78 -0
train_lora_flux_me.yaml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ job: extension
3
+ config:
4
+ name: "flux_lora_Adam"
5
+ process:
6
+ - type: 'sd_trainer'
7
+ training_folder: "output/flux_lora_adam"
8
+ performance_log_every: 1000
9
+ device: cuda:0
10
+ trigger_word: "4d4m luc3k"
11
+ network:
12
+ type: "lora"
13
+ linear: 32
14
+ linear_alpha: 32
15
+ save:
16
+ dtype: float16
17
+ save_every: 200
18
+ max_step_saves_to_keep: 4
19
+ push_to_hub: true
20
+ hf_repo_id: AdamLucek/flux_lora_adam
21
+ hf_private: true
22
+ datasets:
23
+ - folder_path: "./lora_me"
24
+ caption_ext: "txt"
25
+ caption_dropout_rate: 0.05
26
+ shuffle_tokens: true
27
+ cache_latents_to_disk: true
28
+ resolution: [ 512, 768, 1024 ]
29
+ train:
30
+ batch_size: 1
31
+ steps: 2000
32
+ gradient_accumulation_steps: 1
33
+ train_unet: true
34
+ train_text_encoder: false
35
+ gradient_checkpointing: true
36
+ noise_scheduler: "flowmatch" # for training only
37
+ optimizer: "adamw8bit"
38
+ lr: 4e-4
39
+ skip_first_sample: true
40
+ ema_config:
41
+ use_ema: true
42
+ ema_decay: 0.99
43
+
44
+ # will probably need this if gpu supports it for flux, other dtypes may not work correctly
45
+ dtype: bf16
46
+ model:
47
+ # huggingface model name or path
48
+ name_or_path: "black-forest-labs/FLUX.1-dev"
49
+ is_flux: true
50
+ quantize: true # run 8bit mixed precision
51
+ # low_vram: true # uncomment this if the GPU is connected to your monitors. It will use less vram to quantize, but is slower.
52
+ sample:
53
+ sampler: "flowmatch" # must match train.noise_scheduler
54
+ sample_every: 200 # sample every this many steps
55
+ width: 1024
56
+ height: 1024
57
+ prompts:
58
+ # you can add [trigger] to the prompts here and it will be replaced with the trigger word
59
+ - "[trigger] holding a sign that says 'I LOVE PROMPTS!'"
60
+ - "[trigger] with red hair, playing chess at the park, bomb going off in the background"
61
+ - "[trigger] holding a coffee cup, in a beanie, sitting at a cafe"
62
+ - "[trigger] is a DJ at a night club, fish eye lens, smoke machine, lazer lights, holding a martini"
63
+ - "[trigger] showing off his cool new t shirt at the beach, a shark is jumping out of the water in the background"
64
+ - "[trigger] building a log cabin in the snow covered mountains"
65
+ - "[trigger] playing the guitar, on stage, singing a song, laser lights, punk rocker"
66
+ - "[trigger] with a beard, building a chair, in a wood shop"
67
+ - "photo of [trigger], white background, medium shot, modeling clothing, studio lighting, white backdrop"
68
+ - "[trigger] holding a sign that says, 'this is a sign'"
69
+ - "[trigger], in a post apocalyptic world, with a shotgun, in a leather jacket, in a desert, with a motorcycle"
70
+ neg: "" # not used on flux
71
+ seed: 42
72
+ walk_seed: true
73
+ guidance_scale: 4
74
+ sample_steps: 20
75
+ # you can add any additional meta info here. [name] is replaced with config name at top
76
+ meta:
77
+ name: "[name]"
78
+ version: '1.0'