Closed
Bug 1924499
Opened 1 year ago
Closed 1 year ago
Add an API to check if we can run inference
Categories
(Core :: Machine Learning: General, enhancement, P2)
Core
Machine Learning: General
Tracking
()
RESOLVED
FIXED
133 Branch
| Tracking | Status | |
|---|---|---|
| firefox133 | --- | fixed |
People
(Reporter: tarek, Assigned: tarek)
References
(Blocks 1 open bug)
Details
(Whiteboard: [genai])
Attachments
(1 file)
Two elements:
- a C++ helper to get the info
- a JS function to loop on that info and block if there's not enough memory
| Assignee | ||
Comment 1•1 year ago
|
||
GlobalMemoryStatusEx already provides it and is used in nsAvailableMemoryWatcher::IsCommitSpaceLow()
| Assignee | ||
Updated•1 year ago
|
Summary: Add an API to get total+used physical memory → Add an API to check if we can run inference
| Assignee | ||
Comment 2•1 year ago
|
||
| Assignee | ||
Updated•1 year ago
|
Whiteboard: [genai]
Updated•1 year ago
|
| Assignee | ||
Comment 3•1 year ago
|
||
It's too hard to find a formula,
I tried based on config.json, on the onnx file sizes, but there are too many factors and unknowns (ion, etc).
we want instead to run in the CI some benchmarks to collect some data depending on the number of threads, the model etc
for now we'll keep a hardcoded list of models with a value
| Assignee | ||
Comment 4•1 year ago
|
||
That list can be in RS
Updated•1 year ago
|
Attachment #9430776 -
Attachment description: WIP: Bug 1924499 - Add an API to check if we can run inference → Bug 1924499 - Add an API to check if we can run inference r?padenot,gregtatum
| Assignee | ||
Comment 5•1 year ago
|
||
Landing this now -- the memory checker is preffed off. I will continue in follow up bugs
Pushed by tziade@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5f9b82e165a2
Add an API to check if we can run inference r=padenot,gregtatum,frontend-codestyle-reviewers,Standard8
Comment 7•1 year ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 1 year ago
status-firefox133:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•