# overwrite initial hyperparameters with from the best_run for k,v in best_run.hyperparameters.items(): setattr(training_args, k, v) # Define a new repository to store our distilled model best_model_ckpt = "tiny-bert-best" training_args.output_dir = best_model_ckpt