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

Merged
merged 19 commits into from
Nov 8, 2024

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
@pansershrek
Copy link

@ByronHsu Hi! Can you review this PR please? It thinks to me that this improvement will be very useful)

@ByronHsu ByronHsu merged commit 2d3eb94 into linkedin:main Nov 8, 2024
2 checks passed
@ByronHsu
Copy link
Collaborator

ByronHsu commented Nov 8, 2024

@pansershrek merged. can you try by installing liger-kernel-nightly?

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
4 participants