data_txt_root: '/dataset/example/train_data_info.txt'
resolution: 1024
aspect_ratio_type: 'mar_1024'
null_text_ratio: 0.1
dataloader_num_workers: 8
train_batch_size: 2
repeats: 100
prompt_template_encode_prefix: '<|im_start|>system\nAs an image captioning expert, generate a descriptive text prompt based on an image content, suitable for input to a text-to-image model.<|im_end|>\n<|im_start|>user\n'
prompt_template_encode_suffix: '<|im_end|>\n<|im_start|>assistant\n'
prompt_template_encode_start_idx: 36
prompt_template_encode_end_idx: 5
text_tokenizer_max_length: 512
pretrained_model_name_or_path: "/xxx/weights/Longcat-Image-Dev"
diffusion_pretrain_weight: null
use_dynamic_shifting: true
resume_from_checkpoint: latest
lora_rank: 32
use_ema: False
ema_rate: 0.999
mixed_precision: 'bf16'
max_train_steps: 100000
gradient_accumulation_steps: 1
gradient_checkpointing: true
gradient_clip: 1.0
learning_rate: 1.0e-4
adam_weight_decay: 1.0e-3
adam_epsilon: 1.0e-8
adam_beta1: 0.9
adam_beta2: 0.999
lr_num_cycles: 1
lr_power: 1.0
lr_scheduler: 'constant'
lr_warmup_steps: 1000
log_interval: 10
save_model_steps: 200
work_dir: 'output/lora_model'
seed: 43