[llama.cpp] llama_model_params::use_mmap is exposed but not honored properly
Categories
(Core :: Machine Learning: On Device, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox154 | --- | fixed |
People
(Reporter: vpollet, Assigned: vpollet)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
The native llama.cpp AI backend exposes a lot of options from llama.cpp to be configured by LlamaCppPipeline (the JS consumer). One of those options is use_mmap, set on llama_model_params. This option is exposed through PipelineOptions and re-exposed by the LlamaCppPipeline.
One of the patches we apply on top of llama.cpp unconditionally disables the option.
This is a defect because the only real consumer of the native backend, Link Preview, requests this option. The option should either not be exposed to the pipeline configuration, or properly honored.
| Assignee | ||
Updated•25 days ago
|
| Assignee | ||
Comment 1•25 days ago
|
||
The patch introducing loading from file descriptor was rewritten to reuse code upstream. The new version honors the use_mmap when the old one did not. This makes sure we're not changing the behavior of Link Preview (only consumer) which used to request it while it was silently ignored. Old behavior: pass use_mmap=true, ignored -> no mmap. New behavior: pass use_mmap=false, honored -> no mmap.
Comment 3•21 days ago
|
||
| bugherder | ||
Description
•