Support for workloads with response time requirements (realtime)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 8/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- audio-video-rtc, performance
Hướng nghiên cứu
This is a spec-level design discussion in the Bikeshed source of the WebNN specification, not a code task. It proposes workload priority or periodicity hints on the WebNN context or graph execution path, and asks whether the change needs spec text or only an API addition. Reading the issue thread and the existing scheduling-related spec sections is the first step; done would mean a maintainer-agreed design direction, which needs spec-level expertise.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Consider an RTC-style web app concurrently running a collection of ML workloads of various response requirements. Assume that there aren't capacity issues (the system as a whole has enough HP to execute the workload on average).
| Workload | Period/response requirement | Job completion delay |
|---|---|---|
| Audio capture processing (denoising etc) | 50 Hz | 25% |
| Video capture processing (eg background blur) | 30 Hz | 10-30% |
| WebSpeech | 500ms? | (continuous) |
| LLM | Bursty | Bursty |
Without proper WebNN consideration of these requirements there are concerns that the UA will make poor scheduling decisions, causing the system to miss deadlines. The effects:
- robo-sound
- audio glitches
- dropped video frames
- janky video
- increased end-to-end delay (since receiver jitterbuffers need to bump target delay to account for the problems).
The ideal state is that the system manages to understand the requirements. With the right scheduling decisions, LLM queries will be belated a little and possibly the latency of WebSpeech will go up, but as a whole it manages to meet the expectations in a good way.
Assuming the backend frameworks are capable of supporting workload prioritization, I see some options to help this case
- Equip the WebNN API with hints on the workload passed.
- Auto-detect the type of processing. For example, when audio or video capture wakes a worker it could transport a token containing periodicity info and let that influence scheduling decisions in the WebNN backend.
My guess is both need spec updates? Or maybe just the first option?
See also crbug.com/456006123 for repros of related issues with other tech than WebNN. Also note this issue is not asking for ways to understand total system capacity as this is impossible to compute without trying workloads out.
- Ngôn ngữ chính
- Bikeshed
- Star
- 566
- Fork
- 72
- Merge trung bình
- 6 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của webmachinelearning/webnn
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
webmachinelearning/webnn#967 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
webmachinelearning/webnn#966 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
webmachinelearning/webnn#965 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
webmachinelearning/webnn#964 · 1 bình luận · 1 reaction ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
webmachinelearning/webnn#963 · 3 bình luận · 2 reaction ·
Tất cả issue của webmachinelearning/webnn
Issue tương tự
-
own_voice: record without Chrome voice processing (defer 1.7B model)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởenhancement help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ccomkhj/product-demo#10 ·
-
Audio dropouts on macOS: the 1 s output-device check creates AudioUnits via cpal description()Có thể đã có người làm @niukanen1 đã nhận 1 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
LargeModGames/spotatui#928 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug coderabbit investigate
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
suhina-daw/suhina-daw#888 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
qwertymuzaffar/parrot#194 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
LCAV/pyroomacoustics#453 · 1 bình luận ·