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

Fix incorrect training of first and last Medusa heads #325

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chiwanpark
Copy link
Contributor

Summary

Currently, there are two errors on Medusa training examples:

  1. When we use Liger Kernel, the first head (model.medusa_head[0]) is not trained.
  2. When we don't use Liger Kernel, the logits of the last head (medusa_logits[-1]) is ignored.

This PR fixes these errors.

Testing Done

  • Hardware Type: A100 80GB 8 GPUs
  • run make test to ensure correctness
  • run make checkstyle to ensure code style
  • run make test-convergence to ensure convergence

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