-
Notifications
You must be signed in to change notification settings - Fork 660
【Hackathon 9th No.68】supplementary unit test for ngram_match #3732
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
Conversation
Echo-Nie
commented
Aug 30, 2025
|
Thanks for your contribution! |
tests/operators/test_ngram_match.py
Outdated
| 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]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里借助 step_idx 信息,改为在具体位置判断是否相等
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里借助 step_idx 信息,改为在具体位置判断是否相等
Thx, Done
tests/operators/test_ngram_match.py
Outdated
| 4, | ||
| ) | ||
|
|
||
| # print("step_idx:", step_idx.numpy()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
辛苦删除注释
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thx
tests/operators/test_ngram_match.py
Outdated
| 3, | ||
| ) | ||
|
|
||
| print("draft_tokens_out:", draft_tokens.numpy()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
辛苦删除注释
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, Thx
|
逻辑已没问题,删除注释后,CI过了合入 |
|
Maybe this PR is ready to be merged. @luotao1 |