suva-lora-v10 / train.sh
MubTaXim-Alt's picture
Upload folder using huggingface_hub
79d1518 verified
accelerate launch \
--mixed_precision bf16 \
--num_cpu_threads_per_process 1 \
sd-scripts/flux_train_network.py \
--pretrained_model_name_or_path "/teamspace/studios/this_studio/fluxgym/models/unet/flux1-dev.sft" \
--clip_l "/teamspace/studios/this_studio/fluxgym/models/clip/clip_l.safetensors" \
--t5xxl "/teamspace/studios/this_studio/fluxgym/models/clip/t5xxl_fp16.safetensors" \
--ae "/teamspace/studios/this_studio/fluxgym/models/vae/ae.sft" \
--cache_latents_to_disk \
--save_model_as safetensors \
--sdpa --persistent_data_loader_workers \
--max_data_loader_n_workers 2 \
--seed 42 \
--gradient_checkpointing \
--mixed_precision bf16 \
--save_precision bf16 \
--network_module networks.lora_flux \
--network_dim 16 \
--optimizer_type adamw8bit \--sample_prompts="/teamspace/studios/this_studio/fluxgym/outputs/suva-v10/sample_prompts.txt" --sample_every_n_steps="150" \
--learning_rate 6e-4 \
--cache_text_encoder_outputs \
--cache_text_encoder_outputs_to_disk \
--fp8_base \
--highvram \
--max_train_epochs 14 \
--save_every_n_epochs 1 \
--dataset_config "/teamspace/studios/this_studio/fluxgym/outputs/suva-v10/dataset.toml" \
--output_dir "/teamspace/studios/this_studio/fluxgym/outputs/suva-v10" \
--output_name suva-v10 \
--timestep_sampling shift \
--discrete_flow_shift 3.1582 \
--model_prediction_type raw \
--guidance_scale 1 \
--loss_type l2 \
--min_snr_gamma 5 \
--multires_noise_discount 0.3 \
--multires_noise_iterations 6