Vendor Transformers.js 2.16.1
Categories
(Core :: Machine Learning, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox127 | --- | fixed |
People
(Reporter: tarek, Assigned: tarek)
References
Details
(Whiteboard: [genai])
Attachments
(1 file)
This vendors Transformers.js into the ML component to perform local inference
The project is maintained by Hugging Faces and is a wrapper lib around the ONNX runtime that we will store as WASM files into Remote Settings.
The licence is APLv2
Assignee | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
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 3•1 year ago
|
||
Backed out for causing bc failures @ browser_all_files_referenced.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/0558e77139f0c57a342972dc9bcfa67dc55715cd
Assignee | ||
Updated•1 year ago
|
Comment 6•11 months ago
|
||
(In reply to Pulsebot from comment #2)
Pushed by tziade@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/957de71a1cd0
vendor Transformers.js - r=gregtatum,frontend-codestyle-reviewers,Standard8
Perfherder has detected a build_metrics performance change from push 957de71a1cd0cadef70bbc0cc03810e428f7abff.
Regressions:
Ratio | Test | Platform | Options | Absolute values (old vs new) |
---|---|---|---|---|
1% | installer size | osx-cross | 94,150,413.00 -> 94,991,016.33 |
As author of one of the patches included in that push, we need your help to address this regression.
Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests. Please follow our guide to handling regression bugs and let us know your plans within 3 business days, or the patch(es) may be backed out in accordance with our regression policy.
If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a sheriff to do that for you.
You can run these tests on try with ./mach try perf --alert 42272
For more information on performance sheriffing please see our FAQ.
Assignee | ||
Comment 7•11 months ago
|
||
I added a new vendored lib that will be smaller on release (the dev version includes the dev flavor) -- I also did a follow up patch on Bug 1887826 that removes the map data, making it smaller already.
Comment 8•11 months ago
|
||
(In reply to Tarek Ziadé (:tarek) from comment #7)
I added a new vendored lib that will be smaller on release (the dev version includes the dev flavor) -- I also did a follow up patch on Bug 1887826 that removes the map data, making it smaller already.
Hi Tarek! Do you have a pushlog with the fix you mentioned. I checked the graphs in the regression bug, but there is no size fix visible.
Updated•11 months ago
|
Assignee | ||
Comment 9•11 months ago
•
|
||
Hey Alex, check out this changeset https://hg.mozilla.org/mozilla-central/rev/6070f05ecffa46451670c0daa47148c3e7612a43
and in particular the change on ort-dev.js
I removed the map data at the end of the file, reducing its size from 3.8MiB to 1.3MiB:
➜ dist git:(main) ✗ ls -lah ort-dev.js
-rw-r--r-- 1 tarekziade staff 3.8M Oct 26 1985 ort-dev.js
➜ dist git:(main) ✗ sed -i '' '1855,1859d' ort-dev.js
➜ dist git:(main) ✗ sed -i '' '$d' ort-dev.js
➜ dist git:(main) ✗ ls -lah ort-dev.js
-rw-r--r-- 1 tarekziade staff 1.3M May 2 14:14 ort-dev.js
Comment 10•11 months ago
|
||
(In reply to Tarek Ziadé (:tarek) from comment #9)
Hey Alex, check out this changeset https://hg.mozilla.org/mozilla-central/rev/6070f05ecffa46451670c0daa47148c3e7612a43
and in particular the change on ort-dev.jsI removed the map data at the end of the file, reducing its size from 3.8MiB to 1.3MiB:
➜ dist git:(main) ✗ ls -lah ort-dev.js -rw-r--r-- 1 tarekziade staff 3.8M Oct 26 1985 ort-dev.js ➜ dist git:(main) ✗ sed -i '' '1855,1859d' ort-dev.js ➜ dist git:(main) ✗ sed -i '' '$d' ort-dev.js ➜ dist git:(main) ✗ ls -lah ort-dev.js -rw-r--r-- 1 tarekziade staff 1.3M May 2 14:14 ort-dev.js
Hi Tarek! Thanks for the reply! It looks like even though the size increase caused by 6070f05ecffa46451670c0daa47148c3e7612a43 is smaller than the one introduced by revision 957de71a1cd0cadef70bbc0cc03810e428f7abff, the alerting system still detected a regression for the introduced changeset (as visible in the regressing defect 1893112. If the changeset is necessary and the regressing bug is set to WONTFIX, I will update the alert summary to reflect the new status.
Description
•