Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg committed Jul 23, 2024
1 parent e23eec3 commit 73cd36f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llmfoundry/command_utils/data_prep/convert_text_to_mds.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,8 @@ def convert_text_to_mds(
reprocess (bool): Whether to always reprocess the given folder of text files
trust_remote_code (bool): If true, allows custom code to be executed to load the tokenizer
"""
# Load the tokenizer once on the main process so that the files are cached to avoid race conditions
# in the Hugging Face load code
AutoTokenizer.from_pretrained(tokenizer_name, trust_remote_code=trust_remote_code)

is_remote_output = is_remote_path(output_folder)
Expand Down

0 comments on commit 73cd36f

Please sign in to comment.