Samuel Barry

Results comments of Samuel Barry

> This PR addresses issue [#37474](https://github.com/huggingface/transformers/issues/37474) by introducing a dedicated _reduce_loss method in Trainer to correctly normalize losses across single and multi-GPU setups. Unlike a one-line patch, this solution provides...

Hey @bryanchrist, I tried to reproduce the issue but couldn't. Could it be linked to your data (feel free share it if you want me to have another look) ?...

Hey @qgallouedec @yao-matrix - I was able to reproduce and fix the issue in https://github.com/huggingface/trl/pull/4080 Feel free to take a look and leave comments when you get the time 🤗!

Hey @manitadayon If you're running your training using several GPUS, this looks like an issue with saving only the shards from one of your GPUs. I believe if you use...

Hey @Jintao-Huang! You're very right, that's definitely a free lunch. I opened a [PR](https://github.com/huggingface/accelerate/pull/3776/) to push that small fix, run tests and benchmark to see what speedup this allows on...