Skip to content

Fix downcasting and upcasting#67

Merged
pengchongjin merged 1 commit intogoogle:mainfrom
unslothai:main
Jun 30, 2024
Merged

Fix downcasting and upcasting#67
pengchongjin merged 1 commit intogoogle:mainfrom
unslothai:main

Conversation

@danielhanchen
Copy link
Contributor

  1. Fixes RMS Layernorm downcasting prematurely. We move it to the very end.
    unnamed

  2. Fixes embedding matrix scaling / normalizer upcasting to float32. Instead we must use float16 or bfloat16 for the normalizer.
    unnamed-1

1. Fixes RMS Layernorm downcasting prematurely. We move it to the very end.
2. Fixes embedding matrix scaling / normalizer upcasting to float32. Instead we must use float16 or bfloat16 for the normalizer.
@pengchongjin
Copy link
Contributor

Thanks, @danielhanchen !

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