llama_cpp 0.14.1 → 0.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/ext/llama_cpp/extconf.rb +3 -1
- data/lib/llama_cpp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d720138462a39f3fd9853befa19e55543a794eb4d1c379f7d9db516a4569db68
|
4
|
+
data.tar.gz: 9779852b62cf57ab208275b746ca2492921cf1f92d4ebf6be26a668f1a7bbb66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fa80468abc917099b58009a7a821c704989b8086026e92f8e71a1310ea7ec0449276aeb4653bdb4ddf499183c785b0513ab75b1fa6a94659fe15be2cf05190c
|
7
|
+
data.tar.gz: '091155784ead62d3ef4ec68f3b4c9f6b1fc97ef87db45327266712912501746b08df983e0d0b81b518d229d4d31f1a0d77ad36f2d7156c26141b8116049d3206'
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## [[0.14.2](https://github.com/yoshoku/llama_cpp.rb/compare/v0.14.1...v0.14.2)] - 2024-03-16
|
2
|
+
|
3
|
+
- Fix to use metal embed library on macOS.
|
4
|
+
|
1
5
|
## [[0.14.1](https://github.com/yoshoku/llama_cpp.rb/compare/v0.14.0...v0.14.1)] - 2024-03-16
|
2
6
|
|
3
7
|
- Bump llama.cpp from b2361 to b2435.
|
data/ext/llama_cpp/extconf.rb
CHANGED
@@ -21,6 +21,8 @@ make_envs << ' LLAMA_HIPBLAS=1' if with_config('hipblas')
|
|
21
21
|
make_envs << ' LLAMA_MPI=1' if with_config('mpi')
|
22
22
|
make_envs << ' LLAMA_VULKAN=1' if with_config('vulkan')
|
23
23
|
|
24
|
+
make_envs << ' LLAMA_METAL_EMBED_LIBRARY=1' if RUBY_PLATFORM.match?(/darwin/)
|
25
|
+
|
24
26
|
Dir.chdir(LLAMA_CPP_DIR) do
|
25
27
|
_mkstdout, _mkstderr, mkstatus = Open3.capture3("make lib #{make_envs}".strip)
|
26
28
|
abort('Failed to build llama.cpp.') unless mkstatus.success?
|
@@ -33,8 +35,8 @@ if RUBY_PLATFORM.match?(/darwin/)
|
|
33
35
|
Dir.chdir(VENDOR_LIB_DIR) do
|
34
36
|
_mkstdout, _mkstderr, mkstatus = Open3.capture3("install_name_tool -id #{VENDOR_LIB_DIR}/libllama.dylib libllama.dylib")
|
35
37
|
abort('Failed to set installation path for libllama.dylib.') unless mkstatus.success?
|
36
|
-
FileUtils.cp("#{LLAMA_CPP_DIR}/ggml-metal.metal", VENDOR_LIB_DIR)
|
37
38
|
end
|
39
|
+
FileUtils.cp("#{LLAMA_CPP_DIR}/ggml-metal-embed.metal", VENDOR_LIB_DIR)
|
38
40
|
end
|
39
41
|
|
40
42
|
abort('libstdc++ is not found.') unless have_library('stdc++')
|
data/lib/llama_cpp/version.rb
CHANGED