-
Notifications
You must be signed in to change notification settings - Fork 717
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
Introducing onnx and OpenVino support to Missing Annotators #14359
Merged
maziyarpanahi
merged 22 commits into
release/550-release-candidate
from
Introducing-ONNX-support-to-Instructor-
Sep 1, 2024
Merged
Introducing onnx and OpenVino support to Missing Annotators #14359
maziyarpanahi
merged 22 commits into
release/550-release-candidate
from
Introducing-ONNX-support-to-Instructor-
Sep 1, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ahmedlone127
changed the title
Introducing onnx support to instructor
Introducing onnx support to Instructor, DistilBertForZeroShotClassification, XlmRobertaForZeroShotClassification and RobertaForZeroShotClassification
Aug 5, 2024
ahmedlone127
changed the title
Introducing onnx support to Instructor, DistilBertForZeroShotClassification, XlmRobertaForZeroShotClassification and RobertaForZeroShotClassification
Introducing onnx support to Instructor, DistilBertForZeroShotClassification, XlmRobertaForZeroShotClassification,RobertaForZeroShotClassification and BartTrasnformer
Aug 7, 2024
ahmedlone127
changed the title
Introducing onnx support to Instructor, DistilBertForZeroShotClassification, XlmRobertaForZeroShotClassification,RobertaForZeroShotClassification and BartTrasnformer
Introducing onnx support to Instructor, DistilBertForZeroShotClassification, XlmRobertaForZeroShotClassification,RobertaForZeroShotClassification,GPT2Transformer and BartTrasnformer
Aug 10, 2024
ahmedlone127
changed the title
Introducing onnx support to Instructor, DistilBertForZeroShotClassification, XlmRobertaForZeroShotClassification,RobertaForZeroShotClassification,GPT2Transformer and BartTrasnformer
Introducing onnx support to Missing Annotators
Aug 14, 2024
ahmedlone127
changed the title
Introducing onnx support to Missing Annotators
Introducing onnx and OpenVino support to Missing Annotators
Aug 22, 2024
maziyarpanahi
changed the base branch from
master
to
release/550-release-candidate
September 1, 2024 18:26
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR introduces ONNX Support to the Following Annotators :
InstructorEmbeddings
DistilBertForZeroShotClassification
RobertaForZeroShotClassification
BartTransformer
GPT2
XlmRobertaForZeroShotClassification
HubertForCTC
Wav2Vec2ForCTC
BartForZeroShotClassificaiton
DebertaForZeroShotClassificaiton
This PR introduces OpenVino support to the Following Annotators:
WhisperForCTC
AlbertForSequenceClassification
AlbertForTokenClassification
AlbertoForQuestionAnswering
BartForZeroShotClassification
BertForQuestionAnswering
BertForSequenceClassification
BertForTokenClassication
BertForZeroShotClassification
This PR introduces ONNX support to the instructor Embedding, we use a slightly different approach compared to the TensorFlow implementation, however, it's similar to what the Python Instructor Library is using. In their implementation, they take the average of the token embeddings and perform a linear activation on the output tensor before normalizing. We do the exact same except we don't perform the linear activation. ( we also produce slightly different results from the average pooling implementation we have compared to theirs )