Skip to content
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

Make token_type_ids optional output for HFBertTokenizer op #583

Merged
merged 27 commits into from
Nov 10, 2023

Conversation

YUNQIUGUO
Copy link
Contributor

As title.

@YUNQIUGUO YUNQIUGUO requested a review from a team as a code owner October 26, 2023 23:50
@@ -396,7 +396,7 @@ KernelHfBertTokenizer::KernelHfBertTokenizer(const OrtApi& api, const OrtKernelI
void KernelHfBertTokenizer::Compute(const ortc::Tensor<std::string>& input,
Copy link
Member

Choose a reason for hiding this comment

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

a side question, why use KernelHfBertTokenizer, instead of KernelBertTokenizer?

Copy link
Contributor Author

@YUNQIUGUO YUNQIUGUO Oct 30, 2023

Choose a reason for hiding this comment

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

using HFBertTokenizer here as the model I am tryig to add ppp to are mainly from hugging face distilbert-based models.

operators/tokenizer/bert_tokenizer.cc Outdated Show resolved Hide resolved
operators/tokenizer/bert_tokenizer.cc Outdated Show resolved Hide resolved
test/shared_test/test_ortops_hfberttokenizer.cc Outdated Show resolved Hide resolved
Copy link
Contributor

@skottmckay skottmckay left a comment

Choose a reason for hiding this comment

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

:shipit:

@YUNQIUGUO YUNQIUGUO merged commit 73e69bb into main Nov 10, 2023
8 of 11 checks passed
@YUNQIUGUO YUNQIUGUO deleted the yguo/optional-output-for-bertokenizer-token-type-id branch November 10, 2023 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants