Skip to content

Add Support for Pre-trained RM #1038

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

Merged
merged 8 commits into from
Jul 7, 2025
Merged

Add Support for Pre-trained RM #1038

merged 8 commits into from
Jul 7, 2025

Conversation

RowitZou
Copy link
Contributor

  1. Add fine-tuning support for RMP:
  • config examples
    xtuner/xtuner/configs/reward_model/internrm/internrm_7b_full_varlenattn_custom_dataset.py
    xtuner/xtuner/configs/reward_model/internrm/internrm_1_8b_full_varlenattn_custom_dataset.py
  1. Add the client of RMP:
    xtuner/xtuner/utils/rm_utils.py

# PART 1 Settings #
#######################################################################
# Model
pretrained_model_name_or_path = "internlm/internrm-1_8b-base"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个配置是微调预训练过的RM的话,这里要改成你们的预训练模型的hf仓库名,因为会自动下载的

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

目前暂定是这个hf仓库名。如果最后发布的名字变了,我会再提交一次pr修改一下。

@RangiLyu
Copy link
Contributor

RangiLyu commented Jul 7, 2025

@pppppM Plz review this PR.

@hhaAndroid hhaAndroid self-assigned this Jul 7, 2025
@hhaAndroid
Copy link
Collaborator

@RowitZou please fix lint

@RowitZou
Copy link
Contributor Author

RowitZou commented Jul 7, 2025

@RowitZou please fix lint

@hhaAndroid Lint has been fixed. Plz try again.

@hhaAndroid hhaAndroid merged commit 00796c1 into InternLM:main Jul 7, 2025
3 checks passed
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.

4 participants