Closed Bug 2058344 Opened 4 months ago Closed 2 months ago

Bootstrap the browser side of the HWInference process

Categories

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

task

Tracking

()

RESOLVED DUPLICATE of bug 2070199

People

(Reporter: vpollet, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [aiplatform])

Attachments

(2 obsolete files)

D268403 introduces the HWInference utility process. We are migrating llama.cpp operations from the JS inference process to this new utility process. To avoid sharing a process with web-originated inference (like the Speech Recognition Web API), browser-initiated inference will happen in a physically separate process. The goal here is to bootstrap the browser-side of things, following the pattern established by D268403 for content-side.

PHWInferenceBrowserManager and its two actors manage task protocols for browser-initiated requests.

Attachment #9621320 - Attachment description: WIP: Bug 2058344 - Browser-side HWInference manager, bootstrapped over PHWInference → WIP: Bug 2058344 - Part 1: Added browser-side HWInference manager over PHWInference

GetOrCreate() shares one browser-keyed process through Reservations, with the manager holding the process keep-alive. When the last consumer drops, the process is retired at once or after browser.ml.hwInference.processTimeout ms, so the next consumer skips the launch.

Status: NEW → RESOLVED
Closed: 2 months ago
Duplicate of bug: 2070199
Resolution: --- → DUPLICATE

Comment on attachment 9621320 [details]
WIP: Bug 2058344 - Part 1: Added browser-side HWInference manager over PHWInference

Revision D316054 was moved to bug 2070199. Setting attachment 9621320 [details] to obsolete.

Attachment #9621320 - Attachment is obsolete: true

Comment on attachment 9622681 [details]
WIP: Bug 2058344 - Part 2: Add HWInference-browser keep-alive policy

Revision D316834 was moved to bug 2070199. Setting attachment 9622681 [details] to obsolete.

Attachment #9622681 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: