clip-as-service icon indicating copy to clipboard operation
clip-as-service copied to clipboard

FP16 / FP32 get different sentence vector

Open NickChiang1215 opened this issue 3 years ago • 3 comments

I using same model same input sentence but get different sentence vector by setting FP16 / FP32

NickChiang1215 avatar Jan 12 '21 09:01 NickChiang1215

I also had the same problem

houshangwu avatar May 18 '22 03:05 houshangwu

@houshangwu Thanks for pointing it out. Some layers/operators result in inconsistent output on FP16. To fix this problem, the mix-precision approach could work. Please keep an eye on our progress, we are working on mix-precision inference support.

numb3r3 avatar May 18 '22 03:05 numb3r3

@houshangwu感谢您指出。某些层/运算符会导致 FP16 上的输出不一致。为了解决这个问题,混合精度方法可以工作。请密切关注我们的进展,我们正在努力支持混合精度推理。

Thank you for your reply. I will continue to follow your progress.

houshangwu avatar May 28 '22 17:05 houshangwu