Skip to content

Add Gemma3 bf16 related changes - #1441

Merged
Nenad Banfic (nenad1002) merged 4 commits into
kvaishnavi/gemma3-mmfrom
nebanfic/gemma3-mm-2
May 2, 2025
Merged

Add Gemma3 bf16 related changes#1441
Nenad Banfic (nenad1002) merged 4 commits into
kvaishnavi/gemma3-mmfrom
nebanfic/gemma3-mm-2

Conversation

@nenad1002

Copy link
Copy Markdown
Contributor

The Gemma3 model must compute layer norms and residual connections in FP32 to ensure accurate logits. Additionally, all logits are now explicitly cast to FP32. This PR removes the incorrect code paths and refactors the builder script so that it cleanly supports both Gemma and non-Gemma models.

@nenad1002

Copy link
Copy Markdown
Contributor Author

Automatically merging— the final branch will be reviewed once all multimodal changes have been incorporated.

@nenad1002
Nenad Banfic (nenad1002) merged commit be4e533 into kvaishnavi/gemma3-mm May 2, 2025
@nenad1002
Nenad Banfic (nenad1002) deleted the nebanfic/gemma3-mm-2 branch May 2, 2025 18:02
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