You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug Report] Padding side inconsistency with Huggingface Transformers #801
bugSomething isn't workingcomplexity-moderateModerately complicated issues for people who have intermediate experience with the codeneeds-investigationIssues that need to be recreated, or investigated before work can be done
Describe the bug
The HookedTransformer tokenizer has the padding side set to "right" for Gemma 2 2b. However, the huggingface autotokenizer has the padding side set to "left." I'm not sure why these are inconsistent.
bugSomething isn't workingcomplexity-moderateModerately complicated issues for people who have intermediate experience with the codeneeds-investigationIssues that need to be recreated, or investigated before work can be done
Activity
Fix: preserve tokenizer.padding_side when reloading with add_bos_token (