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

LayerNorm is now a bit safer, by explicitly validating shapes. #471

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

patrick-kidger
Copy link
Owner

@patrick-kidger patrick-kidger commented Sep 5, 2023

(dlwh pointed out that otherwise this can silently normalise over sequence dimensions in transformer models if you miss the vmap)

@patrick-kidger patrick-kidger changed the title LayerNorm is now a bit safer, by explicitly validating shapes. (dlwh pointed out that otherwise this can silently normalise over sequence dimensions in transformer models if you miss the vmap) LayerNorm is now a bit safer, by explicitly validating shapes. Sep 5, 2023
…pointed out that otherwise this can silently normalise over sequence dimensions in transformer models if you miss the vmap)
@patrick-kidger patrick-kidger changed the base branch from main to dev September 5, 2023 14:31
@patrick-kidger patrick-kidger merged commit e3b79c4 into dev Sep 5, 2023
@patrick-kidger patrick-kidger deleted the stricter-layernorm branch September 5, 2023 14:39
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.

1 participant