YanaiEliyahu/AdasOptimizer

Pytorch

FilipAndersson245 opened this issue · 7 comments

This project looks cool, will you add PyTorch support in the future?

Yep, I already started writing one.

https://github.com/YanaiEliyahu/AdasOptimizer/blob/master/adasopt_pytorch.py

In my own testing it works OK.
How does it work for you?

Will check it out when I get to my computer.

https://github.com/YanaiEliyahu/AdasOptimizer/blob/master/adasopt_pytorch.py

In my own testing it works OK.
How does it work for you?

It seems like Cuda is not properly set when running this code on the GPU,
adding device="cuda:0 here made it work temporary, but it can probably be set automatically depending on input device?

does ,device=self._curr_var.device also work for you?

does ,device=self._curr_var.device also work for you?

Yes that seems to work

Great, I'll close this just for the protocol.