Browse Source

Libraries with MacOS Metal Support

Add metal libraries and ggml-metal.metal helper
tags/v0.4.2-preview
SignalRT 2 years ago
parent
commit
37975f405f
3 changed files with 1589 additions and 0 deletions
  1. +4
    -0
      LLama/LLamaSharp.Runtime.targets
  2. +1585
    -0
      LLama/runtimes/ggml-metal.metal
  3. BIN
      LLama/runtimes/libllama.dylib

+ 4
- 0
LLama/LLamaSharp.Runtime.targets View File

@@ -31,5 +31,9 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>libllama.dylib</Link> <Link>libllama.dylib</Link>
</None> </None>
<None Include="$(MSBuildThisFileDirectory)runtimes/ggml-metal.metal">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>ggml-metal.metal</Link>
</None>
</ItemGroup> </ItemGroup>
</Project> </Project>

+ 1585
- 0
LLama/runtimes/ggml-metal.metal
File diff suppressed because it is too large
View File


BIN
LLama/runtimes/libllama.dylib View File


Loading…
Cancel
Save