-
Notifications
You must be signed in to change notification settings - Fork 717
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrating ONNX runtime (ORT) in Spark NLP 5.0.0 🎉 (#13857)
* Add ONNX Runtime to the dependencies * Add both CPU and GPU coordinates for onnxruntime * Implement OnnxSerializeModel * Implement OnnxWrapper * Update error message for loading external models * Add support for ONNX to BertEmbeddings annotator * Add support for ONNX to BERT backend * Add support for ONNX to DeBERTa * Implement ONNX in DeBERTa backend * Adapt Bert For sentence embeddings with the new backend * Update unit test for BERT (temp) * Update unit test for DeBERTa (temp) * Update onnxruntime and google cloud dependencies * Seems Apple Silicon and Aarch64 are supported in onnxruntime * Cleaning up * Remove bad merge * Update BERT unit test * Add fix me to the try * Making withSafeOnnxModelLoader thread safe * update onnxruntime * Revert back to normal unit tests for now [ski ptest] * Added ADT for ModelEngine (#13862) Co-authored-by: Stefano Lori <s.lori@izicap.com> * Optimize ONNX on CPU * refactor * Add ONNX support to DistilBERT * Add support for ONNX in RoBERTa * Fix the bad serialization on write * Fix using the wrong object --------- Co-authored-by: Stefano Lori <wolliq@users.noreply.github.com> Co-authored-by: Stefano Lori <s.lori@izicap.com>
- Loading branch information
1 parent
ae688ab
commit c2dd80d
Showing
66 changed files
with
1,199 additions
and
455 deletions.
There are no files selected for viewing
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
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
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
Oops, something went wrong.