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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model:
|
| 2 |
+
sources:
|
| 3 |
+
- id: black-forest-labs/FLUX.2-klein-4B
|
| 4 |
+
pattern: text_encoder/*.safetensors
|
| 5 |
+
- id: black-forest-labs/FLUX.2-klein-base-4B
|
| 6 |
+
pattern: transformer/*.safetensors
|
| 7 |
+
- id: black-forest-labs/FLUX.2-klein-4B
|
| 8 |
+
pattern: vae/diffusion_pytorch_model.safetensors
|
| 9 |
+
model_paths: null
|
| 10 |
+
tokenizer_path: black-forest-labs/FLUX.2-klein-4B:tokenizer/
|
| 11 |
+
audio_processor_path: null
|
| 12 |
+
fp8_models: []
|
| 13 |
+
offload_models: []
|
| 14 |
+
extra_inputs: []
|
| 15 |
+
dit:
|
| 16 |
+
_target_: diffsynth.models.flux2_dit_ds_asym.Flux2DiTDSAsym
|
| 17 |
+
guidance_embeds: false
|
| 18 |
+
joint_attention_dim: 7680
|
| 19 |
+
num_attention_heads: 24
|
| 20 |
+
num_layers: 5
|
| 21 |
+
num_single_layers: 20
|
| 22 |
+
attention_head_dim: 128
|
| 23 |
+
in_channels: 128
|
| 24 |
+
out_channels: 128
|
| 25 |
+
patch_size: 1
|
| 26 |
+
axes_dims_rope:
|
| 27 |
+
- 32
|
| 28 |
+
- 32
|
| 29 |
+
- 32
|
| 30 |
+
- 32
|
| 31 |
+
use_frac_rope: true
|
| 32 |
+
crpa_key_mode: merged_uniform
|
| 33 |
+
crpa_integer_rope: true
|
| 34 |
+
vrs_size_pct: 0
|
| 35 |
+
attention_size_bias: false
|
| 36 |
+
crpa_key_pool_mode: max
|
| 37 |
+
crpa_rope_scale_gate: 'off'
|
| 38 |
+
crpa_rope_scale_gate_strength: 0.0
|
| 39 |
+
crpa_rope_scale_gate_beta: 1.0
|
| 40 |
+
crpa_rope_scale_gate_power: 1.0
|
| 41 |
+
crpa_attention_backend: block_sparse_cuda
|
| 42 |
+
use_leaf_size_embed: true
|
| 43 |
+
procrustes_path: inference/flux/prompt_grid_retrieval/procrustes_subspace_gridrange_subnorm.pt
|
| 44 |
+
asym_calibrate: true
|
| 45 |
+
hr_head_type: linear
|
| 46 |
+
dataset:
|
| 47 |
+
_target_: diffsynth.core.data.vrs_flux2_ds_asym_dataset.VRSFlux2DSAsymDataset
|
| 48 |
+
cache_dir: /scratch/m000051/george/videogen/datasets/aesthetic_vrs_pyramid_s0.05_a0.05
|
| 49 |
+
pyramid_cache_dir: /scratch/m000051/george/videogen/datasets/aesthetic_vrs_pyramid_s0.05_a0.05
|
| 50 |
+
metadata_csv: /scratch/m000051-pm05/brianchc_2/Aesthetic-Train-V2/metadata.csv
|
| 51 |
+
image_path_root: /scratch/m000051-pm05/brianchc_2/Aesthetic-Train-V2
|
| 52 |
+
val_fraction: 0.05
|
| 53 |
+
split_seed: 42
|
| 54 |
+
upsample_mode: nearest
|
| 55 |
+
target_mode: multires
|
| 56 |
+
latents_source: pyramid
|
| 57 |
+
partition_source: compute
|
| 58 |
+
vrs_grid: ${vrs_grid}
|
| 59 |
+
grid_augment_max_p: 0.5
|
| 60 |
+
vrs_grid:
|
| 61 |
+
sensitivity:
|
| 62 |
+
- 0.01
|
| 63 |
+
- 0.1
|
| 64 |
+
ambient:
|
| 65 |
+
- 0.01
|
| 66 |
+
- 1.0
|
| 67 |
+
error_metric: variance_aniso
|
| 68 |
+
anisotropic: true
|
| 69 |
+
uniform_merge: false
|
| 70 |
+
max_leaves: null
|
| 71 |
+
max_compression_ratio: 0.125
|
| 72 |
+
max_aspect_ratio: 8
|
| 73 |
+
error_smooth_sigma: 0.0
|
| 74 |
+
dataloader:
|
| 75 |
+
num_workers: 10
|
| 76 |
+
balance_leaves: true
|
| 77 |
+
balance_seed: 0
|
| 78 |
+
balance_leaf_count_grid: precompute/leaf_count_grid_gridrange_s001_01_a001_1.pt
|
| 79 |
+
training:
|
| 80 |
+
lora:
|
| 81 |
+
base_model: dit
|
| 82 |
+
rank: 256
|
| 83 |
+
dropout: 0.05
|
| 84 |
+
target_modules:
|
| 85 |
+
- linear_in
|
| 86 |
+
- linear_out
|
| 87 |
+
- timestep_embedder.linear_1
|
| 88 |
+
- timestep_embedder.linear_2
|
| 89 |
+
- to_q
|
| 90 |
+
- to_k
|
| 91 |
+
- to_v
|
| 92 |
+
- add_q_proj
|
| 93 |
+
- add_k_proj
|
| 94 |
+
- add_v_proj
|
| 95 |
+
- to_out.0
|
| 96 |
+
- to_add_out
|
| 97 |
+
- to_qkv_mlp_proj
|
| 98 |
+
- single_transformer_blocks.0.attn.to_out
|
| 99 |
+
- single_transformer_blocks.1.attn.to_out
|
| 100 |
+
- single_transformer_blocks.2.attn.to_out
|
| 101 |
+
- single_transformer_blocks.3.attn.to_out
|
| 102 |
+
- single_transformer_blocks.4.attn.to_out
|
| 103 |
+
- single_transformer_blocks.5.attn.to_out
|
| 104 |
+
- single_transformer_blocks.6.attn.to_out
|
| 105 |
+
- single_transformer_blocks.7.attn.to_out
|
| 106 |
+
- single_transformer_blocks.8.attn.to_out
|
| 107 |
+
- single_transformer_blocks.9.attn.to_out
|
| 108 |
+
- single_transformer_blocks.10.attn.to_out
|
| 109 |
+
- single_transformer_blocks.11.attn.to_out
|
| 110 |
+
- single_transformer_blocks.12.attn.to_out
|
| 111 |
+
- single_transformer_blocks.13.attn.to_out
|
| 112 |
+
- single_transformer_blocks.14.attn.to_out
|
| 113 |
+
- single_transformer_blocks.15.attn.to_out
|
| 114 |
+
- single_transformer_blocks.16.attn.to_out
|
| 115 |
+
- single_transformer_blocks.17.attn.to_out
|
| 116 |
+
- single_transformer_blocks.18.attn.to_out
|
| 117 |
+
- single_transformer_blocks.19.attn.to_out
|
| 118 |
+
checkpoint: null
|
| 119 |
+
preset_path: null
|
| 120 |
+
preset_model: null
|
| 121 |
+
task: sft_ds
|
| 122 |
+
loss_type: asym_ds_distill_fm
|
| 123 |
+
learning_rate: 0.0001
|
| 124 |
+
num_epochs: 1
|
| 125 |
+
max_steps: 50000
|
| 126 |
+
batch_size: 4
|
| 127 |
+
weight_decay: 0.01
|
| 128 |
+
trainable_models: dit
|
| 129 |
+
prediction_type: clean
|
| 130 |
+
asym_loss_space: teacher_global_flow
|
| 131 |
+
asym_sigma_min: 0.05
|
| 132 |
+
asym_recover_sigma_min: 0.01
|
| 133 |
+
asym_teacher_velocity_aux_weight: 0.0
|
| 134 |
+
asym_teacher_velocity_aux_clip: 0.0
|
| 135 |
+
asym_teacher_global_scale: 1
|
| 136 |
+
asym_loss_shift: 0.3
|
| 137 |
+
asym_fm_loss_weight: 1.0
|
| 138 |
+
asym_distill_loss_weight: 1.0
|
| 139 |
+
shift_schedule: 'off'
|
| 140 |
+
shift_mu: 2.833213344056216
|
| 141 |
+
ema:
|
| 142 |
+
enable: true
|
| 143 |
+
gamma: 7.0
|
| 144 |
+
start_step: 100
|
| 145 |
+
interval: 1
|
| 146 |
+
val_every_n_steps: null
|
| 147 |
+
val_n_batches: 10
|
| 148 |
+
full_finetune_groups:
|
| 149 |
+
- name: hr_heads
|
| 150 |
+
base_model: dit
|
| 151 |
+
match:
|
| 152 |
+
- hr_heads
|
| 153 |
+
lr: 0.001
|
| 154 |
+
weight_decay: 0.0
|
| 155 |
+
- name: leaf_size_embed
|
| 156 |
+
base_model: dit
|
| 157 |
+
match:
|
| 158 |
+
- leaf_size_embed
|
| 159 |
+
lr: 0.001
|
| 160 |
+
weight_decay: 0.0
|
| 161 |
+
- name: x_embedder
|
| 162 |
+
base_model: dit
|
| 163 |
+
match:
|
| 164 |
+
- x_embedder
|
| 165 |
+
lr: 0.0001
|
| 166 |
+
weight_decay: 0.0
|
| 167 |
+
- name: norm_out
|
| 168 |
+
base_model: dit
|
| 169 |
+
match:
|
| 170 |
+
- norm_out
|
| 171 |
+
lr: 0.0001
|
| 172 |
+
weight_decay: 0.0
|
| 173 |
+
logging:
|
| 174 |
+
wandb:
|
| 175 |
+
entity: georgenakayama
|
| 176 |
+
project: wan-video-training
|
| 177 |
+
run_name: ${run_name}
|
| 178 |
+
log_interval: 1
|
| 179 |
+
samples:
|
| 180 |
+
every_n_steps: 2500
|
| 181 |
+
num_train_samples: 6
|
| 182 |
+
num_val_samples: 6
|
| 183 |
+
cfg_scale: 3.5
|
| 184 |
+
negative_prompt: ''
|
| 185 |
+
vae:
|
| 186 |
+
model:
|
| 187 |
+
_target_: diffsynth.models.flux2_vae.Flux2VAE
|
| 188 |
+
decode_mode: stitched
|
| 189 |
+
upsample_mode: nearest
|
| 190 |
+
fourier_pe:
|
| 191 |
+
enabled: false
|
| 192 |
+
num_freqs: 8
|
| 193 |
+
max_freq: null
|
| 194 |
+
weights: null
|
| 195 |
+
model_id: black-forest-labs/FLUX.2-klein-4B
|
| 196 |
+
pattern: vae/diffusion_pytorch_model.safetensors
|
| 197 |
+
eval:
|
| 198 |
+
n_samples: null
|
| 199 |
+
num_strip_samples: null
|
| 200 |
+
batch_size: 1
|
| 201 |
+
gt_from_latents: false
|
| 202 |
+
shift_schedule: 'off'
|
| 203 |
+
shift_mu: 2.833213344056216
|
| 204 |
+
orthogonal_guidance: 0.0
|
| 205 |
+
use_ema: false
|
| 206 |
+
lora_checkpoint: null
|
| 207 |
+
lora_alpha_scale: 1.0
|
| 208 |
+
resume_from_dir: null
|
| 209 |
+
keep_images: false
|
| 210 |
+
nccl_timeout_min: 120
|
| 211 |
+
grid_source: cache
|
| 212 |
+
retrieval:
|
| 213 |
+
method: clip
|
| 214 |
+
cache_dir: null
|
| 215 |
+
split_seed: 42
|
| 216 |
+
val_fraction: 0.05
|
| 217 |
+
n_pool: 8000
|
| 218 |
+
pool_seed: 1234
|
| 219 |
+
openai_model: text-embedding-3-large
|
| 220 |
+
device: cpu
|
| 221 |
+
openai_key_file: null
|
| 222 |
+
emb_cache_dir: null
|
| 223 |
+
output:
|
| 224 |
+
output_path: ./models
|
| 225 |
+
remove_prefix_in_ckpt: pipe.dit.
|
| 226 |
+
save_steps: 500
|
| 227 |
+
max_checkpoints: 1
|
| 228 |
+
permanent_save_steps: 2500
|
| 229 |
+
out_dir: null
|
| 230 |
+
run_name: vrs_flux_asymflow_distill_fm_globalflow_sg1_shift03_plainhead_ema_scratch_qkvattnfull_gridrange_poolmax_gridsubnorm_s001_01_a001_1
|
| 231 |
+
image:
|
| 232 |
+
height: 1024
|
| 233 |
+
width: 1024
|
| 234 |
+
max_pixels: 1048576
|
| 235 |
+
resume_from: /scratch/m000133/george/foveated_diffusion_3d_dump/train_flux_ds/vrs_flux_asymflow_distill_fm_globalflow_sg1_shift03_plainhead_ema_scratch_qkvattnfull_gridrange_poolmax_gridsubnorm_s001_01_a001_1/step-25000.pt
|
| 236 |
+
gradient:
|
| 237 |
+
use_checkpointing: true
|
| 238 |
+
use_checkpointing_offload: false
|
| 239 |
+
accumulation_steps: 1
|
| 240 |
+
max_grad_norm: 200
|
| 241 |
+
accelerate:
|
| 242 |
+
find_unused_parameters: true
|
| 243 |
+
initialize_model_on_cpu: false
|
| 244 |
+
use_fsdp: false
|
| 245 |
+
timestep:
|
| 246 |
+
max_boundary: 1.0
|
| 247 |
+
min_boundary: 0.0
|
| 248 |
+
inference:
|
| 249 |
+
cfg_scale: 1.0
|
| 250 |
+
num_inference_steps: 30
|
| 251 |
+
seed: 42
|