Upload config.yml
Browse files- shortcut-11/config.yml +124 -0
shortcut-11/config.yml
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model:
|
| 2 |
+
checkpoint_path: "./models/aura_flow_0.3.bnb_nf4.safetensors"
|
| 3 |
+
pretrained_model_name_or_path: fal/AuraFlow-v0.3
|
| 4 |
+
|
| 5 |
+
dtype: bfloat16
|
| 6 |
+
|
| 7 |
+
denoiser:
|
| 8 |
+
use_flash_attn: true
|
| 9 |
+
|
| 10 |
+
use_shortcut: true
|
| 11 |
+
|
| 12 |
+
flow_matching_ratio: 0.75
|
| 13 |
+
shortcut_max_steps: 128
|
| 14 |
+
shortcut_cfg_scale: 1.0
|
| 15 |
+
|
| 16 |
+
timestep_sampling_type: "sigmoid"
|
| 17 |
+
|
| 18 |
+
peft:
|
| 19 |
+
- # linear layers
|
| 20 |
+
config:
|
| 21 |
+
type: lora
|
| 22 |
+
rank: 4
|
| 23 |
+
alpha: 1.0
|
| 24 |
+
dropout: 0.0
|
| 25 |
+
use_bias: false
|
| 26 |
+
|
| 27 |
+
dtype: bfloat16
|
| 28 |
+
|
| 29 |
+
include_keys: [
|
| 30 |
+
".attn.",
|
| 31 |
+
".mlp.",
|
| 32 |
+
".mlpC.",
|
| 33 |
+
".mlpX.",
|
| 34 |
+
# include the AdaLN-Zero modulation layers
|
| 35 |
+
".modC.",
|
| 36 |
+
".modX.",
|
| 37 |
+
".modCX.",
|
| 38 |
+
]
|
| 39 |
+
exclude_keys:
|
| 40 |
+
[".text_encoder.", ".vae.", ".t_embedder.", ".final_linear.", ".modF."]
|
| 41 |
+
|
| 42 |
+
- # shortcut embedder
|
| 43 |
+
config:
|
| 44 |
+
type: lora
|
| 45 |
+
rank: 4
|
| 46 |
+
alpha: 1.0
|
| 47 |
+
dropout: 0.0
|
| 48 |
+
use_bias: true # use bias
|
| 49 |
+
|
| 50 |
+
dtype: bfloat16
|
| 51 |
+
|
| 52 |
+
include_keys: [".t_embedder.", ".shortcut_embedder."]
|
| 53 |
+
exclude_keys: [".text_encoder.", ".vae.", ".final_linear.", ".modF."]
|
| 54 |
+
|
| 55 |
+
dataset:
|
| 56 |
+
folder: "data/pexels-1k-random"
|
| 57 |
+
num_repeats: 2
|
| 58 |
+
batch_size: 2
|
| 59 |
+
|
| 60 |
+
bucket_base_size: 1024
|
| 61 |
+
step: 128
|
| 62 |
+
min_size: 384
|
| 63 |
+
do_upscale: false
|
| 64 |
+
|
| 65 |
+
caption_processors: []
|
| 66 |
+
|
| 67 |
+
optimizer:
|
| 68 |
+
name: "schedulefree.RAdamScheduleFree"
|
| 69 |
+
args:
|
| 70 |
+
lr: 0.03
|
| 71 |
+
|
| 72 |
+
tracker:
|
| 73 |
+
project_name: "auraflow-shortcut-1"
|
| 74 |
+
loggers:
|
| 75 |
+
- wandb
|
| 76 |
+
|
| 77 |
+
saving:
|
| 78 |
+
strategy:
|
| 79 |
+
per_epochs: 1
|
| 80 |
+
per_steps: null
|
| 81 |
+
save_last: true
|
| 82 |
+
|
| 83 |
+
callbacks:
|
| 84 |
+
- type: "hf_hub"
|
| 85 |
+
# - type: "safetensors"
|
| 86 |
+
name: "shortcut-11"
|
| 87 |
+
save_dir: "./output/shortcut-11"
|
| 88 |
+
|
| 89 |
+
hub_id: "p1atdev/afv03-lora"
|
| 90 |
+
dir_in_repo: "shortcut-11"
|
| 91 |
+
|
| 92 |
+
preview:
|
| 93 |
+
strategy:
|
| 94 |
+
per_epochs: 1
|
| 95 |
+
per_steps: 100
|
| 96 |
+
|
| 97 |
+
callbacks:
|
| 98 |
+
# - type: "local"
|
| 99 |
+
# save_dir: "./output/shortcut-08/preview"
|
| 100 |
+
|
| 101 |
+
- type: "discord"
|
| 102 |
+
url: "mask"
|
| 103 |
+
|
| 104 |
+
data:
|
| 105 |
+
path: "./projects/shortcut/preview.yml"
|
| 106 |
+
|
| 107 |
+
seed: 42
|
| 108 |
+
num_train_epochs: 20
|
| 109 |
+
|
| 110 |
+
trainer:
|
| 111 |
+
# debug_mode: "1step"
|
| 112 |
+
|
| 113 |
+
gradient_checkpointing: true
|
| 114 |
+
gradient_accumulation_steps: 16
|
| 115 |
+
|
| 116 |
+
# clip_grad_norm: 1.0
|
| 117 |
+
clip_grad_value: 1.0
|
| 118 |
+
|
| 119 |
+
torch_compile: true
|
| 120 |
+
torch_compile_args:
|
| 121 |
+
mode: max-autotune
|
| 122 |
+
fullgraph: true
|
| 123 |
+
|
| 124 |
+
fp32_matmul_precision: "medium"
|