Closed Bug 2023706 Opened 5 months ago Closed 5 months ago

[model] - intentClassifier model needs to switch from wasm to onnx-native

Categories

(Core :: Machine Learning: General, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: cgopal, Assigned: tliu)

References

Details

(Whiteboard: [genai][models])

Attachments

(1 file)

intentClassifier model needs to switch from wasm to onnx-native
https://searchfox.org/firefox-main/source/browser/components/aiwindow/models/IntentClassifier.sys.mjs#204-209
onnx-native is much faster than wasm.

Assignee: nobody → tliu
Status: NEW → ASSIGNED
Attachment #9553515 - Attachment description: WIP: Bug 2023706 - [model] - intentClassifier model needs to switch from wasm to onnx-native → Bug 2023706 - [model] - intentClassifier model needs to switch from wasm to onnx-native
Whiteboard: [GenAI]
Whiteboard: [GenAI] → [genai][models]
Pushed by cgopal@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/be9b60b7f2e7 https://hg.mozilla.org/integration/autoland/rev/28e3e0a2b187 [model] - intentClassifier model needs to switch from wasm to onnx-native r=cgopal,ai-models-reviewers
Pushed by asilaghi@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/cb11d6d8a1fa https://hg.mozilla.org/integration/autoland/rev/f6bb1bab3541 Revert "Bug 2023706 - [model] - intentClassifier model needs to switch from wasm to onnx-native r=cgopal,ai-models-reviewers" for causing bc failures at aiwindow_smartbar_keyboard_navigation.js
Flags: needinfo?(tliu)

Is there any policy updated for local models?
This backout reason wasn't raised in the past and it's not the change we made in this patch.
Please let us know the latest policy and best practice.

Flags: needinfo?(tliu) → needinfo?(asilaghi)

Hi

Here https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&fromchange=ba51a8fdca8c94399f5ea07d6fb23d93cdafa516&searchStr=bc&selectedTaskRun=R1oAb2BuQlmu06-sQO26DQ.0&tochange=2e8887e3b9f83893bfbb3cfb962f3ce564fd91ff are the backfills for this failure and below your push they are green.
All of them failed with this line Attempting to connect to non-local address! opener is [unknown], uri is [https://model-hub.mozilla.org/mozilla/mobilebert-query-intent-detection/main/tokenizer_config.json] [@ mozilla::net::nsHttpChannel::OnStartRequest] | browser/components/aiwindow/ui/test/browser/browser_aiwindow_smartbar_keyboard_navigation.js

Flags: needinfo?(asilaghi) → needinfo?(tliu)
Pushed by cgopal@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b174e92e63fd https://hg.mozilla.org/integration/autoland/rev/ab23fad69baa [model] - intentClassifier model needs to switch from wasm to onnx-native r=cgopal,ai-models-reviewers
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/845846162ec5 https://hg.mozilla.org/integration/autoland/rev/9b475df11ff7 Revert "Bug 2023706 - [model] - intentClassifier model needs to switch from wasm to onnx-native r=cgopal,ai-models-reviewers" for causing bc failures @@browser_aiwindow_smartbar_keyboard_navigation.js.

Backed out for causing bc failures @browser_aiwindow_smartbar_keyboard_navigation.js.

Pushed by elee@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/58a94889ad63 https://hg.mozilla.org/integration/autoland/rev/6324f1076d1e [model] - intentClassifier model needs to switch from wasm to onnx-native r=cgopal,ai-models-reviewers,ai-frontend-reviewers,Mardak
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
Flags: needinfo?(tliu)
QA Whiteboard: [qa-triage-done-c151/b150]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: