Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QWEN-2.5 DPO训练损失下降问题 #6535

Closed
1 task done
zifyloo opened this issue Jan 6, 2025 · 1 comment
Closed
1 task done

QWEN-2.5 DPO训练损失下降问题 #6535

zifyloo opened this issue Jan 6, 2025 · 1 comment
Labels
solved This problem has been already solved

Comments

@zifyloo
Copy link

zifyloo commented Jan 6, 2025

Reminder

  • I have read the README and searched the existing issues.

System Info

不同大小的数据集,如2k、6k,loss都在200step后下降缓慢,请问是哪里设置有问题吗
image

Reproduction

model

model_name_or_path: /home/ma-user/work/llama-factory/sft_v8_1019 # CodeQwen1.5-7B

method

stage: dpo
do_train: true
finetuning_type: lora
lora_target: all
pref_beta: 0.1
pref_ftx: 0.1
pref_loss: sigmoid

dataset

dataset: dpo_data
template: qwen
cutoff_len: 4096
max_samples: 30000
overwrite_cache: true
preprocessing_num_workers: 16

output

output_dir: /data/dpo/
logging_steps: 1
save_steps: 200
plot_loss: true
overwrite_output_dir: true

train

per_device_train_batch_size: 1
gradient_accumulation_steps: 8
learning_rate: 5.0e-6
num_train_epochs: 3.0
lr_scheduler_type: cosine
warmup_ratio: 0.1
bf16: true
ddp_timeout: 180000000
max_steps: 1200

eval

val_size: 0.1
per_device_eval_batch_size: 1
eval_strategy: steps
eval_steps: 200

Others

No response

@github-actions github-actions bot added the pending This problem is yet to be addressed label Jan 6, 2025
@hiyouga
Copy link
Owner

hiyouga commented Jan 6, 2025

已经收敛了

@hiyouga hiyouga closed this as completed Jan 6, 2025
@hiyouga hiyouga added solved This problem has been already solved and removed pending This problem is yet to be addressed labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved This problem has been already solved
Projects
None yet
Development

No branches or pull requests

2 participants