[Trainer] Move NEFTune impl to standalone functions (#43714)
* style
* update
* Apply suggestion from @kashif
Co-authored-by: Kashif Rasul <kashif.rasul@gmail.com>
* Apply suggestion from @kashif
Co-authored-by: Kashif Rasul <kashif.rasul@gmail.com>
* Apply repo consistency fixes
---------
Co-authored-by: Kashif Rasul <kashif.rasul@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>