llama_cpp 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -517,6 +517,12 @@ extern "C" {
517
517
  LLAMA_API llama_token llama_token_eos(const struct llama_model * model); // end-of-sentence
518
518
  LLAMA_API llama_token llama_token_nl (const struct llama_model * model); // next-line
519
519
 
520
+ // Returns -1 if unknown, 1 for true or 0 for false.
521
+ LLAMA_API int llama_add_bos_token(const struct llama_model * model);
522
+
523
+ // Returns -1 if unknown, 1 for true or 0 for false.
524
+ LLAMA_API int llama_add_eos_token(const struct llama_model * model);
525
+
520
526
  // codellama infill tokens
521
527
  LLAMA_API llama_token llama_token_prefix(const struct llama_model * model); // Beginning of infill prefix
522
528
  LLAMA_API llama_token llama_token_middle(const struct llama_model * model); // Beginning of infill middle
@@ -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.9.2'
6
+ VERSION = '0.9.3'
7
7
 
8
8
  # The version of llama.cpp bundled with llama_cpp.rb.
9
- LLAMA_CPP_VERSION = 'b1500'
9
+ LLAMA_CPP_VERSION = 'b1523'
10
10
  end
data/sig/llama_cpp.rbs CHANGED
@@ -94,6 +94,8 @@ module LLaMACpp
94
94
  def token_bos: () -> Integer
95
95
  def token_eos: () -> Integer
96
96
  def token_nl: () -> Integer
97
+ def add_bos_token?: () -> bool
98
+ def add_eos_token?: () -> bool
97
99
  def token_prefix: () -> Integer
98
100
  def token_middle: () -> Integer
99
101
  def token_suffix: () -> Integer
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llama_cpp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-11 00:00:00.000000000 Z
11
+ date: 2023-11-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: llama_cpp.rb provides Ruby bindings for the llama.cpp.
14
14
  email:
@@ -32,6 +32,7 @@ files:
32
32
  - ext/llama_cpp/src/LICENSE
33
33
  - ext/llama_cpp/src/ggml-alloc.c
34
34
  - ext/llama_cpp/src/ggml-alloc.h
35
+ - ext/llama_cpp/src/ggml-backend-impl.h
35
36
  - ext/llama_cpp/src/ggml-backend.c
36
37
  - ext/llama_cpp/src/ggml-backend.h
37
38
  - ext/llama_cpp/src/ggml-cuda.cu