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

Add option to export trlx checkpoints #2409

Merged
merged 1 commit into from
Apr 8, 2023
Merged

Conversation

andreaskoepf
Copy link
Collaborator

@andreaskoepf andreaskoepf commented Apr 8, 2023

add --rl_checkpoint option to export_model.py to allow exporting checkpoints saved by trainer_rl.py.

Usage:

python tools/export_model.py --cache_dir .cache --rl_checkpoint ckpts/best_checkpoint/pytorch_model/mp_rank_00_model_states.pt  --hf_repo_name <target_repo_name> --auth_token<auth_token> <base_model_name>

Copy link
Collaborator

@sanagno sanagno left a comment

Choose a reason for hiding this comment

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

looks good

@sanagno sanagno merged commit 536f419 into main Apr 8, 2023
@sanagno sanagno deleted the export_rl_fine_tuned_model branch April 8, 2023 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants