last_log = -1
while nb_validated < nb:
+ # Generate new quizzes
+
model = models[torch.randint(len(models), (1,)).item()]
model = copy.deepcopy(model).to(local_device).eval()
generator_id = model.id
desc=None,
)
+ # Select the ones that are solved properly by some models and
+ # not understood by others
+
nb_correct, nb_wrong = 0, 0
for i, model in enumerate(models):
nb_validated += to_keep.long().sum().item()
record.append(c_quizzes[to_keep])
- # log_string(f"generate_c_quizzes {nb_validated}")
-
#####################
duration = time.perf_counter() - start_time