Guest User

Untitled

a guest
Nov 4th, 2025
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.42 KB | Source Code | 0 0
  1. ---
  2. job: "extension"
  3. config:
  4. name: "your_lora_name"
  5. process:
  6. - type: "diffusion_trainer"
  7. training_folder: "/home/ai-toolkit/output"
  8. sqlite_db_path: "./aitk_db.db"
  9. device: "cuda"
  10. trigger_word: null
  11. performance_log_every: 10
  12. network:
  13. type: "lora"
  14. linear: 64
  15. linear_alpha: 16
  16. conv: 32
  17. conv_alpha: 8 #start with 8 for 1000 steps - bump to 10 - if stable after 200 steps bump to 12 - at 70% steps-> 14
  18. lokr_full_rank: true
  19. lokr_factor: -1
  20. network_kwargs: #targets I2V layers ONLY
  21. only_if_contains:
  22. - "attn1.to_q"
  23. - "attn1.to_v"
  24. - "attn1.to_out.0"
  25. ignore_if_contains:
  26. - "attn2"
  27. - "ffn"
  28. save:
  29. dtype: "bf16"
  30. save_every: 100
  31. max_step_saves_to_keep: 100
  32. save_format: "diffusers"
  33. push_to_hub: false
  34. datasets:
  35. - folder_path: "/home/ai-toolkit/datasets/shorter"
  36. mask_path: null
  37. mask_min_value: 0.1
  38. default_caption: ""
  39. caption_ext: "txt"
  40. token_dropout_rate: 0.3 #NEEDED for motion training
  41. keep_tokens: 1 #keep the trigger word (first word) when tokens are dropped
  42. cache_latents_to_disk: false
  43. is_reg: false
  44. network_weight: 1
  45. resolution:
  46. - 640
  47. max_pixels_per_frame: 409600 #this is 640x640 - if you change your res to 512 then its 512x512
  48. controls: []
  49. shrink_video_to_frames: true
  50. num_frames: 33
  51. do_i2v: true
  52. flip_x: false
  53. flip_y: false
  54. train:
  55. attention_backend: "native" # If you installed sageattention 2 in your venv it SHOULD use it automatically
  56. batch_size: 1
  57. bypass_guidance_embedding: false
  58. steps: 17000
  59. gradient_accumulation: 1
  60. train_unet: true
  61. train_text_encoder: false
  62. gradient_checkpointing: true
  63. noise_scheduler: "flowmatch"
  64. optimizer: "automagic"
  65. timestep_type: "shift"
  66. content_or_style: "style"
  67. max_grad_norm: 1
  68. optimizer_params:
  69. lr_bump: 0.000005
  70. min_lr: 0.000005
  71. max_lr: 0.0003
  72. beta2: 0.999
  73. weight_decay: 0.0001
  74. clip_threshold: 1
  75. high_noise_lr_bump: 0.00001
  76. high_noise_min_lr: 0.00001
  77. high_noise_max_lr: 0.0003
  78. low_noise_lr_bump: 0.00001
  79. low_noise_min_lr: 0.000005
  80. low_noise_max_lr: 0.0003
  81. unload_text_encoder: false
  82. cache_text_embeddings: true
  83. lr: 0.00001
  84. ema_config:
  85. use_ema: true
  86. ema_decay: 0.99
  87. skip_first_sample: true
  88. force_first_sample: false
  89. disable_sampling: false
  90. dtype: "bf16"
  91. diff_output_preservation: false
  92. diff_output_preservation_multiplier: 1
  93. diff_output_preservation_class: "person"
  94. switch_boundary_every: 100
  95. loss_type: "mse"
  96. model:
  97. name_or_path: "ai-toolkit/Wan2.2-I2V-A14B-Diffusers-bf16"
  98. quantize: true
  99. qtype: "uint4|ostris/accuracy_recovery_adapters/wan22_14b_i2v_torchao_uint4.safetensors"
  100. quantize_te: true
  101. qtype_te: "qfloat8"
  102. arch: "wan22_14b_i2v"
  103. low_vram: true
  104. model_kwargs:
  105. train_high_noise: true
  106. train_low_noise: true
  107. layer_offloading: true
  108. layer_offloading_transformer_percent: 1
  109. layer_offloading_text_encoder_percent: 1
  110. sample:
  111. sampler: "flowmatch"
  112. sample_every: 1000
  113. width: 320
  114. height: 480
  115. samples:
  116. - prompt: ""
  117. ctrl_img: ""
  118. network_multiplier: "1"
  119. - prompt: ""
  120. ctrl_img: ""
  121. network_multiplier: "1"
  122. - prompt: ""
  123. ctrl_img: ""
  124. network_multiplier: "1"
  125. - prompt: ""
  126. ctrl_img: ""
  127. network_multiplier: "1"
  128. - prompt: ""
  129. ctrl_img: ""
  130. network_multiplier: "1"
  131. - prompt: ""
  132. ctrl_img: ""
  133. network_multiplier: "1"
  134. neg: ""
  135. seed: 41
  136. walk_seed: false
  137. guidance_scale: 4
  138. sample_steps: 25
  139. num_frames: 41
  140. fps: 16
  141. meta:
  142. name: "your_lora"
  143. version: "1.0"
Advertisement
Add Comment
Please, Sign In to add comment