Skip to content

args: remove mmap/mlock/dio flags from arg parser - #28334

Merged
taronaeo merged 1 commit into
ggml-org:masterfrom
taronaeo:refactor/rm-dep-flags
Sep 9, 2026
Merged

taronaeo merged 1 commit into
ggml-org:masterfrom
taronaeo:refactor/rm-dep-flags

Conversation

@taronaeo

@taronaeo taronaeo commented Sep 3, 2026

Copy link
Copy Markdown
Member

Overview

cont #20834

I think it has been a decent amount of time since we deprecated the --mmap, --mlock, and --direct-io flags in favor for --load-mode. This PR completely removes any references of the flag from the arg parser as the final cleanup of the refactor.

Requirements

Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
@taronaeo
taronaeo requested review from a team, ggerganov and ngxson as code owners September 3, 2026 16:14
@taronaeo taronaeo changed the title args: officially deprecate mmap/mlock/dio flags for load mode args: remove mmap/mlock/dio flags from arg parser Sep 3, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation server labels Sep 3, 2026
@taronaeo

taronaeo commented Sep 3, 2026

Copy link
Copy Markdown
Member Author

Server CIs are failing because the preset.ini file from ggml-org/test-preset-ci still uses mmap = 0. I've created a PR to change that if someone could take a look: https://huggingface.co/ggml-org/test-preset-ci/discussions/1

Edit: PR has been merged.

@taronaeo taronaeo added the merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. label Sep 7, 2026
@taronaeo

taronaeo commented Sep 9, 2026

Copy link
Copy Markdown
Member Author

CI failures unrelated to PR. Merging.

@taronaeo
taronaeo merged commit 14a9d09 into ggml-org:master Sep 9, 2026
27 of 33 checks passed
zbrad pushed a commit to zbrad/llama.cpp that referenced this pull request Sep 10, 2026
Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
pl752 pushed a commit to pl752/llama.cpp that referenced this pull request Sep 15, 2026
Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
druide67 added a commit to druide67/asiai-inference-server that referenced this pull request Sep 16, 2026
#42)

llama.cpp 0.4.1 removed --mlock/--mmap/--direct-io from its arg parser
(ggml-org/llama.cpp#28334); every bundled llama.cpp daemon would refuse to
start after the upgrade. --load-mode mmap+mlock is the exact equivalent and
is accepted since 0.3.0. A test refuses any bundled manifest carrying a
removed flag.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
zsogitbe pushed a commit to zsogitbe/llama.cpp that referenced this pull request Sep 17, 2026
Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants