Browse Source

Merge pull request #24 from SignalRT/master

MacOS Arm64 support
tags/v0.4.0
Rinne GitHub 2 years ago
parent
commit
69849d3fc0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 3 deletions
  1. +7
    -0
      LLama.WebAPI/LLama.WebAPI.csproj
  2. +7
    -3
      LLama/LLamaSharp.csproj
  3. BIN
      LLama/runtimes/libllama.dylib

+ 7
- 0
LLama.WebAPI/LLama.WebAPI.csproj View File

@@ -14,4 +14,11 @@
<ProjectReference Include="..\LLama\LLamaSharp.csproj" /> <ProjectReference Include="..\LLama\LLamaSharp.csproj" />
</ItemGroup> </ItemGroup>


<ItemGroup>
<Content Update="Properties\launchSettings.json">
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
</Content>
</ItemGroup>
</Project> </Project>

+ 7
- 3
LLama/LLamaSharp.csproj View File

@@ -5,7 +5,7 @@
<RootNamespace>LLama</RootNamespace> <RootNamespace>LLama</RootNamespace>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<LangVersion>10</LangVersion> <LangVersion>10</LangVersion>
<Platforms>AnyCPU;x64</Platforms>
<Platforms>AnyCPU;x64;Arm64</Platforms>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks> <AllowUnsafeBlocks>True</AllowUnsafeBlocks>


<Version>0.4.0</Version> <Version>0.4.0</Version>
@@ -25,7 +25,7 @@
</PackageReleaseNotes> </PackageReleaseNotes>
<PackageLicenseExpression>MIT</PackageLicenseExpression> <PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageOutputPath>packages</PackageOutputPath> <PackageOutputPath>packages</PackageOutputPath>
<Platforms>AnyCPU;x64</Platforms>
<Platforms>AnyCPU;x64;Arm64</Platforms>
<PackageId>LLamaSharp</PackageId> <PackageId>LLamaSharp</PackageId>
<Configurations>Debug;Release;GPU</Configurations> <Configurations>Debug;Release;GPU</Configurations>
</PropertyGroup> </PropertyGroup>
@@ -70,6 +70,10 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>libllama-cuda12.so</Link> <Link>libllama-cuda12.so</Link>
</None> </None>
</ItemGroup>
<None Include="runtimes/libllama.dylib">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>libllama.dylib</Link>
</None>
</ItemGroup>


</Project> </Project>

BIN
LLama/runtimes/libllama.dylib View File


Loading…
Cancel
Save