We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cbe1ea commit 9940df4Copy full SHA for 9940df4
llama.cpp
@@ -3175,6 +3175,8 @@ struct llama_model_loader {
3175
3176
void init_mappings(bool prefetch = true, std::vector<std::unique_ptr<llama_mlock>> * mlock_mmaps = nullptr) {
3177
if (use_mmap) {
3178
+ mappings.reserve(files.size());
3179
+ mmaps_used.reserve(files.size());
3180
for (const auto & file : files) {
3181
auto * mapping = new llama_mmap(file.get(), prefetch ? -1 : 0, ggml_is_numa());
3182
mmaps_used.emplace_back(std::make_pair(mapping->size, 0));
0 commit comments