Skip to content

half precision for inference

Choose a tag to compare

@abhinadduri abhinadduri released this 16 Jul 15:24
25360ba

the model is trained in bf16-mixed precision, so this patch uses bfloat16 for inference when cuda is available. empirically for the 600m model this improves inference speed ~8-9x