See solution here:
  
    
    
    "Dump_all() got an unexpected keyword argument 'sort_keys'" after running trainer.push_to_hub() Beginners
  
  
    Yes, you need to set push_to_hub=True in the training arguments before training. Check the updated notebooks!