Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correct device for pos_emb #60

Merged
merged 1 commit into from
Sep 15, 2024
Merged

correct device for pos_emb #60

merged 1 commit into from
Sep 15, 2024

Conversation

JackTemaki
Copy link
Contributor

@JackTemaki JackTemaki commented Sep 15, 2024

Follow-up for #55

When using the Transformer-XL style (learnable_pos_emb=False) the device for the sinusoidal embedding was not correctly set, causing a device mismatch when training on GPU.

@JackTemaki JackTemaki merged commit 5aa74f8 into main Sep 15, 2024
2 checks passed
@NeoLegends NeoLegends deleted the nick_fix_relposmhsa_device branch September 18, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants