Fix typos in strings and comments (#37910)

This commit is contained in:
co63oc
2025-05-01 21:58:58 +08:00
committed by GitHub
parent c80f65265b
commit 5b573bebb9
17 changed files with 25 additions and 25 deletions

View File

@@ -40,7 +40,7 @@ def pack_examples(tok, src_examples, tgt_examples, max_tokens=1024):
for src, tgt in tqdm(sorted_examples[1:]):
cand_src = new_src + " " + src
cand_tgt = new_tgt + " " + tgt
if is_too_big(cand_src) or is_too_big(cand_tgt): # cant fit, finalize example
if is_too_big(cand_src) or is_too_big(cand_tgt): # can't fit, finalize example
finished_src.append(new_src)
finished_tgt.append(new_tgt)
new_src, new_tgt = src, tgt