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

FIX: Fix CI on transformers main #1576

Merged
merged 7 commits into from
Apr 23, 2024
Merged

FIX: Fix CI on transformers main #1576

merged 7 commits into from
Apr 23, 2024

Conversation

younesbelkada
Copy link
Contributor

@younesbelkada younesbelkada commented Apr 23, 2024

as per title

Pushed an updated tiny-llama that has the pad_token_id fixed to something different to -1, which caused issues on transformers main with errors such as:

  File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/transformers/generation/configuration_utils.py", line 669, in save_pretrained
    raise ValueError(str([w.message for w in caught_warnings]))
ValueError: [UserWarning('`pad_token_id` should be positive but got -1. This will cause errors when batch generating, if there is padding. Please set `pas_token_id` explicitly by `model.generation_config.pad_token_id=PAD_TOKEN_ID` to avoid errors in generation, and ensure your `input_ids` input does not have negative values.')]

@younesbelkada younesbelkada marked this pull request as ready for review April 23, 2024 12:18
@HuggingFaceDocBuilderDev

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.

@younesbelkada younesbelkada merged commit 9f68ead into main Apr 23, 2024
9 checks passed
@younesbelkada younesbelkada deleted the younesbelkada-patch-2 branch April 23, 2024 12:31
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.

2 participants