Local model managment - Display local models
Categories
(Toolkit :: Add-ons Manager, enhancement, P2)
Tracking
()
| 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.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 1•1 year ago
|
||
wip basic hooking up model hub on init calculating stuff from files
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 4•1 year ago
|
||
Backed out for causing bc failures @ browser_ml_cache.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/64442afc6f275f25bf0f313e5b9b88a91f1152d5
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:
Comment 8•1 year ago
|
||
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.
Comment 9•1 year ago
|
||
Description
•