Device discovery and placement API for the llama.cpp engine
Categories
(Core :: Machine Learning: On Device, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox161 | --- | fixed |
People
(Reporter: vpollet, Assigned: vpollet)
References
(Blocks 1 open bug)
Details
(Whiteboard: [aiplatform])
Attachments
(5 external files)
Features consuming llama.cpp should have access to an API to query capabilities of the HWInference process, and a way to specify hardware accelerators when configuring an engine.
Updated•3 months ago
|
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Devices that fail a real initialisation are not listed.
Updated•1 month ago
|
| Assignee | ||
Comment 2•1 month ago
|
||
nGpuLayers, offloadKqv and opOffload are removed from LlamaRunner. The KV
cache and host-side ops follow the loaded device. An empty placement loads on
the CPU.
| Assignee | ||
Comment 3•1 month ago
|
||
The option is an HWInferencePlacement, forwarded unchanged to
TextGenerator.create().
| Assignee | ||
Comment 4•1 month ago
|
||
The device_kind extra is cpu, gpu or npu. The device id stays out of
telemetry. The extra is null on backends that do not place models.
| Assignee | ||
Comment 5•1 month ago
|
||
MOZ_ML_EXPECT_ACCELERATOR makes a missing accelerator a test failure. It also
adds a SmolLM2 chat run placed on a GPU, with no CPU fallback.
Comment 7•21 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/43ed38f581e6
https://hg.mozilla.org/mozilla-central/rev/42d62613be3a
https://hg.mozilla.org/mozilla-central/rev/0006690f4e11
https://hg.mozilla.org/mozilla-central/rev/a674077e952b
https://hg.mozilla.org/mozilla-central/rev/bec672284e1f
Comment 9•20 days ago
|
||
| bugherder | ||
Comment 10•19 days ago
|
||
Authored by https://github.com/vlntnplt
https://github.com/mozilla/enterprise-firefox/commit/53a1e1440621c88c19f892ea248b84cdfc60f4a5
[enterprise-main] Bug 2058478 - Part 1: List the inference devices of the HWInference process. r=ai-platform-reviewers,nordzilla
Authored by https://github.com/vlntnplt
https://github.com/mozilla/enterprise-firefox/commit/56f99db5c5cc168196e63dc4ebbf60b210a8a250
[enterprise-main] Bug 2058478 - Part 2: Let a TextGenerator choose its device through a placement. r=ai-platform-reviewers,webidl,smaug,nordzilla
Authored by https://github.com/vlntnplt
https://github.com/mozilla/enterprise-firefox/commit/e3997055527cf6234d43b26a468626a6872db5ee
[enterprise-main] Bug 2058478 - Part 3: Let the device pipeline option place a text generation. r=ai-platform-reviewers,nordzilla
Authored by https://github.com/vlntnplt
https://github.com/mozilla/enterprise-firefox/commit/45be2a43455d957913408c2cf2ecb7395db96504
[enterprise-main] Bug 2058478 - Part 4: Record the kind of device that loaded a text generation model. r=ai-platform-reviewers,nordzilla
Authored by https://github.com/vlntnplt
https://github.com/mozilla/enterprise-firefox/commit/d5ce10e284c29ccab91ab1e5451df99dfd3267ca
[enterprise-main] Bug 2058478 - Part 5: Test llama.cpp on the Metal GPU of the macOS CI machines. r=ai-platform-reviewers,taskgraph-reviewers,jcristau,nordzilla
(via GitHub webhook, authenticated as shared-secret)
Updated•17 days ago
|
Description
•