Skip to content

Commit 760ade2

Browse files
authored
Merge branch 'main' into fix-batch-ub
2 parents 737f3ee + 2ec8656 commit 760ade2

File tree

12 files changed

+30
-28
lines changed

12 files changed

+30
-28
lines changed

.github/workflows/llama-cpp-rs-check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
21+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
2222
with:
2323
submodules: recursive
2424
- name: Install Compile Deps
@@ -45,7 +45,7 @@ jobs:
4545
target: [ linux/arm64, linux/amd64 ]
4646
steps:
4747
- name: checkout
48-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
48+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
4949
- name: Setup QEMU
5050
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130
5151
with:
@@ -63,7 +63,7 @@ jobs:
6363
runs-on: macos-latest
6464
steps:
6565
- name: checkout
66-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
66+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
6767
with:
6868
submodules: recursive
6969
- name: Setup Rust
@@ -75,7 +75,7 @@ jobs:
7575
runs-on: windows-latest
7676
steps:
7777
- name: checkout
78-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
78+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
7979
with:
8080
submodules: recursive
8181
- name: Setup Rust

.github/workflows/publish-upon-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
17+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
1818
with:
1919
submodules: recursive
2020
- name: Publish crates for llama-cpp-sys-2

.github/workflows/update-llama-cpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- name: Set date
1717
run: echo "DATE=$(date -I)" >> $GITHUB_ENV
18-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
18+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
1919
name: Checkout latest
2020
with:
2121
submodules: recursive

.github/workflows/update-toml-version.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
18+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
1919
with:
2020
submodules: recursive
2121

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ hf-hub = { version = "0.4.3" }
2020
criterion = "0.5.1"
2121
pprof = "0.13.0"
2222
bindgen = "0.72.1"
23-
cc = "1.2.46"
23+
cc = "1.2.47"
2424
anyhow = "1.0.100"
25-
clap = "4.5.51"
25+
clap = "4.5.53"
2626
encoding_rs = "0.8.35"
2727
tracing-subscriber = { version = "0.3", features = ["json"] }
2828

examples/embeddings/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "embeddings"
3-
version = "0.1.126"
3+
version = "0.1.127"
44
edition = "2021"
55
publish = false
66

examples/simple/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "simple"
3-
version = "0.1.126"
3+
version = "0.1.127"
44
edition = "2021"
55
publish = false
66

llama-cpp-2/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "llama-cpp-2"
33
description = "llama.cpp bindings for Rust"
4-
version = "0.1.126"
4+
version = "0.1.127"
55
edition = "2021"
66
license = "MIT OR Apache-2.0"
77
repository = "https://github.com/utilityai/llama-cpp-rs"
@@ -10,7 +10,7 @@ repository = "https://github.com/utilityai/llama-cpp-rs"
1010

1111
[dependencies]
1212
enumflags2 = "0.7.12"
13-
llama-cpp-sys-2 = { path = "../llama-cpp-sys-2", version = "0.1.126" }
13+
llama-cpp-sys-2 = { path = "../llama-cpp-sys-2", version = "0.1.127" }
1414
thiserror = { workspace = true }
1515
tracing = { workspace = true }
1616
tracing-core = { workspace = true }
@@ -35,7 +35,7 @@ mtmd = ["llama-cpp-sys-2/mtmd"]
3535

3636

3737
[target.'cfg(all(target_os = "macos", any(target_arch = "aarch64", target_arch = "arm64")))'.dependencies]
38-
llama-cpp-sys-2 = { path = "../llama-cpp-sys-2", version = "0.1.126", features = [
38+
llama-cpp-sys-2 = { path = "../llama-cpp-sys-2", version = "0.1.127", features = [
3939
"metal",
4040
] }
4141

llama-cpp-2/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//!
1414
//! - `cuda` enables CUDA gpu support.
1515
//! - `sampler` adds the [`context::sample::sampler`] struct for a more rusty way of sampling.
16-
use std::ffi::NulError;
16+
use std::ffi::{c_char, NulError};
1717
use std::fmt::Debug;
1818
use std::num::NonZeroI32;
1919

@@ -398,7 +398,7 @@ pub struct LlamaBackendDevice {
398398
pub fn list_llama_ggml_backend_devices() -> Vec<LlamaBackendDevice> {
399399
let mut devices = Vec::new();
400400
for i in 0..unsafe { llama_cpp_sys_2::ggml_backend_dev_count() } {
401-
fn cstr_to_string(ptr: *const i8) -> String {
401+
fn cstr_to_string(ptr: *const c_char) -> String {
402402
if ptr.is_null() {
403403
String::new()
404404
} else {

0 commit comments

Comments
 (0)