mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-18 22:08:13 +00:00
14 lines
725 B
Bash
14 lines
725 B
Bash
accelerate launch examples/flux2/model_training/train.py \
|
|
--dataset_base_path data/example_image_dataset \
|
|
--dataset_metadata_path data/example_image_dataset/metadata.csv \
|
|
--max_pixels 1048576 \
|
|
--dataset_repeat 50 \
|
|
--model_id_with_origin_paths "black-forest-labs/FLUX.2-klein-9B:text_encoder/*.safetensors,black-forest-labs/FLUX.2-klein-9B:transformer/*.safetensors,black-forest-labs/FLUX.2-klein-9B:vae/diffusion_pytorch_model.safetensors" \
|
|
--tokenizer_path "black-forest-labs/FLUX.2-klein-9B:tokenizer/" \
|
|
--learning_rate 1e-5 \
|
|
--num_epochs 2 \
|
|
--remove_prefix_in_ckpt "pipe.dit." \
|
|
--output_path "./models/train/FLUX.2-klein-9B_full" \
|
|
--trainable_models "dit" \
|
|
--use_gradient_checkpointing
|