Skip to content

doc: document load_mode on the llm-llamacpp page instead of the removed no_mmap - #4115

Merged
iancris merged 2 commits into
mainfrom
doc/llm-llamacpp-load-mode-page
Sep 2, 2026
Merged

iancris merged 2 commits into
mainfrom
doc/llm-llamacpp-load-mode-page

Conversation

@donriddo

Copy link
Copy Markdown
Contributor

🎯 What problem does this PR solve?

  • @qvac/llm-llamacpp@0.47.0 replaced the no_mmap load-config key with load_mode, but the addon page still lists no_mmap and describes it as a flag set by passing an empty string.
  • Following the page fails the load rather than degrading: the key is no longer consumed, so it falls through to llama.cpp's argument parser and errors with invalid argument: --no-mmap.

📝 How does it solve it?

  • Replace the no_mmap parameter row with load_mode, listing the five accepted values and the mmap default — verified against kLoadModes in the addon's addon/src/model-interface/LoadFitNormalization.cpp and the comment that absence applies llama.cpp's own default.
  • Add load_mode: 'none' to the config example, described as a full buffered read: it disables mlock and direct I/O as well as mmap, which "disable memory mapping" did not convey.

Docs only. Split out of the SDK change set for QVAC-24073 (#4078) to follow how this page is normally maintained — #3854 exposed image_no_upscale in the same config schema with no docs, and #3959 updated the page separately under its own ticket.

Worth knowing for readers: dio is accepted by the addon but does not take effect in the pinned fabric v10297.0.0 — the loader sets use_direct_io, while gguf_file_load constructs llama_file_disk(path, "rb") without passing it. It is listed as an accepted value without being recommended; the native fix is tracked separately.

…ed no_mmap

@qvac/llm-llamacpp 0.47.0 replaced the `no_mmap` load-config key with
`load_mode`, but the page still lists `no_mmap` and describes it as a flag set
by an empty string. Following it fails the load: the key is no longer consumed,
so it reaches llama.cpp's argument parser as an unknown argument.

The table now lists the five accepted values and the `mmap` default, checked
against `kLoadModes` in the addon's `LoadFitNormalization.cpp` and the comment
that absence applies llama.cpp's own default. `none` is described as a full
buffered read, since it disables mlock and direct I/O as well as mmap.

Note for readers of the example: `dio` is accepted by the addon but does not
take effect in fabric v10297.0.0, so it is listed as a value without being
recommended.
@github-actions

github-actions Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Review Status

Current Status: ✅ APPROVED
Approvals so far: Team Lead: 1, Member: 2

@github-actions

Copy link
Copy Markdown
Contributor

License compliance — clean

No new dependency license findings in this PR.

Warn-only (shadow) mode — this check does not block merges yet.

Updated automatically by the canonical license compliance workflow.

NOTICE presence (advisory)

Missing NOTICE (advisory, does not block):

  • ./.github/actions/release-merge-guard
  • ./docs/website
  • ./packages/ggml-coload-smoke
  • ./packages/fabric/test/integration
  • ./packages/inference-addon-cpp/mobile
  • ./packages/sdk/e2e
  • ./packages/llm-llamacpp/benchmarks/performance
  • ./packages/llm-llamacpp/benchmarks/server
  • ./packages/vla-ggml/sim/server
  • ./packages/embed-llamacpp/benchmarks/performance
  • ./packages/embed-llamacpp/benchmarks/server
  • ./packages/asr-ggml/benchmarks/server

@iancris
iancris merged commit feea260 into main Sep 2, 2026
26 checks passed
@iancris
iancris deleted the doc/llm-llamacpp-load-mode-page branch September 2, 2026 21:29
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

Successfully merging this pull request may close these issues.

4 participants