Skip to content

Commit e85ed8c

Browse files
authored
Merge pull request #117 from utilityai/update-llama-cpp-2024-02-29
updated llama.cpp
2 parents b1aed75 + 6f4d28e commit e85ed8c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llama-cpp-2/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pub fn max_devices() -> usize {
133133
/// ```
134134
#[must_use]
135135
pub fn mmap_supported() -> bool {
136-
unsafe { llama_cpp_sys_2::llama_mmap_supported() }
136+
unsafe { llama_cpp_sys_2::llama_supports_mmap() }
137137
}
138138

139139
/// is memory locking supported according to llama.cpp
@@ -146,7 +146,7 @@ pub fn mmap_supported() -> bool {
146146
/// ```
147147
#[must_use]
148148
pub fn mlock_supported() -> bool {
149-
unsafe { llama_cpp_sys_2::llama_mlock_supported() }
149+
unsafe { llama_cpp_sys_2::llama_supports_mlock() }
150150
}
151151

152152
/// An error that can occur when converting a token to a string.

llama-cpp-sys-2/llama.cpp

0 commit comments

Comments
 (0)