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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdc82f63eb7cca5133f24159dd648fa2722896a3b9cee9cafc11022e28646b5d
4
- data.tar.gz: 0adad024f89582c57f1e541cb85b4220b171b64c4b12bb2f38d635efed4b6458
3
+ metadata.gz: 839ef41e6f1588768629f776034abce6ea4c668b5de753ea8d9ac5c4c0d93ddd
4
+ data.tar.gz: c18f5ac34f673247eea8eb63e3e10aed14cd95abe9f8fcb90d7931a32b94482d
5
5
  SHA512:
6
- metadata.gz: b2e9ce298ed0f5d2cb684c4362ed4edadd14af7b3c99ccb989308483b58b81eb659c64b8c91216eb27684f17f36170833a9bb3e3dd4c05ceacf9bc3f0603c159
7
- data.tar.gz: aee0bcd5b2cecd91baf0473705ba4e43b74325a0a490f3d7a872a47e629248734cc76076dd18f584855db83671ae00896bf8185a046086cfbc9bcc741fc67064
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.
@@ -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
  /**
@@ -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.0'
6
+ VERSION = '0.23.1'
7
7
 
8
8
  # The supported version of llama.cpp.
9
- LLAMA_CPP_VERSION = 'b6380'
9
+ LLAMA_CPP_VERSION = 'b6440'
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llama_cpp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.23.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku