Why GGUF supports mmap specially? #492
Unanswered
AsakusaRinne
asked this question in
Q&A
Replies: 1 comment 2 replies
-
It is not a difference, but a desired feature. btw @philpax , here the
sidenote: the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
According to the doc of GGUF, GGUF format has an advantage that it supports
mmap
, whileggml
not. I'm so curious about it so I opened a discussion here.In my thought,
mmap
maps an area of file to an area of memory. As long as the file content we want to map is contiguous, it will work. According to the code converting pth to ggml, it writes the numpy array data to the file, which I think indicates that the data area in the file is contiguous.Maybe I mistaken something and I'll appreciate it if someone could correct me.😊
@philpax Please allow me to apologize for the interruption.😶🌫️ I think you are the most knowledgeable man about GGUF.
Beta Was this translation helpful? Give feedback.
All reactions