Closed Bug 1905599 Opened 3 months ago Closed 3 months ago

Add a new remote type `inference`

Categories

(Core :: Machine Learning, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: tarek, Assigned: tarek)

References

Details

Attachments

(1 file)

This type will be used for running the machine learning inference runtimes.

Assignee: nobody → tziade
Type: defect → enhancement

We currently use the "web" remote type to create a browser environment and have a dedicated content process for both the Translation feature and the image-to-text PDF.js feature, that are running an inference runtime in WASM. Currently we need a full browser because we use the JS engine.

The browser is created here : https://searchfox.org/mozilla-central/source/toolkit/components/ml/content/EngineProcess.sys.mjs#282-288
and then we load a web poage containing the WASM runtime. example:

This isolation allows us to control the resources used by the inference, that content process gets killed after a timeout, and we can also avoid crashes if the process uses too much memory.

We've talked with :nika about creating a dedicated remote type to differentiate this process from others. This will come handy in about:processes, about:memory and telemetry, and also if we allow using inference in web extensions at some point - e.g. we will probably have to prioritize calls and have a separate process for web extensions so it does not interfere with what Firefox is doing.

Pushed by tziade@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d49b569b612b Add a new remote type `inference` r=smaug,fluent-reviewers,flod
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: