Guest User

ZIB_Prodigy

a guest
Apr 7th, 2026
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. # Change these paths
  2. output_dir = '/mnt/m/Training/secreLORA/out/zimage'
  3. dataset = '/home/dreamerwsl/newDIFFZIMAGE/diffusion-pipe/examples/dataset.toml'
  4.  
  5. # training settings
  6. epochs = 1000
  7. micro_batch_size_per_gpu = 1
  8. pipeline_stages = 1
  9. gradient_accumulation_steps = 4
  10. gradient_clipping = 1
  11. #warmup_steps = 100
  12.  
  13. # eval settings
  14. eval_every_n_epochs = 5
  15. #eval_every_n_steps = 100
  16. eval_before_first_step = true
  17. eval_micro_batch_size_per_gpu = 1
  18. eval_gradient_accumulation_steps = 1
  19.  
  20. # misc settings
  21. save_every_n_epochs = 5
  22. #save_every_n_steps = 500
  23. #checkpoint_every_n_epochs = 1
  24. checkpoint_every_n_minutes = 120
  25. activation_checkpointing = true
  26. partition_method = 'parameters'
  27. save_dtype = 'bfloat16'
  28. caching_batch_size = 8
  29. steps_per_print = 1
  30. blocks_to_swap = 20
  31.  
  32. [model]
  33. type = 'z_image'
  34. diffusion_model = '/mnt/m/new_ComfyUI_windows_portable_nvidia_cu121_or_cpu/ComfyUI_windows_portable/ComfyUI/models/diffusion_models/z_image_fp32.safetensors'
  35. vae = '/mnt/m/new_ComfyUI_windows_portable_nvidia_cu121_or_cpu/ComfyUI_windows_portable/ComfyUI/models/vae/ae.safetensors'
  36. text_encoders = [
  37. {path = '/mnt/m/new_ComfyUI_windows_portable_nvidia_cu121_or_cpu/ComfyUI_windows_portable/ComfyUI/models/clip/qwen_3_4b.safetensors', type = 'lumina2'}
  38. ]
  39.  
  40.  
  41. dtype = 'float32'
  42.  
  43.  
  44. # For models that support full fine tuning, simply delete or comment out the [adapter] table to FFT.
  45. [adapter]
  46. type = 'lora'
  47. rank = 64
  48. # Dtype for the LoRA weights you are training.
  49. dtype = 'float32'
  50. # You can initialize the lora weights from a previously trained lora.
  51. # init_from_existing = '/data/diffusion_pipe_training_runs/wan14b_t2v_video_loras/20250419_13-30-55/epoch60'
  52.  
  53.  
  54.  
  55.  
  56.  
  57. # Use if training Z-Image-Turbo
  58.  
  59. # You can reduce VRAM by having most weights in fp8 (small quality loss).
  60. #diffusion_model_dtype = 'float8'
  61. # Automagic should work fine and requires no tuning, but you can probably get better results using AdamW
  62. # with a properly tuned learning rate.
  63. # [optimizer]
  64. # type = 'automagic'
  65. # weight_decay = 0.01
  66.  
  67. [optimizer]
  68. type = 'Prodigy'
  69. lr = 1.0
  70. weight_decay = 0.01
  71. use_bias_correction = true
  72. safeguard_warmup = true
  73. betas = [0.9, 0.99]
Advertisement
Add Comment
Please, Sign In to add comment