diff --git a/LLama/Native/NativeApi.cs b/LLama/Native/NativeApi.cs index 62b4e4bc7..7356c8827 100644 --- a/LLama/Native/NativeApi.cs +++ b/LLama/Native/NativeApi.cs @@ -29,7 +29,7 @@ static NativeApi() try { - //llama_empty_call(); + llama_empty_call(); } catch (DllNotFoundException) { @@ -79,7 +79,8 @@ private static IntPtr TryLoadLibrary() if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) { - return IntPtr.Zero; + return TryLoad("libllama.dylib") + ?? IntPtr.Zero; } #endif