Closed
Bug 2012177
Opened 9 months ago
Closed 4 months ago
Introduce & use a best-onnx backend
Categories
(Core :: Machine Learning: On Device, enhancement, P2)
Core
Machine Learning: On Device
Tracking
()
RESOLVED
FIXED
153 Branch
| Tracking | Status | |
|---|---|---|
| firefox153 | --- | fixed |
People
(Reporter: atossou, Assigned: jbowser)
References
(Blocks 1 open bug)
Details
(Whiteboard: [aiplatform])
Attachments
(1 file)
best-onnx should mirror best-llama. Basically, if onnx-native cannot work on some user machine, it fallbacks to onnx wasm
Updated•9 months ago
|
Updated•5 months ago
|
Assignee: atossou → nobody
Comment 1•5 months ago
|
||
Here's where the best-llama logic is being determined.
And a general search for best llama: https://searchfox.org/firefox-main/rev/c90c4a59e34b5c6142691052bbb15b295ea0c37c/toolkit/components/ml/actors/MLEngineParent.sys.mjs#657-668
Comment 2•5 months ago
|
||
There's also this fallbackBackend: "onnx", logic which should be migrated to this new best-onnx. I'm not sure if the fallbackBackend thing is actually wired up anywhere.
Updated•5 months ago
|
Priority: -- → P2
Updated•5 months ago
|
Blocks: onnx-runtime
| Assignee | ||
Updated•5 months ago
|
Assignee: nobody → jbowser
| Assignee | ||
Updated•5 months ago
|
Whiteboard: [genai] → [aiplatform]
Updated•5 months ago
|
| Assignee | ||
Comment 4•5 months ago
|
||
This commit does the following:
- Creates the "best-onnx" backend, which works similarly to the "best-llama" backend
- Does a check to make sure that ONNX runtime can actually be loaded to detect issues in 1983444
- Provides a test to test those changes
Manual Tests that were done:
- Testing Smart Tab Grouping
- Console tests to make sure that the C++ method canUseOnnxNative() is exposed to JS
Updated•4 months ago
|
Attachment #9586137 -
Attachment description: Bug 2012177 - First attempt at adding best-onnx r=gregtatum → Bug 2012177 - Add a "best-onnx" backend that chooses between onnx-native and wasm onnx r=gregtatum
Pushed by thasan@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/ff2569a4a447
https://hg.mozilla.org/integration/autoland/rev/ffc0c7fba82d
Add a "best-onnx" backend that chooses between onnx-native and wasm onnx r=tabbrowser-reviewers,ai-platform-reviewers,thasan,sthompson
Status: NEW → RESOLVED
Closed: 4 months ago
status-firefox153:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
Updated•4 months ago
|
QA Whiteboard: [qa-triage-done-c154/b153]
You need to log in
before you can comment on or make changes to this bug.
Description
•