Skip to content

Commit e8c8d3c

Browse files
author
Dmitry Malishev
committed
Fix for hanging on model load on Windows
1 parent f07781e commit e8c8d3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-model-load.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gguf_file_load::gguf_file_load(struct ggml_context ** ctx, load_input_t load_inp
1919
if (!meta) {
2020
throw std::runtime_error(format("%s: failed to load model from %s", __func__, file_input.fname.c_str()));
2121
}
22-
file = std::make_unique<llama_file_disk>(file_input.fname.c_str(), "ro");
22+
file = std::make_unique<llama_file_disk>(file_input.fname.c_str(), "rb");
2323
} else if (std::holds_alternative<buffer_future_load_input>(load_input)) {
2424
const auto & future_input = std::get<buffer_future_load_input>(load_input);
2525
auto future_file =

0 commit comments

Comments
 (0)