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

[transformer] keep high precisioin in softmax #2508

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Conversation

Mddct
Copy link
Collaborator

@Mddct Mddct commented Apr 29, 2024

LLM选择softmax的时候保持高精度, 稳定模型在bf16的时候的训练

比如:
https://github.com/google/gemma_pytorch/blob/main/gemma/model.py#L288

@robin1001 robin1001 merged commit 47b6cfb into main Apr 29, 2024
6 checks passed
@robin1001 robin1001 deleted the Mddct-fix-half branch April 29, 2024 10:12
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.

2 participants