#Loading a DLL [onnxGenAI runtime]

1 messages · Page 1 of 1 (latest)

woeful crater
#

Hi, I was able to run and inference using onnxGenAI runtime before , it did work just fine but I broke the project and decided to start a new one, now I've some troublesome using the library , I'm not sure if the library loaded correctly or not it seems any Exception would break the entire script .

Microsoft.ML.OnnxRuntimeGenAI.Model..ctor (System.String modelPath)
Rethrow as TypeInitializationException: The type initializer for 'LLM' threw an exception.

I'm not sure if this due to the wrong model path (e.g it doesn't like the spaces ) or the library didn't load at all (compatibility issue?) afaik unity support .net2.1 too right?

mint tiger
#

Not in references of solutions

woeful crater
#

it is

mint tiger
woeful crater
#

yep , I've had a mnaged one but didn't work either (I think)?

mint tiger
woeful crater
mint tiger
#

Just in unity project files

#

And see what inspector showing

woeful crater
#

reimporting it showing me Plugins: Failed to load 'Assets/Plugins/native/onnxruntime-genai.dll' with error 'A dynamic link library (DLL) initialization routine failed.

mint tiger
mint tiger
woeful crater
mint tiger
woeful crater
mint tiger
woeful crater
#

how to format it again ?

mint tiger
mint tiger
woeful crater
#

ye same error

#

it's either because of the space in file path or the dll itself isn't Intializing for some reasons

mint tiger
woeful crater
#

I moved there to avoid the space within the project folder path

#

I tried streaming asset too

#

edit: I didn't update it but the project was woring before it broke somehow

#

but the newer version doesn't work at all

#

I'm trying to build multimodal GenAI exampels