We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2b04e8 commit 4286586Copy full SHA for 4286586
src/transformers/models/paligemma/modeling_paligemma.py
@@ -519,7 +519,7 @@ def forward(
519
# mask out pad-token-ids in labels for BC
520
if labels is not None and self.pad_token_id in labels:
521
logger.warning_once(
522
- "`labels` contains `pad_token_id` which will be masked with `config.ignore_index`. ",
+ "`labels` contains `pad_token_id` which will be masked with `config.ignore_index`. "
523
"You have to mask out `pad_token_id` when preparing `labels`, this behavior will be removed in v.4.46.",
524
)
525
labels = torch.where(input_ids == self.pad_token_id, self.config.ignore_index, labels)
0 commit comments