Closed Bug 2058119 Opened 4 months ago Closed 3 months ago

[llama.cpp] LlamaCppPipeline options are not always forwarded to llama.cpp

Categories

(Core :: Machine Learning: On Device, defect, P2)

defect

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox154 --- wontfix
firefox155 --- fixed

People

(Reporter: vpollet, Assigned: vpollet)

References

(Blocks 1 open bug)

Details

(Whiteboard: [aiplatform])

Attachments

(1 external file)

LlamaCppPipeline computes cache dtypes, flash attention and batch sizes from PipelineOptions and forwards none of them to LlamaRunner.initialize, so every native consumer runs the runner defaults (no flash attention, f16 KV caches, batch 2048/512).

We should fix the call sites such that consumers (Link Preview) get what they requested.

Whiteboard: [aiplatform]

kvCacheDtype, flashAttn and numBatch/numUbatch requests were never honored.
This deletes fiction in consumer use of the llama.cpp backend.

Assignee: nobody → vpollet
Status: NEW → ASSIGNED
Pushed by vpollet@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1867b3fcf310 https://hg.mozilla.org/integration/autoland/rev/bc68a25817c8 llama.cpp callsites stop requesting options the engine never served r=ai-platform-reviewers,ngrato,nordzilla
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: