llama_cpp 0.25.3 → 0.25.4

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: 1b76e55acb48ffab518744a7afa4e60d16b716e596afd0bf73dd56859c399b2f
4
- data.tar.gz: 26a29e928885236d6061920f5a21bd1cb9c7d33c0599554a17b363dc9276b55d
3
+ metadata.gz: 7918f80b77eb32fa218c3cd9845594eb6f882e066e600caa2af31a979f916610
4
+ data.tar.gz: 2a631621308ba8206d5c27c8dad8d01b415865d99c1f632e197c4bea6ae43941
5
5
  SHA512:
6
- metadata.gz: a332b1753028f192f70ab8a8144795989fd616ad4ad30d86b0cd44d6faa8aa7842b7dcb4cd8f4b2a0c1c50140b2d69593948a575fc3c3650899b4c52eb99519b
7
- data.tar.gz: 9c4ed8bec9ebddc469f92dde6f477b85747c5b4c6a3db0f532e592bedbe4413c48ca0847a589809fc68ffed006ba05c93b7672aafd6bda3e27f83dfdd46781ff
6
+ metadata.gz: 7429e8a0d7255b8d000fa6d2be3d346573743f8238d7fe3d29c4f6a0cdafeb17ef7f5cd6faf1dbad9272e402af1a85e924ebaec1992e2a1077cb5796b2e8521f
7
+ data.tar.gz: d3eaeb4ac110955a9475aca37ac16c660e5e7780275c6861450ced9e1463478c9f7c30a8f6cc61aa22bca2cfff8a4bae1e10fd3c93e3170bb7d5e2ea1206c210
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [[0.25.4](https://github.com/yoshoku/llama_cpp.rb/compare/v0.25.3...v0.25.4)] - 2026-06-13
2
+
3
+ - Change supported llama.cpp version to b9610.
4
+ - Add `n_outputs_max` accessor to `LlamaContextParams`.
5
+
1
6
  ## [[0.25.3](https://github.com/yoshoku/llama_cpp.rb/compare/v0.25.2...v0.25.3)] - 2026-05-24
2
7
 
3
8
  - Add `llama_model_chat_template` module function to `LlamaCpp`.
@@ -663,6 +663,17 @@ static VALUE llama_context_params_set_n_rs_seq(VALUE self, VALUE n_rs_seq) {
663
663
  return n_rs_seq;
664
664
  }
665
665
 
666
+ static VALUE llama_context_params_get_n_outputs_max(VALUE self) {
667
+ struct llama_context_params* data = get_llama_context_params(self);
668
+ return UINT2NUM(data->n_outputs_max);
669
+ }
670
+
671
+ static VALUE llama_context_params_set_n_outputs_max(VALUE self, VALUE n_outputs_max) {
672
+ struct llama_context_params* data = get_llama_context_params(self);
673
+ data->n_outputs_max = NUM2UINT(n_outputs_max);
674
+ return n_outputs_max;
675
+ }
676
+
666
677
  static VALUE llama_context_params_get_n_threads(VALUE self) {
667
678
  struct llama_context_params* data = get_llama_context_params(self);
668
679
  return INT2NUM(data->n_threads);
@@ -4814,6 +4825,17 @@ void Init_llama_cpp(void) {
4814
4825
  * @return [Integer]
4815
4826
  */
4816
4827
  rb_define_method(rb_cLlamaContextParams, "n_rs_seq=", RUBY_METHOD_FUNC(llama_context_params_set_n_rs_seq), 1);
4828
+ /**
4829
+ * Document-method: n_outputs_max
4830
+ * @return [Integer]
4831
+ */
4832
+ rb_define_method(rb_cLlamaContextParams, "n_outputs_max", RUBY_METHOD_FUNC(llama_context_params_get_n_outputs_max), 0);
4833
+ /**
4834
+ * Document-method: n_outputs_max=
4835
+ * @param [Integer] n_outputs_max
4836
+ * @return [Integer]
4837
+ */
4838
+ rb_define_method(rb_cLlamaContextParams, "n_outputs_max=", RUBY_METHOD_FUNC(llama_context_params_set_n_outputs_max), 1);
4817
4839
  /**
4818
4840
  * Document-method: n_threads
4819
4841
  * @return [Integer]
@@ -5066,6 +5088,7 @@ void Init_llama_cpp(void) {
5066
5088
 
5067
5089
  /* TODO: struct llama_sampler_seq_config * samplers */
5068
5090
  /* TODO: size_t n_samplers */
5091
+ /* TODO: struct llama_context * ctx_other */
5069
5092
 
5070
5093
  /**
5071
5094
  * Document-method: kv_unified=
@@ -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.3'
6
+ VERSION = '0.25.4'
7
7
 
8
8
  # The supported version of llama.cpp.
9
- LLAMA_CPP_VERSION = 'b9290'
9
+ LLAMA_CPP_VERSION = 'b9610'
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.3
4
+ version: 0.25.4
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.3/
36
+ documentation_uri: https://gemdocs.org/gems/llama_cpp/0.25.4/
37
37
  rubygems_mfa_required: 'true'
38
38
  rdoc_options: []
39
39
  require_paths:
@@ -49,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
49
  - !ruby/object:Gem::Version
50
50
  version: '0'
51
51
  requirements: []
52
- rubygems_version: 4.0.10
52
+ rubygems_version: 4.0.13
53
53
  specification_version: 4
54
54
  summary: Ruby bindings for the llama.cpp.
55
55
  test_files: []