Closed Bug 1944691 Opened 1 year ago Closed 1 year ago

Local model managment - Display local models

Categories

(Toolkit :: Add-ons Manager, enhancement, P2)

enhancement
Points:
5

Tracking

()

VERIFIED FIXED
140 Branch
Tracking Status
firefox140 --- verified

People

(Reporter: ngrato, Assigned: ngrato)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [genai])

Attachments

(2 files)

From API display local models in cards on the landing page. Card include title, image, what feature use the model, and how big the model is. This ticket does not include the scope of seeing a detailed view of the model.

Design link

Severity: -- → N/A
Blocks: 1947200
Blocks: 1947205

wip basic hooking up model hub on init calculating stuff from files

Attachment #9470133 - Attachment description: WIP: Bug 1944691 - Local model managment - Display local models → Bug 1944691 - Local model managment - Display local models
Attachment #9470133 - Attachment description: Bug 1944691 - Local model managment - Display local models → WIP: Bug 1944691 - Local model managment - Display local models
Blocks: 1959518
Blocks: 1959521
Blocks: 1944695
Attachment #9470133 - Attachment description: WIP: Bug 1944691 - Local model managment - Display local models → Bug 1944691 - Local model managment - Display local models
Attachment #9470133 - Attachment description: Bug 1944691 - Local model managment - Display local models → WIP: Bug 1944691 - Local model managment - Display local models
Attachment #9470133 - Attachment description: WIP: Bug 1944691 - Local model managment - Display local models → Bug 1944691 - Local model managment - Display local models
Duplicate of this bug: 1959349
Attachment #9470133 - Attachment description: Bug 1944691 - Local model managment - Display local models → WIP: Bug 1944691 - Local model managment - Display local models
Attachment #9470133 - Attachment description: WIP: Bug 1944691 - Local model managment - Display local models → Bug 1944691 - Local model managment - Display local models
Attachment #9470133 - Attachment description: Bug 1944691 - Local model managment - Display local models → WIP: Bug 1944691 - Local model managment - Display local models
Attachment #9470133 - Attachment description: WIP: Bug 1944691 - Local model managment - Display local models → Bug 1944691 - Local model managment - Display local models
Attachment #9470133 - Attachment description: Bug 1944691 - Local model managment - Display local models → WIP: Bug 1944691 - Local model managment - Display local models
Attachment #9470133 - Attachment description: WIP: Bug 1944691 - Local model managment - Display local models → Bug 1944691 - Local model managment - Display local models
See Also: → 1960813
Attachment #9470133 - Attachment description: Bug 1944691 - Local model managment - Display local models → Bug 1944691 - Local model managment - Display local models r=mardak
Pushed by ngrato@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/841d1af65477 Local model managment - Display local models r=Mardak,extension-reviewers,rpl

Backed out for causing bc failures @ browser_ml_cache.js

Backout link: https://hg.mozilla.org/integration/autoland/rev/64442afc6f275f25bf0f313e5b9b88a91f1152d5

Push with failures

Failure log -> TEST-UNEXPECTED-FAIL | toolkit/components/ml/tests/browser/browser_ml_cache.js

Buffered messages finished
[task 2025-04-29T20:30:53.261Z] 20:30:53     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/ml/tests/browser/browser_ml_cache.js | {"files":[{"path":"file.txt","headers":{"Content-Type":"application/octet-stream","fileSize":8,"ETag":"NO_ETAG","lastUpdated":1745958652902,"lastUsed":1745958652902},"engineIds":[]},{"path":"file2.txt","headers":{"Content-Type":"application/octet-stream","fileSize":8,"ETag":"NO_ETAG","lastUpdated":1745958652959,"lastUsed":1745958652959},"engineIds":[]},{"path":"sub/file3.txt","headers":{"Content-Length":"12345","ETag":"XYZ","Content-Type":"application/octet-stream","fileSize":32,"lastUpdated":1745958653026,"lastUsed":1745958653026},"engineIds":[]}],"metadata":{"totalSize":48,"lastUsed":1745958653026,"updateDate":1745958653026,"engineIds":[]}} deepEqual [{"path":"file.txt","headers":{"Content-Type":"application/octet-stream","fileSize":8,"ETag":"NO_ETAG","lastUsed":1745958652902,"lastUpdated":1745958652902}},{"path":"file2.txt","headers":{"Content-Type":"application/octet-stream","fileSize":8,"ETag":"NO_ETAG","lastUsed":1745958652959,"lastUpdated":1745958652959}},{"path":"sub/file3.txt","headers":{"Content-Length":"12345","Content-Type":"application/octet-stream","fileSize":32,"ETag":"XYZ","lastUsed":1745958653026,"lastUpdated":1745958653026}}] - 
[task 2025-04-29T20:30:53.261Z] 20:30:53     INFO - Stack trace:
[task 2025-04-29T20:30:53.261Z] 20:30:53     INFO - chrome://mochitests/content/browser/toolkit/components/ml/tests/browser/browser_ml_cache.js:test_listFiles:1131
[task 2025-04-29T20:30:53.261Z] 20:30:53     INFO - chrome://mochikit/content/browser-test.js:handleTask:1170
[task 2025-04-29T20:30:53.261Z] 20:30:53     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1242
[task 2025-04-29T20:30:53.261Z] 20:30:53     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1383
[task 2025-04-29T20:30:53.261Z] 20:30:53     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1159
[task 2025-04-29T20:30:53.261Z] 20:30:53     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2025-04-29T20:30:53.262Z] 20:30:53     INFO - Leaving test bound test_listFiles
[task 2025-04-29T20:30:53.262Z] 20:30:53     INFO - Entering test bound test_listFilesUsingTaskName
[task 2025-04-29T20:30:53.496Z] 20:30:53     INFO - Not taking screenshot here: see the one that was previously logged
[task 2025-04-29T20:30:53.497Z] 20:30:53     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/ml/tests/browser/browser_ml_cache.js | {"files":[{"path":"file.txt","headers":{"Content-Type":"application/octet-stream","fileSize":8,"ETag":"NO_ETAG","lastUpdated":1745958653297,"lastUsed":1745958653297},"engineIds":[]},{"path":"file2.txt","headers":{"Content-Type":"application/octet-stream","fileSize":8,"ETag":"NO_ETAG","lastUpdated":1745958653401,"lastUsed":1745958653401},"engineIds":[]},{"path":"sub/file3.txt","headers":{"Content-Length":"12345","ETag":"XYZ","Content-Type":"application/octet-stream","fileSize":32,"lastUpdated":1745958653463,"lastUsed":1745958653463},"engineIds":[]}],"metadata":{"totalSize":48,"lastUsed":1745958653463,"updateDate":1745958653463,"engineIds":[]}} deepEqual [{"path":"file.txt","headers":{"Content-Type":"application/octet-stream","fileSize":8,"ETag":"NO_ETAG","lastUsed":1745958653297,"lastUpdated":1745958653297}},{"path":"file2.txt","headers":{"Content-Type":"application/octet-stream","fileSize":8,"ETag":"NO_ETAG","lastUsed":1745958653401,"lastUpdated":1745958653401}},{"path":"sub/file3.txt","headers":{"Content-Length":"12345","Content-Type":"application/octet-stream","fileSize":32,"ETag":"XYZ","lastUsed":1745958653463,"lastUpdated":1745958653463}}] - 
[task 2025-04-29T20:30:53.497Z] 20:30:53     INFO - Stack trace:
[task 2025-04-29T20:30:53.497Z] 20:30:53     INFO - chrome://mochitests/content/browser/toolkit/components/ml/tests/browser/browser_ml_cache.js:test_listFilesUsingTaskName:1210
[task 2025-04-29T20:30:53.497Z] 20:30:53     INFO - chrome://mochikit/content/browser-test.js:handleTask:1170
[task 2025-04-29T20:30:53.497Z] 20:30:53     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1242
[task 2025-04-29T20:30:53.497Z] 20:30:53     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1383
[task 2025-04-29T20:30:53.497Z] 20:30:53     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1159
[task 2025-04-29T20:30:53.497Z] 20:30:53     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2025-04-29T20:30:53.550Z] 20:30:53     INFO - Leaving test bound test_listFilesUsingTaskName
[task 2025-04-29T20:30:53.550Z] 20:30:53     INFO - Entering test bound test_listFilesUsingNonExistingTaskName
[task 2025-04-29T20:30:53.834Z] 20:30:53     INFO - Not taking screenshot here: see the one that was previously logged
[task 2025-04-29T20:30:53.835Z] 20:30:53     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/ml/tests/browser/browser_ml_cache.js | {"files":[],"metadata":{"totalSize":0,"lastUsed":0,"updateDate":0,"engineIds":[]}} deepEqual [] - 
[task 2025-04-29T20:30:53.835Z] 20:30:53     INFO - Stack trace:
Flags: needinfo?(ngrato)
Pushed by ngrato@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/edabfa649074 Local model managment - Display local models r=Mardak,extension-reviewers,rpl
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
Flags: needinfo?(ngrato)
Duplicate of this bug: 1947205

Verified as Fixed. Tested on the latest Nightly (140.0a1/20250521212425).

The local model card is displayed on the “Manage On-Device AI Models” page in about:addons and it contains the following details: the name of the model, an icon of the model, the feature that uses the model, the model size and the three dot menu. See attached screenshot for more details.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: