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

Support FusedLinearCrossEntropy for Gemma2 #320

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

Tcc0403
Copy link
Contributor

@Tcc0403 Tcc0403 commented Oct 22, 2024

Summary

Resolves #127.

Fuse softcapping into cross_entropy kernel, so it can be called by fused linear cross entropy function.

Testing Done

Current monkey patch for Gemma2 can't pass covergence test without flce either. The test is commented out for now.

  • Hardware Type:
  • run make test to ensure correctness
  • run make checkstyle to ensure code style
  • run make test-convergence to ensure convergence

@Tcc0403 Tcc0403 marked this pull request as ready for review October 22, 2024 22:21
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.

[feat] FusedLinearCrossEntropy support for Gemma2
1 participant