better handle FP8 with and without deepspeed (#3611)
* use the state mixed precision which has undergone all preprocessing
* Update src/accelerate/accelerator.py
Co-authored-by: Marc Sun <57196510+SunMarc@users.noreply.github.com>
* Update src/accelerate/accelerator.py
* accelerator state sets the mixed precision for deepspeed and fp8_enabled
* fix
* fix
---------
Co-authored-by: Marc Sun <57196510+SunMarc@users.noreply.github.com>