llama_cpp 0.14.3 → 0.14.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 +4 -4
 - data/CHANGELOG.md +16 -0
 - data/examples/chat.rb +2 -4
 - data/ext/llama_cpp/extconf.rb +1 -0
 - data/ext/llama_cpp/llama_cpp.cpp +27 -0
 - data/lib/llama_cpp/version.rb +2 -2
 - data/sig/llama_cpp.rbs +14 -0
 - data/vendor/tmp/llama.cpp/LICENSE +1 -1
 - data/vendor/tmp/llama.cpp/Makefile +81 -20
 - data/vendor/tmp/llama.cpp/ggml-alloc.c +7 -2
 - data/vendor/tmp/llama.cpp/ggml-backend.c +1 -1
 - data/vendor/tmp/llama.cpp/ggml-backend.h +1 -1
 - data/vendor/tmp/llama.cpp/ggml-common.h +25 -2
 - data/vendor/tmp/llama.cpp/ggml-cuda.cu +295 -9324
 - data/vendor/tmp/llama.cpp/ggml-kompute.cpp +4 -0
 - data/vendor/tmp/llama.cpp/ggml-metal.m +133 -113
 - data/vendor/tmp/llama.cpp/ggml-metal.metal +344 -276
 - data/vendor/tmp/llama.cpp/ggml-opencl.cpp +5 -0
 - data/vendor/tmp/llama.cpp/ggml-quants.c +785 -190
 - data/vendor/tmp/llama.cpp/ggml-quants.h +83 -80
 - data/vendor/tmp/llama.cpp/ggml-sycl.cpp +963 -588
 - data/vendor/tmp/llama.cpp/ggml-sycl.h +13 -3
 - data/vendor/tmp/llama.cpp/ggml-vulkan-shaders.hpp +37199 -14939
 - data/vendor/tmp/llama.cpp/ggml-vulkan.cpp +329 -308
 - data/vendor/tmp/llama.cpp/ggml-vulkan.h +0 -11
 - data/vendor/tmp/llama.cpp/ggml.c +141 -101
 - data/vendor/tmp/llama.cpp/ggml.h +18 -12
 - data/vendor/tmp/llama.cpp/llama.cpp +2519 -625
 - data/vendor/tmp/llama.cpp/llama.h +145 -29
 - data/vendor/tmp/llama.cpp/unicode-data.cpp +1651 -0
 - data/vendor/tmp/llama.cpp/unicode-data.h +16 -0
 - data/vendor/tmp/llama.cpp/unicode.cpp +8 -1403
 - data/vendor/tmp/llama.cpp/unicode.h +2 -0
 - metadata +5 -3
 
| 
         @@ -24,3 +24,5 @@ int unicode_cpt_type(const std::string & utf8); 
     | 
|
| 
       24 
24 
     | 
    
         
             
            std::string unicode_byte_to_utf8(uint8_t byte);
         
     | 
| 
       25 
25 
     | 
    
         
             
            uint8_t unicode_utf8_to_byte(const std::string & utf8);
         
     | 
| 
       26 
26 
     | 
    
         | 
| 
      
 27 
     | 
    
         
            +
            // simple tolower that only implements one-to-one mapping, not one-to-many
         
     | 
| 
      
 28 
     | 
    
         
            +
            char32_t unicode_tolower(char32_t cp);
         
     | 
    
        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.14. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.14.5
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - yoshoku
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2024- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2024-04-13 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       13 
13 
     | 
    
         
             
            description: llama_cpp.rb provides Ruby bindings for the llama.cpp.
         
     | 
| 
       14 
14 
     | 
    
         
             
            email:
         
     | 
| 
         @@ -67,6 +67,8 @@ files: 
     | 
|
| 
       67 
67 
     | 
    
         
             
            - vendor/tmp/llama.cpp/llama.cpp
         
     | 
| 
       68 
68 
     | 
    
         
             
            - vendor/tmp/llama.cpp/llama.h
         
     | 
| 
       69 
69 
     | 
    
         
             
            - vendor/tmp/llama.cpp/scripts/get-flags.mk
         
     | 
| 
      
 70 
     | 
    
         
            +
            - vendor/tmp/llama.cpp/unicode-data.cpp
         
     | 
| 
      
 71 
     | 
    
         
            +
            - vendor/tmp/llama.cpp/unicode-data.h
         
     | 
| 
       70 
72 
     | 
    
         
             
            - vendor/tmp/llama.cpp/unicode.cpp
         
     | 
| 
       71 
73 
     | 
    
         
             
            - vendor/tmp/llama.cpp/unicode.h
         
     | 
| 
       72 
74 
     | 
    
         
             
            homepage: https://github.com/yoshoku/llama_cpp.rb
         
     | 
| 
         @@ -93,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       93 
95 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       94 
96 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       95 
97 
     | 
    
         
             
            requirements: []
         
     | 
| 
       96 
     | 
    
         
            -
            rubygems_version: 3.5. 
     | 
| 
      
 98 
     | 
    
         
            +
            rubygems_version: 3.5.7
         
     | 
| 
       97 
99 
     | 
    
         
             
            signing_key:
         
     | 
| 
       98 
100 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       99 
101 
     | 
    
         
             
            summary: Ruby bindings for the llama.cpp.
         
     |