Don't push checkpoints to hub in `no_trainer` scripts
# Don't push checkpoints to the Hub in `no_trainer` scripts

## What does this add?

- Creates a `gitignore` file in the base folder if `push_to_hub` was passed and one does not exist
- During each call to `save_state`, if `push_to_hub` was passed then then directory is added to the .gitignore

## Why is it needed?

Users shouldn't expect to have all of their checkpoints sent to both the Hub and saved locally, it should just be locally until they are ready for the final save
_The documentation is not available anymore as the PR was closed or merged._