Vendor llama.cpp
Categories
(Core :: Machine Learning: General, enhancement, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox144 | --- | fixed |
People
(Reporter: padenot, Assigned: padenot)
References
(Regressed 1 open bug)
Details
(Keywords: perf-alert, Whiteboard: [genai])
Attachments
(10 files, 4 obsolete files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
| Assignee | ||
Comment 1•1 year ago
|
||
update
| Assignee | ||
Comment 2•1 year ago
|
||
| Assignee | ||
Comment 3•1 year ago
|
||
| Assignee | ||
Comment 4•1 year ago
|
||
Comment 5•1 year ago
|
||
The severity field is not set for this bug.
:tarek, could you have a look please?
For more information, please visit BugBot documentation.
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 6•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 7•1 year ago
|
||
| Assignee | ||
Comment 8•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 9•1 year ago
|
||
Comment 10•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 11•1 year ago
|
||
| Assignee | ||
Comment 12•11 months ago
|
||
| Assignee | ||
Comment 13•11 months ago
|
||
Updated•11 months ago
|
Comment 14•11 months ago
|
||
Comment 15•11 months ago
|
||
Updated•11 months ago
|
Comment 16•10 months ago
|
||
Comment 17•10 months ago
|
||
Backed out for causing Hazard bustages.
Backout link: https://hg-edge.mozilla.org/integration/autoland/rev/4efe072f5aa1c69de8158337d9cddbaf7ec3ae05
Failure log:
Hazard: https://treeherder.mozilla.org/logviewer?job_id=523781509&repo=autoland&task=WahxcdQjRPGMO-v-YgrlcQ.0&lineNumber=153071
Tier2 Snap: https://treeherder.mozilla.org/logviewer?job_id=523755213&repo=autoland&task=DAmutYuXQhqT2vtrOnel0g.0
Comment 18•10 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/b915f51df79a
https://hg.mozilla.org/mozilla-central/rev/232bc92d24e2
https://hg.mozilla.org/mozilla-central/rev/47e0ba3acc33
https://hg.mozilla.org/mozilla-central/rev/142950f7cc02
https://hg.mozilla.org/mozilla-central/rev/216f4b30b0c0
https://hg.mozilla.org/mozilla-central/rev/d725386721e4
https://hg.mozilla.org/mozilla-central/rev/755c877677b5
https://hg.mozilla.org/mozilla-central/rev/295143572cc2
https://hg.mozilla.org/mozilla-central/rev/347c59ae0bce
Comment 19•10 months ago
|
||
Comment 20•10 months ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/4efe072f5aa1
| Assignee | ||
Updated•10 months ago
|
Comment 21•10 months ago
|
||
Comment 22•10 months ago
|
||
Comment 23•10 months ago
|
||
Comment 24•10 months ago
|
||
Backed out for causing Hazard bustages.
Backout link: https://hg-edge.mozilla.org/integration/autoland/rev/ad97718e3c54cfa88c7e480fde786dc961594b79
| Assignee | ||
Updated•10 months ago
|
Comment 25•10 months ago
|
||
(In reply to amarc from comment #20)
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/4efe072f5aa1
Perfherder has detected a awsy performance change from push 4efe072f5aa1c69de8158337d9cddbaf7ec3ae05.
If you have any questions, please reach out to a performance sheriff. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.
Improvements:
| Ratio | Test | Platform | Options | Absolute values (old vs new) |
|---|---|---|---|---|
| 4% | Base Content Heap Unclassified | windows11-64-24h2-shippable | fission | 2,126,249.33 -> 2,039,947.33 |
| 3% | Base Content Heap Unclassified | linux1804-64-shippable-qr | fission | 2,576,719.67 -> 2,493,361.67 |
Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.
If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a performance sheriff to do that for you.
You can run all of these tests on try with ./mach try perf --alert 46509
The following documentation link provides more information about this command.
Comment 26•10 months ago
|
||
Hi Paul! There was a build_metrics regression detected on the push mentioned below, and this bug was referenced. Do you think this bug may have caused the performance regression ?
Perfherder has detected a build_metrics performance change from push 347c59ae0bce3cde618bb738c6e630896f22cf8a. As author of one of the patches included in that push, we need your help to address this regression.
Please acknowledge, and begin investigating this alert within 3 business days, or the patch(es) may be backed out in accordance with our regression policy. Our guide to handling regression bugs has information about how you can proceed with this investigation.
If you have any questions or need any help with the investigation, please reach out to a performance sheriff. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.
Regressions:
| Ratio | Test | Platform | Options | Absolute values (old vs new) |
|---|---|---|---|---|
| 6% | compiler_metrics num_static_constructors | osx-cross | 91.00 -> 96.50 | |
| 4% | compiler_metrics num_static_constructors | linux64-shippable | 102.00 -> 106.17 |
Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.
If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a performance sheriff to do that for you.
You can run all of these tests on try with ./mach try perf --alert 46416
The following documentation link provides more information about this command.
Comment 27•10 months ago
|
||
(In reply to Pulsebot from comment #21)
Pushed by tziade@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/493cbdd30d11
https://hg.mozilla.org/integration/autoland/rev/192e6270b310
Copy and extend cmakeparser.py from libaom. r=padenot
https://github.com/mozilla-firefox/firefox/commit/11b851428fe8
https://hg.mozilla.org/integration/autoland/rev/152466554261
ruff pass r=padenot
https://github.com/mozilla-firefox/firefox/commit/b2e33cddea41
https://hg.mozilla.org/integration/autoland/rev/590f70f1aad4
Vendor llama.cpp. r=glandium
https://github.com/mozilla-firefox/firefox/commit/a1c82cd1af54
https://hg.mozilla.org/integration/autoland/rev/b050e6d485b0
Do not run our Sprintf Literal Checker clang plugin on third party code.
r=marco
https://github.com/mozilla-firefox/firefox/commit/a90d27b100bc
https://hg.mozilla.org/integration/autoland/rev/2ef9bf65ad05
Do not compile llama.cpp on Android. r=tarek
https://github.com/mozilla-firefox/firefox/commit/4b9d33a0f2ef
https://hg.mozilla.org/integration/autoland/rev/934bc454421f
Don't crash in llama.cpp when an exception is caught for control flow and
not error handling. r=atossou
https://github.com/mozilla-firefox/firefox/commit/ea7b4d1d7985
https://hg.mozilla.org/integration/autoland/rev/f603525b0b45
Compile llama.cpp w/ AVX2 on x86_64, allow knowing if we can use it via js.
r=atossou
https://github.com/mozilla-firefox/firefox/commit/7913af2d8931
https://hg.mozilla.org/integration/autoland/rev/2084dabd20b7
Patch llama.cpp to allow loading a model from a fd or a buffer. r=atossou
https://github.com/mozilla-firefox/firefox/commit/73c82626f4c6
https://hg.mozilla.org/integration/autoland/rev/275bf8f32ff3
skip telemetry and engine test in verify r=tarek
https://github.com/mozilla-firefox/firefox/commit/bd6cb02b2f62
https://hg.mozilla.org/integration/autoland/rev/54bb42a9fc65
1973711, 1976784, 1978748: apply code formatting via Lando
Just to clarify, the regression reported below has been backed out, no further action is needed here.
Perfherder has detected a build_metrics performance change from push 54bb42a9fc65b0aafa2a4d168f5c001112d237f3. As author of one of the patches included in that push, we need your help to address this regression.
If you have any questions or need any help with the investigation, please reach out to a performance sheriff. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.
Regressions:
| Ratio | Test | Platform | Options | Absolute values (old vs new) |
|---|---|---|---|---|
| 9% | compiler_metrics num_static_constructors | linux64-snap | 98.00 -> 106.50 | |
| 8% | compiler_metrics num_static_constructors | linux64-snap | 102.33 -> 111.00 | |
| 7% | compiler_metrics num_static_constructors | windows2012-64 | 94.00 -> 101.00 | |
| 7% | compiler_metrics num_static_constructors | osx-cross | 87.00 -> 93.00 | |
| 7% | compiler_metrics num_static_constructors | osx-cross | 91.00 -> 97.00 | |
| 6% | compiler_metrics num_static_constructors | windows2012-32 | 108.00 -> 115.00 | |
| 5% | compiler_metrics num_static_constructors | osx-cross-aarch64 | aarch64 | 92.75 -> 97.50 |
| 5% | compiler_metrics num_static_constructors | osx-shippable | instrumented | 92.75 -> 97.50 |
| 5% | compiler_metrics num_static_constructors | linux64 | 102.00 -> 107.00 | |
| 5% | compiler_metrics num_static_constructors | windows2012-64 | 148.00 -> 155.00 | |
| 5% | compiler_metrics num_static_constructors | linux64 | 106.00 -> 111.00 | |
| 4% | compiler_metrics num_static_constructors | windows2012-32 | 159.00 -> 166.00 | |
| 4% | compiler_metrics num_static_constructors | linux64-shippable | 102.00 -> 106.17 | |
| 4% | compiler_metrics num_static_constructors | linux64-shippable | instrumented | 108.00 -> 112.17 |
Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.
If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a performance sheriff to do that for you.
You can run all of these tests on try with ./mach try perf --alert 46450
The following documentation link provides more information about this command.
Comment 28•10 months ago
|
||
(In reply to Pulsebot from comment #16)
Pushed by abutkovits@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/e09dab177edb
https://hg.mozilla.org/integration/autoland/rev/4efe072f5aa1
Revert "Bug 1971158, 1973711, 1976784, 1978748: apply code formatting via
Lando" for causing Hazard bustages.
Perfherder has detected a build_metrics performance change from push 4efe072f5aa1c69de8158337d9cddbaf7ec3ae05.
If you have any questions, please reach out to a performance sheriff. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.
Improvements:
| Ratio | Test | Platform | Options | Absolute values (old vs new) |
|---|---|---|---|---|
| 6% | compiler_metrics num_static_constructors | osx-cross | 97.00 -> 91.00 | |
| 4% | compiler_metrics num_static_constructors | linux64-shippable | 106.17 -> 102.00 | |
| 4% | compiler_metrics num_static_constructors | linux64-shippable | instrumented | 112.17 -> 108.00 |
Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.
If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a performance sheriff to do that for you.
You can run all of these tests on try with ./mach try perf --alert 46435
The following documentation link provides more information about this command.
| Assignee | ||
Updated•10 months ago
|
| Assignee | ||
Comment 29•10 months ago
|
||
Comment 30•10 months ago
|
||
Comment 31•10 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/9fc97ed64612
https://hg.mozilla.org/mozilla-central/rev/b50b606e99d4
https://hg.mozilla.org/mozilla-central/rev/a6b5919847a1
https://hg.mozilla.org/mozilla-central/rev/545c3770cabf
https://hg.mozilla.org/mozilla-central/rev/0b4dbcbb8909
https://hg.mozilla.org/mozilla-central/rev/46b935061409
https://hg.mozilla.org/mozilla-central/rev/cd6daec6e4ae
https://hg.mozilla.org/mozilla-central/rev/cbc06957aed3
https://hg.mozilla.org/mozilla-central/rev/010afe1fcabb
https://hg.mozilla.org/mozilla-central/rev/b56c81cb2ba2
https://hg.mozilla.org/mozilla-central/rev/4c630ff1b325
Updated•10 months ago
|
Comment 32•10 months ago
|
||
Hi, may I ask what was the motivation behind this? Given Llamafile description:
by combining llama.cpp with Cosmopolitan Libc into one framework that collapses all the complexity of LLMs down to a single-file executable (called a "llamafile")
Comment 33•10 months ago
|
||
(In reply to Nathan Teodosio :nteodosio from comment #32)
Hi, may I ask what was the motivation behind this? Given Llamafile description:
by combining llama.cpp with Cosmopolitan Libc into one framework that collapses all the complexity of LLMs down to a single-file executable (called a "llamafile")
It does not serve the same purpose. llamafile is a great tool to run an llm as an HTTP service on your device, but we need an inference engine inside Firefox to run inference tasks. It's not practical for us to have two applications running on the device, e.g. firefox and then llamafile. It adds complexity, security issues, installation issues, performance considerations etc.
Vendoring the llama lib directly inside Firefox is the right design to add local inference in the browser.
Description
•