-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[megatron] fix: critic and reward model load tokenizer from config
Currently, the worker will fail if the critic or reward model path doesn't contain a tokenizer. This PR tries to fix this by loading tokenizer from the config for the previously mentioned case. - For the critic model, we fall back to load from `critic.model.tokenizer_path`. - For the reward model, we first fall back to load from `reward_model.model.rm_tokenizer`, and then `reward_model.model.input_tokenizer` if that is not set. Signed-off-by: Hollow Man <[email protected]>
- Loading branch information
1 parent
55a4d3c
commit 9b45db2
Showing
1 changed file
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters