You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
I'm looking for a way to call bitnetcpp in a C# console application.
I successfully compiled bitnetcpp, and i have llama.dll, ggml.dll, llava_shared.dll and a lot of llama-*.exe
Is it possible to make a c++/CLI wrapper around it to call it from a C# console application ?
For now, i can load the dll with my wrapper, but i can't find a method to call to make inferences.
And the code of the console application using this wrapper :
var engine = new InferenceEngine("llama.dll");
string result = engine.Infer("What is the capital of England ?");
Console.WriteLine(result);
Console.Read();
This code load llama.dll and his dependencies, but it crashes with "Function 'llama_infer' not found in llama.dll"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I'm looking for a way to call bitnetcpp in a C# console application.
I successfully compiled bitnetcpp, and i have llama.dll, ggml.dll, llava_shared.dll and a lot of llama-*.exe
Is it possible to make a c++/CLI wrapper around it to call it from a C# console application ?
For now, i can load the dll with my wrapper, but i can't find a method to call to make inferences.
the code of my wrapper :
And the code of the console application using this wrapper :
This code load llama.dll and his dependencies, but it crashes with "Function 'llama_infer' not found in llama.dll"
Thanks
Beta Was this translation helpful? Give feedback.
All reactions