Skip to content

Commit

Permalink
feat: 更新依赖版本,增加 Vulkan
Browse files Browse the repository at this point in the history
  • Loading branch information
sangyuxiaowu committed Jul 17, 2024
1 parent e70a588 commit 36e72fe
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</ItemGroup>

<ItemGroup Condition="$(MSBuildProjectName.Contains('LLamaWorker.Backend'))">
<PackageReference Include="LLamaSharp" Version="0.13.0" />
<PackageReference Include="LLamaSharp" Version="0.14.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
<ProjectReference Include="..\LLamaWorker.OpenAIModels\LLamaWorker.OpenAIModels.csproj" />
<Compile Include="..\src\**\*.cs" />
Expand Down
2 changes: 1 addition & 1 deletion LLamaWorker.Backend.Cpu/LLamaWorker.Backend.Cpu.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<ItemGroup>
<PackageReference Include="LLamaSharp.Backend.Cpu" Version="0.13.0" />
<PackageReference Include="LLamaSharp.Backend.Cpu" Version="0.14.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<ItemGroup>
<PackageReference Include="LLamaSharp.Backend.Cuda11" Version="0.13.0" />
<PackageReference Include="LLamaSharp.Backend.Cuda11" Version="0.14.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<ItemGroup>
<PackageReference Include="LLamaSharp.Backend.Cuda12" Version="0.13.0" />
<PackageReference Include="LLamaSharp.Backend.Cuda12" Version="0.14.0" />
</ItemGroup>

</Project>
7 changes: 7 additions & 0 deletions LLamaWorker.Backend.Vulkan/LLamaWorker.Backend.Vulkan.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<ItemGroup>
<PackageReference Include="LLamaSharp.Backend.Vulkan" Version="0.14.0" />
</ItemGroup>

</Project>
31 changes: 31 additions & 0 deletions LLamaWorker.Backend.Vulkan/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:64031",
"sslPort": 0
}
},
"profiles": {
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "http://localhost:5114",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
8 changes: 7 additions & 1 deletion LLamaWorker.sln
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LLamaWorker.Backend.Cuda12"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ChatUI", "ChatUI\ChatUI.csproj", "{DC93E608-24D7-4D62-9EAA-37DED72BD1C4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LLamaWorker.OpenAIModels", "LLamaWorker.OpenAIModels\LLamaWorker.OpenAIModels.csproj", "{AD025766-1079-4EA5-94DD-AA9A96EC8173}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LLamaWorker.OpenAIModels", "LLamaWorker.OpenAIModels\LLamaWorker.OpenAIModels.csproj", "{AD025766-1079-4EA5-94DD-AA9A96EC8173}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LLamaWorker.Backend.Vulkan", "LLamaWorker.Backend.Vulkan\LLamaWorker.Backend.Vulkan.csproj", "{DE6EAA14-0D69-4D43-A502-6BCADC41C13E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -49,6 +51,10 @@ Global
{AD025766-1079-4EA5-94DD-AA9A96EC8173}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AD025766-1079-4EA5-94DD-AA9A96EC8173}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AD025766-1079-4EA5-94DD-AA9A96EC8173}.Release|Any CPU.Build.0 = Release|Any CPU
{DE6EAA14-0D69-4D43-A502-6BCADC41C13E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DE6EAA14-0D69-4D43-A502-6BCADC41C13E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DE6EAA14-0D69-4D43-A502-6BCADC41C13E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DE6EAA14-0D69-4D43-A502-6BCADC41C13E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ English | [中文](README_CN.md)
- `LLamaWorker.Backend.Cpu`: For CPU environments.
- `LLamaWorker.Backend.Cuda11`: For GPU environments with CUDA 11.
- `LLamaWorker.Backend.Cuda12`: For GPU environments with CUDA 12.
- `LLamaWorker.Backend.Vulkan`: Vulkan.

Select the project file that suits your environment for the next step.

Expand Down
3 changes: 2 additions & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ LLamaWorker 是一个基于 [LLamaSharp](https://github.com/SciSharp/LLamaSharp?
3. 根据您的需求选择项目文件。项目提供了三个版本的项目文件:
- `LLamaWorker.Backend.Cpu`:适用于 CPU 环境。
- `LLamaWorker.Backend.Cuda11`:适用于搭载 CUDA 11 的 GPU 环境。
- `LLamaWorker.Backend.Cuda12`:适用于搭载 CUDA 12 的 GPU 环境。
- `LLamaWorker.Backend.Cuda12`:适用于搭载 CUDA 12 的 GPU 环境。
- `LLamaWorker.Backend.Vulkan`:Vulkan 方案。

选择适合您环境的项目文件进行下一步。

Expand Down

0 comments on commit 36e72fe

Please sign in to comment.