Change ProgressCallback to use dynamic_ncols=True
# What does this PR do?

Fixes #24100 

## Who can review?

This is about the trainer module, therefore I will tag,

@sgugger

Thank you
_The documentation is not available anymore as the PR was closed or merged._<|||||>Hi @sgugger,

I merge from `upstream/main`, and then run `make style`!

I hope this will be fine.<|||||>Mm the diff now shows 43 files. COuld you limit your changes to the file you are actually modifying?<|||||>@sgugger 

Sorry for the late reply, and it looks fine now!<|||||>Thanks! Failures are unrelated and due to a down time on the Hub.