Skip to content

tokenizer 'padding' param is not correct. #669

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

Merged
merged 3 commits into from
Apr 22, 2025

Conversation

xgwang
Copy link
Contributor

@xgwang xgwang commented Apr 10, 2025

background:
i was evaluating models (such as Qwen2.5-7B-Instruct) against AIME 2024 dataset, the output seems not good. after digging, the tokenizer pad the input to be max_length so the output is always 1 token.
after param changed to 'longest', the generation works good.

@HuggingFaceDocBuilderDev
Copy link
Collaborator

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@NathanHB NathanHB merged commit 88e3a3b into huggingface:main Apr 22, 2025
4 checks passed
@xgwang xgwang deleted the xg-fix-greeduntil branch April 23, 2025 03:22
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.

3 participants