Skip to content

Commit 005db47

Browse files
authored
read tokenizer path from config correctly (#230)
1 parent 3bb6c15 commit 005db47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/summarize_rlhf/trlx_gptj_text_summarization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def reward_fn(samples: List[str], **kwargs):
9797
)
9898
config = TRLConfig.load_yaml(config_path)
9999

100-
tokenizer = AutoTokenizer.from_pretrained(config.model.tokenizer_path)
100+
tokenizer = AutoTokenizer.from_pretrained(config.tokenizer.tokenizer_path)
101101
tokenizer.pad_token = tokenizer.eos_token
102102
tokenizer.padding_side = "left"
103103
max_length_input = (

0 commit comments

Comments
 (0)