Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[Patch-t5-tokenizer] Patches the changes on T5 to make sure previous behaviour is still valide for beginning of words #24622
[Patch-t5-tokenizer] Patches the changes on T5 to make sure previous behaviour is still valide for beginning of words #24622
Changes from all commits
e59ec38
e31ac3a
0384cd8
d360308
5cc0c9d
adfd99d
7df5038
57995f9
aa9455f
b26d29e
6ed0617
b558acd
df58420
c20b6ba
b7a7776
347236e
85c5894
4845533
6ac18bc
26ff9f1
ffbc8a6
3bdc83e
5edfb39
a55dabf
de889cb
aaf8610
bfcb85b
181981c
c75104b
c745713
7c71391
1578640
38892b6
7aaaec1
c4d71df
0c5e48f
77c9191
09f351e
0609ee7
10fa693
1158298
557db8e
4761837
cce91ee
dad0c66
4217843
62a6eb5
1c209a7
d540e2e
5d17a46
ea057ca
071b87a
2fdcf09
3cd1f29
ae31daa
9510908
23ab157
898c057
d6170ba
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Why is this deleted?
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.
Because it's messing up the import. By deleting it here, we can at least run the test individually
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.
I am not sure what's messed up. With the fix in #24689 , everything should be fine.
Also, moving this to another place might count as breaking change, as
won't work anymore (despite the direct such usage might be low).
See here
Could we bring it back quickly, and you open an issue about what's the import error you got. Thanks!
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.
Having a look
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.
Also
from transformers.utils import sentencepiece_model_pb2
works for meThere 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.
Comes from #24690
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.
The idea is that we only import it once, where we actually use it.
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.
This does not fix the version error, but fixes the issue with 3.20.3, when we cannot use seqio or anything importing protobuf:
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.
Hi, thanks for the information. Could you provide the full trace 🙏 . It might be useful.
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.
Just added it!