-
Notifications
You must be signed in to change notification settings - Fork 582
Solves #2598 #2599
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
base: main
Are you sure you want to change the base?
Solves #2598 #2599
Conversation
Co-authored-by: Joe Cummings <[email protected]>
Co-authored-by: Joe Cummings <[email protected]>
Co-authored-by: Joe Cummings <[email protected]>
Co-authored-by: Joe Cummings <[email protected]>
Co-authored-by: Joe Cummings <[email protected]>
Co-authored-by: Joe Cummings <[email protected]>
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchtune/2599
Note: Links to docs will display an error until the docs builds have been completed. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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.
Thanks for the PR! Before giving a more detailed review, one high-level comment: I wonder if we really want to handle this for people in general. E.g. with pad_logits
it is possible for me to run KD on two totally different tokenizers (and vocab spaces) without seeing any errors, right? This goes beyond just the case of "vocab of teacher model is subset of vocab of student model" (or vice versa).
Anyways I agree that mismatched vocab is an challenge (especially for Qwen models) -- it's come up in a couple issues on the repo before. But I also want to make sure we don't do something behind the scenes that allows someone to accidentally shoot themselves in the foot. Would be interested to hear your thoughts on this though.
When I run KD for Qwen models that don't have the same tokenizer I get size mismatch exception, Qwen14B as teacher and Qwen3B as student, that's why I added the padding solution to my local code and after #2589 is accepted other people who run the recipe will face the same error. |
No description provided.