Skip to content

Conversation

@rongruosong
Copy link

PR types

Bug fixes

PR changes

Others

Description

在MLMPromptTokenizer中,当 self.tokenizer.truncate_side == 'left'是True,函数_create_max_lengths_from_do_truncate 的结果包含None,input_ids = orig_input_ids[index][-max_lengths[index] :]会造成:TypeError: bad operand type for unary -: 'NoneType'

@paddle-bot
Copy link

paddle-bot bot commented Apr 24, 2023

Thanks for your contribution!

@rongruosong rongruosong changed the title fix the bug when truncation_side==left fix the bug when truncate_side==left Apr 25, 2023
@sijunhe sijunhe requested a review from LemonNoel May 23, 2023 05:05
@github-actions
Copy link

This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。

@github-actions
Copy link

This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。

@github-actions
Copy link

This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。

@github-actions github-actions bot added the stale label Apr 29, 2024
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions github-actions bot removed the stale label Oct 16, 2024
@github-actions
Copy link

This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。

@github-actions github-actions bot added the stale label Dec 16, 2024
@paddle-bot paddle-bot bot closed this Dec 23, 2025
@paddle-bot
Copy link

paddle-bot bot commented Dec 23, 2025

Automatically closed by Paddle-bot.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants