config: changed z-image training
Browse files- configs/Z_IMAGE.knf.yaml +8 -8
configs/Z_IMAGE.knf.yaml
CHANGED
|
@@ -150,7 +150,7 @@ training:
|
|
| 150 |
resolution: 1024 # Preserve detail in high-res head crops.
|
| 151 |
crop: false # Preserve detail framing; many samples are close crops.
|
| 152 |
genitals:
|
| 153 |
-
probability:
|
| 154 |
crop: false # Preserve anatomy crop framing.
|
| 155 |
# repeats: 0
|
| 156 |
# disabled: false
|
|
@@ -227,7 +227,7 @@ training:
|
|
| 227 |
subset_warmup:
|
| 228 |
enabled: true
|
| 229 |
subsets: [genitals, fullbody, head]
|
| 230 |
-
steps:
|
| 231 |
|
| 232 |
|
| 233 |
# Full-run trainer config. trainer_testrun below overrides selected keys
|
|
@@ -238,9 +238,9 @@ training:
|
|
| 238 |
hub_model_id: ladybird-z_image-1-lora # Optional Hub model id if push_to_hub is enabled.
|
| 239 |
|
| 240 |
optimizer: adamw_bf16 # BF16 AdamW optimizer.
|
| 241 |
-
learning_rate: 0.
|
| 242 |
lr_scheduler: constant_with_warmup # Ramp up LR to avoid weird color biases.
|
| 243 |
-
lr_warmup_steps:
|
| 244 |
seed: 42 # Training seed.
|
| 245 |
gradient_checkpointing: true # Reduce VRAM by recomputing activations.
|
| 246 |
max_grad_norm: 0.1 # Clip gradients for stability. Simpletuner recommends 0.01 for z-image
|
|
@@ -249,7 +249,7 @@ training:
|
|
| 249 |
train_batch_size: 4 # Per-device batch size; 32 GB VRAM should handle this first.
|
| 250 |
gradient_accumulation_steps: 1 # Keep optimizer steps direct when VRAM allows batch 2.
|
| 251 |
num_train_epochs: 0 # Step-based training; max_train_steps controls run length.
|
| 252 |
-
max_train_steps:
|
| 253 |
|
| 254 |
caption_dropout_probability: 0.0 # Disable caption dropout; keep trigger behavior stable.
|
| 255 |
data_backend_sampling: auto-weighting # Auto-balance dataloader sampling based on subset probabilities and sizes.
|
|
@@ -257,13 +257,13 @@ training:
|
|
| 257 |
# push_to_hub: false # Upload final artifacts to Hugging Face Hub.
|
| 258 |
# push_checkpoints_to_hub: false # Upload intermediate checkpoints.
|
| 259 |
checkpoints_total_limit: 5 # Keep latest 5 checkpoints.
|
| 260 |
-
checkpoint_step_interval:
|
| 261 |
-
validation_step_interval:
|
| 262 |
validation_on_startup: false # Render baseline validation before training.
|
| 263 |
validation_prompt_library: false # Disable SimpleTuner built-in prompt library.
|
| 264 |
validation_disable_unconditional: true # Skip unconditional validation branch.
|
| 265 |
validation_resolution: 1024x1024 # Keep validation affordable for the first Z-Image run.
|
| 266 |
-
validation_num_inference_steps:
|
| 267 |
validation_guidance: 4.0 # Inference guidance used by validation.
|
| 268 |
validation_guidance_real: null # Remove Chroma default guidance-real from generated config.
|
| 269 |
validation_guidance_rescale: 0.0 # Guidance rescale; 0 disables rescale.
|
|
|
|
| 150 |
resolution: 1024 # Preserve detail in high-res head crops.
|
| 151 |
crop: false # Preserve detail framing; many samples are close crops.
|
| 152 |
genitals:
|
| 153 |
+
probability: 5 # Sample anatomy subset at normal probability.
|
| 154 |
crop: false # Preserve anatomy crop framing.
|
| 155 |
# repeats: 0
|
| 156 |
# disabled: false
|
|
|
|
| 227 |
subset_warmup:
|
| 228 |
enabled: true
|
| 229 |
subsets: [genitals, fullbody, head]
|
| 230 |
+
steps: 1600 # !! First steps of the total run are ONLY listed subsets!
|
| 231 |
|
| 232 |
|
| 233 |
# Full-run trainer config. trainer_testrun below overrides selected keys
|
|
|
|
| 238 |
hub_model_id: ladybird-z_image-1-lora # Optional Hub model id if push_to_hub is enabled.
|
| 239 |
|
| 240 |
optimizer: adamw_bf16 # BF16 AdamW optimizer.
|
| 241 |
+
learning_rate: 0.00006 # 1.2e-4; BFL recommends 8e-5 to 1e-4 for LoRA.
|
| 242 |
lr_scheduler: constant_with_warmup # Ramp up LR to avoid weird color biases.
|
| 243 |
+
lr_warmup_steps: 200
|
| 244 |
seed: 42 # Training seed.
|
| 245 |
gradient_checkpointing: true # Reduce VRAM by recomputing activations.
|
| 246 |
max_grad_norm: 0.1 # Clip gradients for stability. Simpletuner recommends 0.01 for z-image
|
|
|
|
| 249 |
train_batch_size: 4 # Per-device batch size; 32 GB VRAM should handle this first.
|
| 250 |
gradient_accumulation_steps: 1 # Keep optimizer steps direct when VRAM allows batch 2.
|
| 251 |
num_train_epochs: 0 # Step-based training; max_train_steps controls run length.
|
| 252 |
+
max_train_steps: 4800 # First full Z-Image character run.
|
| 253 |
|
| 254 |
caption_dropout_probability: 0.0 # Disable caption dropout; keep trigger behavior stable.
|
| 255 |
data_backend_sampling: auto-weighting # Auto-balance dataloader sampling based on subset probabilities and sizes.
|
|
|
|
| 257 |
# push_to_hub: false # Upload final artifacts to Hugging Face Hub.
|
| 258 |
# push_checkpoints_to_hub: false # Upload intermediate checkpoints.
|
| 259 |
checkpoints_total_limit: 5 # Keep latest 5 checkpoints.
|
| 260 |
+
checkpoint_step_interval: 400 # Save checkpoint every 200 steps.
|
| 261 |
+
validation_step_interval: 400 # Run validation every 200 steps.
|
| 262 |
validation_on_startup: false # Render baseline validation before training.
|
| 263 |
validation_prompt_library: false # Disable SimpleTuner built-in prompt library.
|
| 264 |
validation_disable_unconditional: true # Skip unconditional validation branch.
|
| 265 |
validation_resolution: 1024x1024 # Keep validation affordable for the first Z-Image run.
|
| 266 |
+
validation_num_inference_steps: 45 # Full-run validation sampling steps.
|
| 267 |
validation_guidance: 4.0 # Inference guidance used by validation.
|
| 268 |
validation_guidance_real: null # Remove Chroma default guidance-real from generated config.
|
| 269 |
validation_guidance_rescale: 0.0 # Guidance rescale; 0 disables rescale.
|