by minimaxir · 3y ago · 0 comments
It's true also that fp16 is often manageable with enough batch/layer norm and gradient clipping.
The transfer pipeline I wrote for fp32->fp16 also took a lot more work than fp32->bf16
It's an empirical question and depends upon the nature of your problem and data. You should try all three fp32, fp16, and bf16 as part our model selection / hyperparameter tuning.
For example, in audio generative models (where typical output is 16-bit), I've sometimes found that fp16 and bf16 just don't produce good output as fp32 weights.