mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-08-24 17:18:28 -04:00
Add mmap support for model files
This commit is contained in:
1
ggml.h
1
ggml.h
@@ -316,6 +316,7 @@ struct ggml_init_params {
|
||||
// memory pool
|
||||
size_t mem_size; // bytes
|
||||
void * mem_buffer; // if NULL, memory will be allocated internally
|
||||
bool no_alloc; // don't allocate memory for the tensor data
|
||||
};
|
||||
|
||||
void ggml_time_init(void); // call this once at the beginning of the program
|
||||
|
Reference in New Issue
Block a user