Skip to content

Commit

Permalink
minor fix to (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShashankMosaicML authored May 3, 2024
1 parent c0d591c commit bfbb8c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llmfoundry/data/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def get_num_tokens_in_batch(batch: Batch) -> int:
def get_text_collator(
cfg: DictConfig,
tokenizer: PreTrainedTokenizerBase,
dataset_batch_size: int = -1,
dataset_batch_size: int,
) -> Tuple[Union[transformers.DataCollatorForLanguageModeling,
ConcatenatedSequenceCollatorWrapper], int]:
eos_token_id = cfg.dataset.get('eos_token_id', None)
Expand Down

0 comments on commit bfbb8c5

Please sign in to comment.