benchmarks icon indicating copy to clipboard operation
benchmarks copied to clipboard

Change bf16 to amp_bf16

Open Srini-98 opened this issue 1 year ago • 3 comments

Hi,

I tried replicating the pretraining bert script and when I ran it with the yaml script I got the following error: Value bf16 is not available in Precision. I traced the code and changed bf16 to amp_bf16 to get it to work. Not sure if I am using the outdated code but flagging it here.

https://github.com/mosaicml/examples/blob/main/examples/bert/yamls/main/hf-bert-base-uncased.yaml - line 82

Srini-98 avatar May 10 '23 02:05 Srini-98

Thanks for catching this! You are correct in using the amp_bf16 flag. We are updating the yamls accordingly

jacobfulano avatar May 14 '23 05:05 jacobfulano

@jacobfulano was this fixed?

dakinggg avatar Aug 16 '23 20:08 dakinggg

@jacobfulano : I submitted a PR. Just got bitten by this myself.

Taytay avatar Jan 08 '24 22:01 Taytay