e = "???"
log_string(
- f"keep c_quizzes model {model_for_generation.id} nb_accumulated {total_nb_validated} / {nb_to_create} (finishes {e})"
+ f"keep c_quizzes model {model_for_generation.id} nb_accumulated {total_nb_validated} / {nb_to_create} (finishes {e} -- {(total_nb_validated * 3600)/duration}/h)"
)
validated_quizzes = torch.cat(recorded, dim=0)
###############################################################
def generate_c_quizzes(
- self,
- nb,
- model_for_generation,
- forward_only=False,
- generation_temperature=1.0
+ self, nb, model_for_generation, forward_only=False, generation_temperature=1.0
):
c_quizzes = torch.empty(
nb,
input=c_quizzes,
ar_mask=self.make_ar_mask(c_quizzes),
seq_logproba=seq_logproba,
- temperature=1.0
+ temperature=1.0,
deterministic_synthesis=False,
device=self.device,
)