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

Introducing onnx and OpenVino support to Missing Annotators #14359

Conversation

ahmedlone127
Copy link
Contributor

@ahmedlone127 ahmedlone127 commented Aug 2, 2024

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 )

@ahmedlone127 ahmedlone127 changed the title Introducing onnx support to instructor Introducing onnx support to Instructor, DistilBertForZeroShotClassification, XlmRobertaForZeroShotClassification and RobertaForZeroShotClassification Aug 5, 2024
@ahmedlone127 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 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 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 ahmedlone127 changed the title Introducing onnx support to Missing Annotators Introducing onnx and OpenVino support to Missing Annotators Aug 22, 2024
@maziyarpanahi maziyarpanahi changed the base branch from master to release/550-release-candidate September 1, 2024 18:26
@maziyarpanahi maziyarpanahi merged commit f47ee50 into release/550-release-candidate Sep 1, 2024
5 checks passed
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.

2 participants