Skip to content

Conversation

@RadoslawPlawecki
Copy link
Contributor

Description

While running Transformers, the message was received.

Generating: 0%| | 0/81 [00:00<?, ?it/s]The following generation flags are not valid and may be ignored: ['temperature']. Set TRANSFORMERS_VERBOSITY=info for more details.
A decoder-only architecture is being used, but right-padding was detected! For correct generation results, please set padding_side='left' when initializing the tokenizer.

Thus, padding_side="left" was added to the tokenizer initialization. After introducing the changes, all the tests were passed successfully.

@DzmitryPihulski DzmitryPihulski linked an issue Nov 29, 2025 that may be closed by this pull request
@DzmitryPihulski DzmitryPihulski added the bug Something isn't working label Nov 29, 2025
Copy link
Collaborator

@DzmitryPihulski DzmitryPihulski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be also nice to add this as parameter for tokenizer init. But I will add it in future

@DzmitryPihulski DzmitryPihulski merged commit 70489db into LLMSQL:main Dec 1, 2025
4 checks passed
@codecov
Copy link

codecov bot commented Dec 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

padding side set when using Transformers

2 participants