7 Integration of ONNX Runtime
Learn about ONNX Runtime that enables you to use ONNX models for machine learning tasks within your Oracle AI Database instance.
- About ONNX
ONNX is an open-source format designed for machine learning models. It ensures cross-platform compatibility. This format also supports major languages and frameworks, facilitating efficient model exchange. - Supported Machine Learning Functions for ONNX Runtime
Describes the supported machine learning functions to import pretrained models and perform scoring. - Supported Attribute Data Types
Discover the supported ONNX input data types mapped to SQL data types. - Supported Target Data Types
Discover the supported ONNX target data types mapped to SQL data types. - Custom ONNX Runtime Operations
If you are looking to customize a pretrained embedding model by augmenting with pre-processing and post-processing operations, Oracle supports tokenization of an embedding model as a pre-processing operation and pooling and normalization as post-processing custom ONNX Runtime operations for version 1.15.1. - Use PL/SQL Packages to Import Models
Use theDBMS_DATA_MINING.IMPORT_ONNX_MODELprocedure or theDBMS_VECTOR.LOAD_ONNX_MODELprocedure to import ONNX format models. You can then use the imported ONNX format models through a scoring function run by the in-database ONNX Runtime. - Supported SQL Scoring Functions
Supported scoring functions for in-database scoring of machine learning models imported in the ONNX format are listed. - Examples of Using ONNX Models
The following examples use the Iris data set to showcase loading and inference from ONNX format machine learning models for machine learning techniques such as Classification, Regression, and Clustering in your Oracle AI Database instance. - Traditional Machine Learning ONNX Format Models
Traditional machine learning models using algorithms such as decision trees, random forests, and support vector machines, among others, can be converted to ONNX format. Such models may be produced in other environments and deployed through Oracle AI Database. - Text Transformer ONNX Format Models
Text transformers have the ability to translate natural language text into a numerical vector representation also known as an embedding, you use such vectors for semantic similarity search or other Natural Language Processing (NLP) use cases. - Image Transformer ONNX Format Models
Image transformer is a part of machine learning that helps computers interpret and analyze images and videos. It provides tools to perform tasks like creating image embeddings (using an image transformer), classifying objects, detecting anomalies, and identifying objects in pictures or videos.