llama_cpp 0.23.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/ext/llama_cpp/llama_cpp.c +19 -0
- data/lib/llama_cpp/version.rb +2 -2
- 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: 839ef41e6f1588768629f776034abce6ea4c668b5de753ea8d9ac5c4c0d93ddd
|
4
|
+
data.tar.gz: c18f5ac34f673247eea8eb63e3e10aed14cd95abe9f8fcb90d7931a32b94482d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1045e721b28f804e6536461f15c0de640fc1201d02c97c8ca807c383e9730d779795fbc745d0404dab51dffa59f90e28a90335dff7513bd1909294e4b3382cd9
|
7
|
+
data.tar.gz: 9c8db351db13d57153c1b939eccf73cd355dae7b7281faaa55e91a41e5762db854e685cd69c25c4c1d9e06a9379dd41d07cb18d1fe82154e9bbf7070617a779e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## [[0.23.1](https://github.com/yoshoku/llama_cpp.rb/compare/v0.23.0...v0.23.1)] - 2025-09-13
|
2
|
+
|
3
|
+
- Change supported llama.cpp version to b6440.
|
4
|
+
- Add `llama_adapter_get_alora_n_invocation_tokens` module function.
|
5
|
+
|
1
6
|
## [[0.23.0](https://github.com/yoshoku/llama_cpp.rb/compare/v0.22.1...v0.23.0)] - 2025-09-05
|
2
7
|
|
3
8
|
- Change supported llama.cpp version to b6380.
|
data/ext/llama_cpp/llama_cpp.c
CHANGED
@@ -1952,6 +1952,20 @@ static VALUE rb_llama_adapter_lora_free(VALUE self, VALUE adapter) {
|
|
1952
1952
|
return Qnil;
|
1953
1953
|
}
|
1954
1954
|
|
1955
|
+
/**
|
1956
|
+
* @overload llama_adapter_get_alora_n_invocation_tokens(adapter)
|
1957
|
+
* @param [LlamaAdapterLora] adapter
|
1958
|
+
* @return [Integer]
|
1959
|
+
*/
|
1960
|
+
static VALUE rb_llama_adapter_get_alora_n_invocation_tokens(VALUE self, VALUE adapter) {
|
1961
|
+
if (!rb_obj_is_kind_of(adapter, rb_cLlamaAdapterLora)) {
|
1962
|
+
rb_raise(rb_eArgError, "adapter must be a LlamaAdapterLora");
|
1963
|
+
return Qnil;
|
1964
|
+
}
|
1965
|
+
llama_adapter_lora_wrapper* adapter_wrapper = get_llama_adapter_lora_wrapper(adapter);
|
1966
|
+
return UINT2NUM(llama_adapter_get_alora_n_invocation_tokens(adapter_wrapper->adapter));
|
1967
|
+
}
|
1968
|
+
|
1955
1969
|
/* llama_memory_t wrapper */
|
1956
1970
|
typedef struct {
|
1957
1971
|
llama_memory_t memory;
|
@@ -4910,6 +4924,11 @@ void Init_llama_cpp(void) {
|
|
4910
4924
|
/* llama_adapter_lora_free */
|
4911
4925
|
rb_define_module_function(rb_mLlamaCpp, "llama_adapter_lora_free", rb_llama_adapter_lora_free, 1);
|
4912
4926
|
|
4927
|
+
/* llama_adapter_get_alora_n_invocation_tokens */
|
4928
|
+
rb_define_module_function(rb_mLlamaCpp, "llama_adapter_get_alora_n_invocation_tokens", rb_llama_adapter_get_alora_n_invocation_tokens, 1);
|
4929
|
+
|
4930
|
+
/* TODO: llama_adapter_get_alora_invocation_tokens */
|
4931
|
+
|
4913
4932
|
/* TODO: llama_apply_adapter_cvec */
|
4914
4933
|
|
4915
4934
|
/**
|
data/lib/llama_cpp/version.rb
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
# llama_cpp.rb provides Ruby bindings for the llama.cpp.
|
4
4
|
module LlamaCpp
|
5
5
|
# The version of llama_cpp.rb you install.
|
6
|
-
VERSION = '0.23.
|
6
|
+
VERSION = '0.23.1'
|
7
7
|
|
8
8
|
# The supported version of llama.cpp.
|
9
|
-
LLAMA_CPP_VERSION = '
|
9
|
+
LLAMA_CPP_VERSION = 'b6440'
|
10
10
|
end
|