lucidrains / lion-pytorch

🦁 Lion, new optimizer discovered by Google Brain using genetic algorithms that is purportedly better than Adam(w), in Pytorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using Triton with PyTorch 2.0 for AMP training results in tensors containing inf values.

DrRyanHuang opened this issue · comments

commented

Hi, thx for your great work!

I set use_triton=True, and turned on automatic mixed precision training, but inf appeared in the results.
Does the lion_pytorch/triton.py need to consider bf16 or fp16?

It seems this issue #20 (comment) is similar to mine