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 +4 -4
- data/CHANGELOG.md +5 -0
- data/ext/llama_cpp/llama_cpp.c +22 -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: d9d289500d478dbaea942656eeaf4c076dd81fdcbf5fe670c323c5ce431945da
|
4
|
+
data.tar.gz: 5dff9d66db034b7f275add566e760adf84b10b578ff9a2fb32a684fd17735f8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/ext/llama_cpp/llama_cpp.c
CHANGED
@@ -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
|
|
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.22.
|
6
|
+
VERSION = '0.22.1'
|
7
7
|
|
8
8
|
# The supported version of llama.cpp.
|
9
|
-
LLAMA_CPP_VERSION = '
|
9
|
+
LLAMA_CPP_VERSION = 'b6310'
|
10
10
|
end
|