-
Notifications
You must be signed in to change notification settings - Fork 459
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
序列并行批次维度不匹配 #3014
Comments
dpo我这里不报错
|
试了一下,还是不行,另外sft也是报同样的错 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
![Image](https://private-user-images.githubusercontent.com/177731916/409158510-b4c2757f-c049-4f68-bf88-8660703dc6e5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMzI2NjYsIm5iZiI6MTczOTEzMjM2NiwicGF0aCI6Ii8xNzc3MzE5MTYvNDA5MTU4NTEwLWI0YzI3NTdmLWMwNDktNGY2OC1iZjg4LTg2NjA3MDNkYzZlNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQyMDE5MjZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZGExNWEzNzgwNzE5N2MzNDhiMTAyZGIyYWQ5ZDlmYmUyZjUyNTg3OWI4NzY3OGI3NTBiNzg1ZTllOWYyNjA5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.6H9qWzEHdyZaXSBXrIqP0mMCC6De7cKWaxQfpU7qtaE)
What the bug is, and how to reproduce, better with screenshots(描述bug以及复现过程,最好有截图)
请问现在是只支持sft的序列并行吗,dpo是否支持呢?
在dpo训练的时候设置了sequence_parallel_size,报错tensor size不匹配
Your hardware and system info
Write your system info like CUDA version/system/GPU/torch version here(在这里给出硬件信息和系统信息,如CUDA版本,系统,GPU型号和torch版本等)
Additional context
Add any other context about the problem here(在这里补充其他信息)
训练参数如下:
swift rlhf
--train_type lora
--seed 42
--rlhf_type dpo
--model /data/home/models/sft-llama-3.1-8b
--model_type llama3
--template llama3
--dataset data/swift_dfs_preference.json
--split_dataset_ratio 0.01
--dataloader_num_workers 4
--dataset_num_proc 4
--max_length 8192
--truncation_strategy left
--tools_prompt toolbench
--sequence_parallel_size 2
--output_dir ckpt/dpo
--deepspeed zero3
--per_device_train_batch_size 1
--per_device_eval_batch_size 1
--learning_rate 1e-4
--num_train_epochs 1
--gradient_accumulation_steps $(expr 16 / $nproc_per_node)
--save_strategy steps
--save_steps 100
--eval_strategy steps
--eval_steps 100
--warmup_ratio 0.05
--lora_rank 8
--lora_alpha 32
--rlhf_type dpo
--beta 0.1
--rpo_alpha 0.1
--torch_dtype bfloat16
--target_modules all-linear
--logging_steps 5 \
The text was updated successfully, but these errors were encountered: