Skip to Main Content

Oracle Database Free

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

fail to load onnx model to 23ai free which downloaded from hugging face.

Old XuApr 23 2025 — edited Apr 23 2025

I downlload the MiniLM multilignual version from huggging face directly (linkage below)

https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2/tree/main/onnx

but when I load it to 23ai using

BEGIN 
DBMS_VECTOR.LOAD_ONNX_MODEL( 
directory => 'DM_DUMP', 
file_name => 'model.onnx', 
model_name => 'ALL_MINILM_L12_V2'); 
END;

I got error message

ORA-54426: Tensor "input_ids" contains multiple dimensions (2) of variable size.

ORA-06512: at "SYS.DBMS_VECTOR", line 2181

ORA-06512: at "SYS.DBMS_DATA_MINING", line 5767

ORA-06512: at "SYS.DBMS_VECTOR", line 2176

ORA-06512: at line 2

do I need to do something on this model before I load it to 23ai?

Comments
Post Details
Added on Apr 23 2025
3 comments
59 views