Skip to content

Conversation

@Echo-Nie
Copy link
Contributor

draft_tokens_out: [[ 0 50 60  0  0  0]]
seq_lens_this_time_out: [3]
.
draft_tokens_out: [[0 0 0 0]]
seq_lens_this_time_out: [1]
.
----------------------------------------------------------------------
Ran 2 tests in 0.002s

@paddle-bot
Copy link

paddle-bot bot commented Aug 30, 2025

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contributor External developers label Aug 30, 2025
print("seq_lens_this_time_out:", seq_lens_this_time.numpy())

# Check if draft tokens are correctly extracted
self.assertIn(50, draft_tokens.numpy()[0])
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里借助 step_idx 信息,改为在具体位置判断是否相等

Copy link
Contributor Author

Choose a reason for hiding this comment

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

这里借助 step_idx 信息,改为在具体位置判断是否相等

Thx, Done

4,
)

# print("step_idx:", step_idx.numpy())
Copy link
Collaborator

Choose a reason for hiding this comment

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

辛苦删除注释

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, thx

3,
)

print("draft_tokens_out:", draft_tokens.numpy())
Copy link
Collaborator

Choose a reason for hiding this comment

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

辛苦删除注释

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, Thx

@freeliuzc
Copy link
Collaborator

逻辑已没问题,删除注释后,CI过了合入

@Echo-Nie
Copy link
Contributor Author

Echo-Nie commented Sep 7, 2025

Maybe this PR is ready to be merged. @luotao1

@freeliuzc freeliuzc merged commit 20495f9 into PaddlePaddle:develop Sep 8, 2025
15 of 17 checks passed
@Echo-Nie Echo-Nie deleted the ngr branch October 17, 2025 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants