The best ChatGPT that $100 can buy.
Python
Apply suggestion from @svlandeg for nicer looking comparison
Andrej8b1cecaa95d1
diff --git a/scripts/mid_train.py b/scripts/mid_train.pyindex 60c7bbc..dd0768c 100644--- a/scripts/mid_train.py+++ b/scripts/mid_train.py@@ -139,7 +139,7 @@ def mid_data_generator(split):last_step = True # toggle last_step to True, which will terminate the training loop# Stopping condition to respect num_iterations, if givenit += 1- if num_iterations > 0 and it >= num_iterations and split == "train":+ if 0 < num_iterations <= it and split == "train":last_step = True # toggle last_step to True, which will terminate the training loop# Build up inputs/targets and yieldfor i in range(needed_tokens):