Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add cuda llava native libraries. #647

Merged
merged 1 commit into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ jobs:
cp artifacts/llava-bin-win-cublas-cu11.7.1-x64.dll/llava_shared.dll deps/cu11.7.1/llava_shared.dll

cp artifacts/llama-bin-linux-cublas-cu11.7.1-x64.so/libllama.so deps/cu11.7.1/libllama.so
cp artifacts/llava-bin-linux-cublas-cu11.7.1-x64.so/libllava_shared.so deps/cu11.7.1/libllama_shared.so
cp artifacts/llava-bin-linux-cublas-cu11.7.1-x64.so/libllava_shared.so deps/cu11.7.1/libllava_shared.so

cp artifacts/llama-bin-win-cublas-cu12.1.0-x64.dll/llama.dll deps/cu12.1.0/llama.dll
cp artifacts/llava-bin-win-cublas-cu12.1.0-x64.dll/llava_shared.dll deps/cu12.1.0/llava_shared.dll
Expand Down
1 change: 1 addition & 0 deletions LLama.Examples/Examples/LlavaInteractiveModeExecute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public static async Task Run()
{
ContextSize = 4096,
Seed = 1337,
GpuLayerCount = 10
};
using var model = LLamaWeights.LoadFromFile(parameters);
using var context = model.CreateContext(parameters);
Expand Down
17 changes: 17 additions & 0 deletions LLama/LLamaSharp.Runtime.targets
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>runtimes/win-x64/native/avx512/llava_shared.dll</Link>
</None>
<None Include="$(MSBuildThisFileDirectory)runtimes/deps/cu11.7.1/llava_shared.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>runtimes/win-x64/native/cuda11/llava_shared.dll</Link>
</None>
<None Include="$(MSBuildThisFileDirectory)runtimes/deps/cu12.1.0/llava_shared.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>runtimes/win-x64/native/cuda12/llava_shared.dll</Link>
</None>


<None Include="$(MSBuildThisFileDirectory)runtimes/deps/libllava_shared.so">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand All @@ -101,6 +110,14 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>runtimes/linux-x64/native/avx512/libllava_shared.so</Link>
</None>
<None Include="$(MSBuildThisFileDirectory)runtimes/deps/cu11.7.1/libllava_shared.so">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>runtimes/linux-x64/native/cuda11/libllava_shared.so</Link>
</None>
<None Include="$(MSBuildThisFileDirectory)runtimes/deps/cu12.1.0/libllava_shared.so">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>runtimes/linux-x64/native/cuda12/libllava_shared.so</Link>
</None>

<None Include="$(MSBuildThisFileDirectory)runtimes/deps/osx-arm64/libllava_shared.dylib">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
Binary file added LLama/runtimes/deps/avx/libllama.dll
Binary file not shown.
Binary file modified LLama/runtimes/deps/avx/llama.dll
Binary file not shown.
Binary file modified LLama/runtimes/deps/avx/llava_shared.dll
Binary file not shown.
Binary file added LLama/runtimes/deps/avx2/libllama.dll
Binary file not shown.
Binary file modified LLama/runtimes/deps/avx2/llama.dll
Binary file not shown.
Binary file modified LLama/runtimes/deps/avx2/llava_shared.dll
Binary file not shown.
Binary file added LLama/runtimes/deps/avx512/libllama.dll
Binary file not shown.
Binary file modified LLama/runtimes/deps/avx512/llama.dll
Binary file not shown.
Binary file modified LLama/runtimes/deps/avx512/llava_shared.dll
Binary file not shown.
Binary file modified LLama/runtimes/deps/clblast/libllama.so
Binary file not shown.
Binary file added LLama/runtimes/deps/clblast/libllava_shared.so
Binary file not shown.
Binary file modified LLama/runtimes/deps/clblast/llama.dll
Binary file not shown.
Binary file added LLama/runtimes/deps/clblast/llava_shared.dll
Binary file not shown.
Binary file modified LLama/runtimes/deps/cu11.7.1/libllama.so
Binary file not shown.
Binary file added LLama/runtimes/deps/cu11.7.1/libllava_shared.so
Binary file not shown.
Binary file modified LLama/runtimes/deps/cu11.7.1/llama.dll
Binary file not shown.
Binary file added LLama/runtimes/deps/cu11.7.1/llava_shared.dll
Binary file not shown.
Binary file modified LLama/runtimes/deps/cu12.1.0/libllama.so
Binary file not shown.
Binary file added LLama/runtimes/deps/cu12.1.0/libllava_shared.so
Binary file not shown.
Binary file modified LLama/runtimes/deps/cu12.1.0/llama.dll
Binary file not shown.
Binary file added LLama/runtimes/deps/cu12.1.0/llava_shared.dll
Binary file not shown.
Binary file added LLama/runtimes/deps/libllama.dll
Binary file not shown.
Binary file modified LLama/runtimes/deps/llama.dll
Binary file not shown.
Binary file modified LLama/runtimes/deps/llava_shared.dll
Binary file not shown.
Binary file modified LLama/runtimes/deps/osx-arm64/libllama.dylib
Binary file not shown.
Binary file modified LLama/runtimes/deps/osx-arm64/libllava_shared.dylib
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ If you want to compile llama.cpp yourself you **must** use the exact commit ID l
| v0.8.1 | | [`e937066`](https://github.com/ggerganov/llama.cpp/commit/e937066420b79a757bf80e9836eb12b88420a218) |
| v0.9.0, v0.9.1 | [Mixtral-8x7B](https://huggingface.co/TheBloke/Mixtral-8x7B-v0.1-GGUF) | [`9fb13f9`](https://github.com/ggerganov/llama.cpp/blob/9fb13f95840c722ad419f390dc8a9c86080a3700) |
| v0.10.0 | [Phi2](https://huggingface.co/TheBloke/phi-2-GGUF) | [`d71ac90`](https://github.com/ggerganov/llama.cpp/tree/d71ac90985854b0905e1abba778e407e17f9f887) |
| v0.11.0 | [LLaVA-v1.6](https://huggingface.co/ShadowBeast/llava-v1.6-mistral-7b-Q5_K_S-GGUF), [Phi2](https://huggingface.co/TheBloke/phi-2-GGUF)| [`3ab8b3a`](https://github.com/ggerganov/llama.cpp/tree/3ab8b3a92ede46df88bc5a2dfca3777de4a2b2b6) |
| v0.11.0 | [LLaVA-v1.5](https://hf-mirror.com/jartine/llava-v1.5-7B-GGUF/blob/main/llava-v1.5-7b-mmproj-Q4_0.gguf), [Phi2](https://huggingface.co/TheBloke/phi-2-GGUF)| [`3ab8b3a`](https://github.com/ggerganov/llama.cpp/tree/3ab8b3a92ede46df88bc5a2dfca3777de4a2b2b6) |

## License

Expand Down
Loading