You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
Hi. I think there's an problem in transformer scaling layer.
When I run UNMT, got Exceptionerror in NMT/src/modules/multihead_attention.py line 97.
line 97 : q = self.scaling
line 30 : self.scaling = self.head_dim*-0.5
I could not find the reason.
So I just change my code to
line 97 : q = q / math.sqrt(self.head_dim)
and it worked.