-
Notifications
You must be signed in to change notification settings - Fork 33
Make vocab mapping optional #208
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
Conversation
| from typing import Any, ClassVar, Literal | ||
|
|
||
| import torch | ||
| from django.contrib.gis.gdal.prototypes.srs import from_user_input |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this import if it's not used?
|
Hi @meminkula, thank you for contributing. Since this is your first contribution, maybe I can give you some pointers to get you started:
Let me know if you have any questions. |
|
Hi @meminkula are you still interested in landing this PR? |
|
@Mergifyio refresh |
✅ Pull request refreshed |
|
This pull request has merge conflicts that must be resolved before it can be |
|
@meminkula are you still interested in landing this? If yes, can you resolve the merge conflicts? |
|
Closing this as stale. @meminkula if you would like keep working on this, please let us know / reopen the pr. |
This Pull Request addresses the issue of unnecessary vocabulary mapping tensors (t2d and d2t) being required for Eagle3Speculator models that utilize the full verifier vocabulary (as detailed in Issue #200). The core change involves updating the init method to accept t2d and d2t as optional arguments. The buffer registration logic in init and the mapping application in the forward pass are now conditional on these tensors being present. This ensures that users running full-vocab Eagle3 models can cleanly omit these buffers, which reduces checkpoint size and simplifies the developer workflow by removing the requirement for redundant "no-op" tensors. I'm excited to contribute this fix to the project.
Note: that was my first contribute. I hope i can be helpfull.