Qualcomm AI Engine Direct: a delegated mutable buffer starts from leftover memory
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- embedded-iot, machine-learning
Hướng nghiên cứu
Start by reading the QNN partitioner logic that decides whether mutable buffers are delegated, including the int64 special case, and trace how delegated buffers are initialized before their first run. Reproduce the counter example with the QNN SDK 2.51 x86 simulator and compare delegated results with CPU results. Done means delegated buffers begin with the registered value across dtypes, and the int64 special case can be removed.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When the QNN partitioner delegates a mutable buffer (the default,
skip_mutable_buffer=False), the buffer lives in memory that the QNN delegate
owns. Nothing sets that memory before the first run, so the buffer starts from
whatever the memory held. The result is wrong with no error.
Example: a counter that should start at zero.
class Int32Counter(torch.nn.Module):
def __init__(self):
super().__init__()
self.register_buffer("count", torch.zeros(2, dtype=torch.int32))
def forward(self, x):
self.count.add_(x.argmax(-1).to(torch.int32))
return x * 2, self.count + 0
With x = [[0.1, 0.9, 0.2], [0.7, 0.1, 0.3]] the first run should return
count = [1, 0]. Lowered for HTP float16 and run on the QNN SDK 2.51 x86
simulator, it returns values like [-1486893823, 32716], different on every
run.
Int64 buffers already stay on CPU for this reason, and the same counter with
an int64 buffer comes out right. Buffers of other dtypes,
including float buffers such as KV caches, are still delegated.
Expected: a delegated buffer starts from the same value as a CPU one, so the
int64 special case in the partitioner can go.
cc @cccclai @winskuo-quic @shewu-quic @haowhsu-quic @DannyYuyang-quic @qti-horodnic @cbilgin @abhinaykukkadapu @psiddh
- Ngôn ngữ chính
- Python
- Star
- 5.2k
- Fork
- 1.2k
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 696
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 pytorch/executorch
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
pytorch/executorch#24434 ·
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 82/100
pytorch/executorch#24410 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement triaged
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 68/100
pytorch/executorch#21640 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Qualcomm AI Engine Direct: HTP float16 Concat reads a static bool input of all True as FalseĐang mởmodule: qnn partner: qualcomm
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
pytorch/executorch#24750 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CUDA AOTI:`reinterpret_tensor` drops the source tensor's storage offsetCó thể đã có người làm @mshr-h đã nhận hôm nay. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
pytorch/executorch#24737 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của pytorch/executorch
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
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
Textualize/textual#6753 · 1 bình luận ·
-
priority:low size:small
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
RonaldHensbergen/composable-data-stack#1177 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Use registered media types for HDF5 and NetCDF, and stop claiming media_type must be IANA-registeredĐang mởdocumentation metadata
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
Maintainer thường phản hồi trong vòng 1 ngày
-
check-typing: ty 0.0.98+ fails on the renamed rule `unresolved-import` (now `import-not-found`)Có thể đã có người làm @oberstet đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
crossbario/cfxdb#145 ·