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

Token-wise the same generalization? #99

Closed
Ageliss opened this issue Apr 16, 2024 · 2 comments
Closed

Token-wise the same generalization? #99

Ageliss opened this issue Apr 16, 2024 · 2 comments

Comments

@Ageliss
Copy link

Ageliss commented Apr 16, 2024

Is Medusa1 model generalize token-wise the same as the base model w.o. medusa head?

I found change medusa choices will change the output.

@Ageliss
Copy link
Author

Ageliss commented May 21, 2024

We've figured out this problem by shrinking the medusa choices to only top-1 predictions, i.e., [(0), (0,0), (0,0,0), (0,0,0,0), (0,0,0,0,0)].

In such way, MHCA computation will get a bit-wise the same logits as the baseline wo medusa decoding.

Hope it helps for other people interested in bitwise the same decoding.

@Ageliss
Copy link
Author

Ageliss commented May 21, 2024

We've figured out this problem by shrinking the medusa choices to only top-1 predictions, i.e., [(0), (0,0), (0,0,0), (0,0,0,0), (0,0,0,0,0)].

In such way, MHCA computation will get a bit-wise the same logits as the baseline wo medusa decoding.

Hope it helps for other people interested in bitwise the same decoding.

@Ageliss Ageliss closed this as completed May 21, 2024
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

No branches or pull requests

1 participant