sru icon indicating copy to clipboard operation
sru copied to clipboard

Mixed Precision Training

Open Zadagu opened this issue 2 years ago • 1 comments

Hi,

first of all I want to thank you for your great work. I'm using SRUs for speech enhancement, they do very well on a reasonable computational cost.

I would like to know if there is a possibility to train SRUs in mixed precision mode? I tried to enable it, by setting precision=16 in the pytorch lightning trainer, but that didn't do the trick.

Kind of regards, Zadagu

Zadagu avatar May 17 '22 14:05 Zadagu

@Zadagu SRU / SRU++ can work with pytorch native mixed precision training.

See this for example: https://github.com/asappresearch/sru/blob/3.0.0-dev/experiments/srupp_experiments/train_enwik8.py#L250

taolei87 avatar Jun 07 '22 21:06 taolei87