Skip to content

Commit 76d38da

Browse files
committed
Fixed typo which was setting incorrect ptr to null
1 parent 83085b7 commit 76d38da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama-cpp-2/src/model/params.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl LlamaModelParams {
137137
buft_override.buft = unsafe { llama_cpp_sys_2::ggml_backend_cpu_buffer_type() };
138138

139139
// set to null pointer for panic safety (as push may move the vector, invalidating the pointer)
140-
self.params.kv_overrides = null();
140+
self.params.tensor_buft_overrides = null();
141141

142142
// push the next one to ensure we maintain the iterator invariant of ending with a 0
143143
self.buft_overrides

0 commit comments

Comments
 (0)