Skip to content

Commit

Permalink
bring back num_threads
Browse files Browse the repository at this point in the history
  • Loading branch information
karpathy committed Aug 24, 2023
1 parent fe9b9f2 commit 096325b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinystories.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ def train_vocab(vocab_size):

# 2) train the sentencepiece model
print("Will now train the vocab...")

spm.SentencePieceTrainer.train(input=tiny_file,
model_prefix=prefix,
model_type="bpe",
vocab_size=vocab_size,
self_test_sample_size=0,
input_format="text",
character_coverage=1.0,
num_threads=os.cpu_count(),
split_digits=True,
allow_whitespace_only_pieces=True,
byte_fallback=True,
Expand Down

0 comments on commit 096325b

Please sign in to comment.