llama_cpp 0.25.4 → 0.25.5

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: 7918f80b77eb32fa218c3cd9845594eb6f882e066e600caa2af31a979f916610
4
- data.tar.gz: 2a631621308ba8206d5c27c8dad8d01b415865d99c1f632e197c4bea6ae43941
3
+ metadata.gz: 296538eab4510402549d3a71d548ff8e5430772a71e739f6ef047b9fd92f488a
4
+ data.tar.gz: e0b4d0f0803d2f843f41a53a0783455fedf93606a641a5a1f5b2323f703b2eb3
5
5
  SHA512:
6
- metadata.gz: 7429e8a0d7255b8d000fa6d2be3d346573743f8238d7fe3d29c4f6a0cdafeb17ef7f5cd6faf1dbad9272e402af1a85e924ebaec1992e2a1077cb5796b2e8521f
7
- data.tar.gz: d3eaeb4ac110955a9475aca37ac16c660e5e7780275c6861450ced9e1463478c9f7c30a8f6cc61aa22bca2cfff8a4bae1e10fd3c93e3170bb7d5e2ea1206c210
6
+ metadata.gz: 1a1c912c558c4eeea92085b59d32ec811cdaeee8e63a8099abd55fc43f7ad5f6cb88d389324f2148a0820db4f0e844a64c76736c67f8ea1f17049df6f4b1e51f
7
+ data.tar.gz: ccb5eb8ab97ebb569f87b6eccda6cc37b4f1c5e55acf424d0d74fdbdb329c1d5f299b6c193c0516e20bd577356dc861fc7b6a2bfaee624f46307e683d7cdea44
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [[0.25.5](https://github.com/yoshoku/llama_cpp.rb/compare/v0.25.4...v0.25.5)] - 2026-06-27
2
+
3
+ - Change supported llama.cpp version to b9820.
4
+ - Add `llama_model_n_layer_nextn` module function to `LlamaCpp`.
5
+
1
6
  ## [[0.25.4](https://github.com/yoshoku/llama_cpp.rb/compare/v0.25.3...v0.25.4)] - 2026-06-13
2
7
 
3
8
  - Change supported llama.cpp version to b9610.
@@ -1783,6 +1783,20 @@ static VALUE rb_llama_model_n_layer(VALUE self, VALUE model) {
1783
1783
  return INT2NUM(llama_model_n_layer(model_wrapper->model));
1784
1784
  }
1785
1785
 
1786
+ /**
1787
+ * @overload llama_model_n_layer_nextn(model)
1788
+ * @param [LlamaModel] model
1789
+ * @return [Integer]
1790
+ */
1791
+ static VALUE rb_llama_model_n_layer_nextn(VALUE self, VALUE model) {
1792
+ if (!rb_obj_is_kind_of(model, rb_cLlamaModel)) {
1793
+ rb_raise(rb_eArgError, "model must be a LlamaModel");
1794
+ return Qnil;
1795
+ }
1796
+ llama_model_wrapper* model_wrapper = get_llama_model_wrapper(model);
1797
+ return INT2NUM(llama_model_n_layer_nextn(model_wrapper->model));
1798
+ }
1799
+
1786
1800
  /**
1787
1801
  * @overload llama_model_n_head(model)
1788
1802
  * @param [LlamaModel] model
@@ -5423,6 +5437,9 @@ void Init_llama_cpp(void) {
5423
5437
  /* llama_model_n_layer */
5424
5438
  rb_define_module_function(rb_mLlamaCpp, "llama_model_n_layer", rb_llama_model_n_layer, 1);
5425
5439
 
5440
+ /* llama_model_n_layer_nextn */
5441
+ rb_define_module_function(rb_mLlamaCpp, "llama_model_n_layer_nextn", rb_llama_model_n_layer_nextn, 1);
5442
+
5426
5443
  /* llama_model_n_head */
5427
5444
  rb_define_module_function(rb_mLlamaCpp, "llama_model_n_head", rb_llama_model_n_head, 1);
5428
5445
 
@@ -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.25.4'
6
+ VERSION = '0.25.5'
7
7
 
8
8
  # The supported version of llama.cpp.
9
- LLAMA_CPP_VERSION = 'b9610'
9
+ LLAMA_CPP_VERSION = 'b9820'
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.25.4
4
+ version: 0.25.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
@@ -33,7 +33,7 @@ metadata:
33
33
  homepage_uri: https://github.com/yoshoku/llama_cpp.rb
34
34
  source_code_uri: https://github.com/yoshoku/llama_cpp.rb
35
35
  changelog_uri: https://github.com/yoshoku/llama_cpp.rb/blob/main/CHANGELOG.md
36
- documentation_uri: https://gemdocs.org/gems/llama_cpp/0.25.4/
36
+ documentation_uri: https://gemdocs.org/gems/llama_cpp/0.25.5/
37
37
  rubygems_mfa_required: 'true'
38
38
  rdoc_options: []
39
39
  require_paths: