I am using Oracle Database 23ai Free and trying to load an ONNX model for text embedding using DBMS_VECTOR.LOAD_ONNX_MODEL
. My model (LaBSE) is approximately 1.88GB in size.
Here is my PL/SQL block:
BEGIN
DBMS_VECTOR.DROP_ONNX_MODEL (
model_name => 'LaBSE',
force => TRUE);
DBMS_VECTOR.LOAD_ONNX_MODEL (
directory => 'model_dir',
file_name => 'LaBSE.onnx',
model_name => 'LaBSE');
END;
However, I get the following error:
ORA-54400: Invalid BLOB size
ORA-06512: at "SYS.DBMS_VECTOR", line 2150
ORA-06512: at "SYS.DBMS_DATA_MINING", line 5767
ORA-06512: at "SYS.DBMS_VECTOR", line 2145
ORA-06512: at line 6
I checked the Oracle documentation for ORA-54400 and ORA-06512 but couldn't find a clear resolution.
Is there a size limit for ONNX models in Oracle 23ai Free? If so, is there a way to increase it or work around this issue? Any guidance would be appreciated.
Thanks!