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

refactor rlhf #1090

Merged
merged 47 commits into from
Jun 17, 2024
Merged

refactor rlhf #1090

merged 47 commits into from
Jun 17, 2024

Conversation

hjh0119
Copy link
Collaborator

@hjh0119 hjh0119 commented Jun 6, 2024

PR type

  • Bug Fix
  • New Feature
  • Document Updates
  • More Models or Datasets Support

PR information

Refactor RLHF series algorithms code

  • Unified the main function to rlhf.py
  • Consolidated Arguments into RLHFArguments.
  • Updated the dependency version of TRL due to KTOTrainer and DPOConfig.

TODO

Related issue
#1095
#1101
#1138

@hjh0119 hjh0119 force-pushed the kto branch 3 times, most recently from 23cba2a to a51f56f Compare June 16, 2024 13:36
@hjh0119 hjh0119 changed the title refactor rlhf [WIP] refactor rlhf Jun 16, 2024
@hjh0119 hjh0119 changed the title [WIP] refactor rlhf refactor rlhf Jun 16, 2024
@hjh0119 hjh0119 merged commit c0e91a1 into modelscope:main Jun 17, 2024
1 of 2 checks passed
tastelikefeet added a commit to tastelikefeet/swift that referenced this pull request Jun 18, 2024
* commit '40ca72b47b5a6ed33bbd9a49c88dae7a931b1cae':
  Fix/web UI 0617 (modelscope#1158)
  refactor rlhf (modelscope#1090)
  fix py38 (modelscope#1152)

# Conflicts:
#	swift/llm/utils/dataset.py
#	swift/llm/utils/template.py
#	swift/trainers/dpo_trainer.py
#	swift/trainers/orpo_trainer.py
#	swift/trainers/simpo_trainer.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants