Skip to content

Commit

Permalink
add args desc
Browse files Browse the repository at this point in the history
  • Loading branch information
zspo committed Jan 10, 2024
1 parent 71ce3e1 commit e948c73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trl/trainer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class DataCollatorForCompletionOnlyLM(DataCollatorForLanguageModeling):
'### Response:\n'. It can also be passed as tokenized ids, which can be useful when using a tokenizer that encodes the response
differently if it does not have proper context.
instruction_template (`Union[str, List[int]]`): the template form that indicates the start of the human instruction, typically something like
'### Human:\n'. Useful for assistant-style conversation datasets.
'### Human:\n'. Useful for assistant-style conversation datasets. It can also be passed as tokenized ids.
mlm (`bool`, *optional*, defaults to `False`): Whether or not to use masked language modeling in the underlying
`DataCollatorForLanguageModeling` class. Note that this option currently has no effect but is present
for flexibility and backwards-compatibility.
Expand Down

0 comments on commit e948c73

Please sign in to comment.