llama_cpp 0.22.0 → 0.22.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: 44ea7eb462df4d37cd20d802e5f305d4ff05b605e3d442ca966458714a57881b
4
- data.tar.gz: f3e73839dda61b43efd71c0d325384b78c6b47fc8535ab62d25a54c66aa6d09f
3
+ metadata.gz: d9d289500d478dbaea942656eeaf4c076dd81fdcbf5fe670c323c5ce431945da
4
+ data.tar.gz: 5dff9d66db034b7f275add566e760adf84b10b578ff9a2fb32a684fd17735f8a
5
5
  SHA512:
6
- metadata.gz: b2060e02b8bb154b5d34c242b54f331b840cc5e3f46bce6bcc307b52de4e6eb2613a5e725154b51c9e272576c00d004f72827acb035f62c280862fae94a9f5a5
7
- data.tar.gz: 43a110ce026562b17b6f7da9b9bd013be7671bf457c3ddb84a3de362333a7b7f665031577755c7de984e0e84da39f1c474f96dc830040fa08185b5b405169697
6
+ metadata.gz: 6b3109cee58c80d79ba90aa3ec33e0517c8bb54a1592ff4020ca18e16bf78c0bed5389ac1c5dd1221e757c87c8e3fb1af226c45d5b3d2a5b1ee6bc7afd13e242
7
+ data.tar.gz: 139cb66ec6cd2adbd2b178ad7f84581698905870bb549105f9683e14a80d04d8210405762e98937fed685352a4434d89f8fe43d8cbf500b1396d091c7d6366ba
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [[0.22.1](https://github.com/yoshoku/llama_cpp.rb/compare/v0.22.0...v0.22.1)] - 2025-08-30
2
+
3
+ - Change supported llama.cpp version to b6310.
4
+ - Add `llama_adapter_meta_count` module function.
5
+
1
6
  ## [[0.22.0](https://github.com/yoshoku/llama_cpp.rb/compare/v0.21.2...v0.22.0)] - 2025-08-23
2
7
 
3
8
  - Change supported llama.cpp version to b6240.
@@ -1852,6 +1852,20 @@ static VALUE rb_llama_adapter_lora_init(VALUE self, VALUE model, VALUE path_lora
1852
1852
  return TypedData_Wrap_Struct(rb_cLlamaAdapterLora, &llama_adapter_lora_wrapper_data_type, adapter_wrapper);
1853
1853
  }
1854
1854
 
1855
+ /**
1856
+ * @overload llama_adapter_meta_count(adapter)
1857
+ * @param [LlamaAdapterLora] adapter
1858
+ * @return [Integer]
1859
+ */
1860
+ static VALUE rb_llama_adapter_meta_count(VALUE self, VALUE adapter) {
1861
+ if (!rb_obj_is_kind_of(adapter, rb_cLlamaAdapterLora)) {
1862
+ rb_raise(rb_eArgError, "adapter must be a LlamaAdapterLora");
1863
+ return Qnil;
1864
+ }
1865
+ llama_adapter_lora_wrapper* adapter_wrapper = get_llama_adapter_lora_wrapper(adapter);
1866
+ return INT2NUM(llama_adapter_meta_count(adapter_wrapper->adapter));
1867
+ }
1868
+
1855
1869
  /**
1856
1870
  * @overload llama_set_adapter_lora(context, adapter, scale)
1857
1871
  * @param [LlamaContext] context
@@ -4855,6 +4869,14 @@ void Init_llama_cpp(void) {
4855
4869
  /* llama_adapter_lora_init */
4856
4870
  rb_define_module_function(rb_mLlamaCpp, "llama_adapter_lora_init", rb_llama_adapter_lora_init, 2);
4857
4871
 
4872
+ /* TODO: llama_adapter_meta_val_str */
4873
+
4874
+ /* llama_adapter_meta_count */
4875
+ rb_define_module_function(rb_mLlamaCpp, "llama_adapter_meta_count", rb_llama_adapter_meta_count, 1);
4876
+
4877
+ /* TODO: llama_adapter_meta_key_by_index */
4878
+ /* TODO: llama_adapter_meta_val_str_by_index */
4879
+
4858
4880
  /* llama_set_adapter_lora */
4859
4881
  rb_define_module_function(rb_mLlamaCpp, "llama_set_adapter_lora", rb_llama_set_adapter_lora, 3);
4860
4882
 
@@ -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.22.0'
6
+ VERSION = '0.22.1'
7
7
 
8
8
  # The supported version of llama.cpp.
9
- LLAMA_CPP_VERSION = 'b6240'
9
+ LLAMA_CPP_VERSION = 'b6310'
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.22.0
4
+ version: 0.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku