Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options to disable mmap. (Typescript bindings) #1399

Closed
saul-jb opened this issue Sep 6, 2023 · 1 comment
Closed

Add options to disable mmap. (Typescript bindings) #1399

saul-jb opened this issue Sep 6, 2023 · 1 comment

Comments

@saul-jb
Copy link

saul-jb commented Sep 6, 2023

Feature request

It would be nice to be able to disable mmap on models to increase inference speed. I am only guessing that mmap is to blame since my memory stays really low when loading a large llama based model.

Related issue in llama.cpp

Motivation

I am getting low inference speeds (and low memory) when loading large llama based models such as llama-30b.ggmlv3.q5_K_M. The ability to disable mmap could help improve this.

Your contribution

None.

@saul-jb
Copy link
Author

saul-jb commented Sep 6, 2023

Looks like my low inference speed was due to exceeding my RAM limit and going to swap. I didn't realize at the time due to the OS not reporting it as RAM usage, closing as I no longer see a reason for someone to disable mmap.

@saul-jb saul-jb closed this as completed Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant