Upload train_config.toml with huggingface_hub
Browse files- train_config.toml +66 -0
train_config.toml
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Training config for Anima Preview 2 (RECOMENDADO)
|
| 2 |
+
# Project: loven_base_init
|
| 3 |
+
# Generated: 2026-04-03 04:45:11
|
| 4 |
+
# Edit this file before launching training!
|
| 5 |
+
|
| 6 |
+
# === Model ===
|
| 7 |
+
pretrained_model_name_or_path = "/workspace/models/anima-preview2/split_files/diffusion_models/anima-preview2.safetensors"
|
| 8 |
+
qwen3 = "/workspace/models/anima-preview2/split_files/text_encoders/qwen_3_06b_base.safetensors"
|
| 9 |
+
vae = "/workspace/models/anima-preview2/split_files/vae/qwen_image_vae.safetensors"
|
| 10 |
+
vae_chunk_size = 64
|
| 11 |
+
vae_disable_cache = true
|
| 12 |
+
# llm_adapter_lr = 0 # uncomment for full fine-tune only
|
| 13 |
+
dataset_config = "/workspace/projects/loven_base_init/dataset.toml"
|
| 14 |
+
|
| 15 |
+
# === Network (LoRA) ===
|
| 16 |
+
network_module = "networks.lora_anima"
|
| 17 |
+
network_dim = 32
|
| 18 |
+
network_alpha = 16
|
| 19 |
+
network_train_unet_only = true
|
| 20 |
+
|
| 21 |
+
# === Attention ===
|
| 22 |
+
attn_mode = "torch"
|
| 23 |
+
|
| 24 |
+
# === Precision & Memory ===
|
| 25 |
+
mixed_precision = "bf16"
|
| 26 |
+
# full_bf16 = true # uncomment if PyTorch >= 2.5 (saves VRAM, risk of NaN on older versions)
|
| 27 |
+
gradient_checkpointing = true
|
| 28 |
+
|
| 29 |
+
# === Cache ===
|
| 30 |
+
cache_latents = true
|
| 31 |
+
cache_text_encoder_outputs = true
|
| 32 |
+
|
| 33 |
+
# === Timestep ===
|
| 34 |
+
timestep_sampling = "sigmoid"
|
| 35 |
+
weighting_scheme = "uniform"
|
| 36 |
+
discrete_flow_shift = 3.0
|
| 37 |
+
sigmoid_scale = 1.0
|
| 38 |
+
# DO NOT set noise_offset — causes green tint artifacts on ANIMA
|
| 39 |
+
# To use shift-based timestep: change timestep_sampling to 'shift'
|
| 40 |
+
|
| 41 |
+
# === Optimizer ===
|
| 42 |
+
optimizer_type = "AdamW8bit"
|
| 43 |
+
learning_rate = 2e-05
|
| 44 |
+
lr_scheduler = "cosine"
|
| 45 |
+
gradient_accumulation_steps = 1
|
| 46 |
+
max_grad_norm = 1.0
|
| 47 |
+
lr_warmup_steps = 0.1
|
| 48 |
+
|
| 49 |
+
# === Duration ===
|
| 50 |
+
max_train_steps = 3000
|
| 51 |
+
|
| 52 |
+
# === Save ===
|
| 53 |
+
save_every_n_steps = 250
|
| 54 |
+
output_dir = "/workspace/projects/loven_base_init/outputs/20260403_044418"
|
| 55 |
+
output_name = "loven_base_init"
|
| 56 |
+
save_model_as = "safetensors"
|
| 57 |
+
save_precision = "bf16"
|
| 58 |
+
|
| 59 |
+
# === Sampling ===
|
| 60 |
+
sample_prompts = "/workspace/projects/loven_base_init/sample_prompts.txt"
|
| 61 |
+
sample_every_n_steps = 100
|
| 62 |
+
|
| 63 |
+
# === Dataloader ===
|
| 64 |
+
max_data_loader_n_workers = 2
|
| 65 |
+
persistent_data_loader_workers = true
|
| 66 |
+
seed = 42
|