Should wasmtime-wasi-nn be developed out-of-tree?

Đang mở
#14,937 8 bình luận 1 reaction 0 người được giao Xem trên GitHub

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ó
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
20/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
backend

Hướng nghiên cứu

Read the issue's linked security and testing discussions, especially #14790, #14444, and #14437, then examine the wasmtime-wasi-nn crate and its integration with the Wasmtime CLI. The issue asks maintainers to decide whether to move development to a separate repository and what CLI integration would be lost; done means that direction is agreed and the migration scope is clear.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

wasi-nn

Since its inception (I think at least) the wasmtime-wasi-nn crate and wasi:nn has been developed in-tree in Wasmtime. The activity in this area has been pretty reduced as of late, however, and there have additionally been some historical difficulties with this setup which are starting to come up again. For example:

  • Right now there's a RUSTSEC advisory for a transitive dependency of wasmtime-wasi-nn which is as-of-now unresolvable. This is a many-levels-deep transitive dependency which requires multiple dependency updates which hasn't happened yet.
  • In general the dependency tree of wasmtime-wasi-nn is quite large and deep in contrast with other dependencies in Wasmtime. This is the diff created from removing wasmtime-wasi-nn locally, for example, meaning that all of these dependencies are exclusively used by wasmtime-wasi-nn:
-name = "aes"
-name = "base64ct"
-name = "byteorder"
-name = "bzip2"
-name = "bzip2-sys"
-name = "cipher"
-name = "constant_time_eq"
-name = "crunchy"
-name = "der"
-name = "deranged"
-name = "half"
-name = "hmac"
-name = "inout"
-name = "matrixmultiply"
-name = "ndarray"
-name = "num-complex"
-name = "num-conv"
-name = "openvino"
-name = "openvino-finder"
-name = "openvino-sys"
-name = "ort"
-name = "ort-sys"
-name = "password-hash"
-name = "pbkdf2"
-name = "pem-rfc7468"
-name = "powerfmt"
-name = "rawpointer"
-name = "safetensors"
-name = "sha1"
-name = "smallvec"
-name = "socks"
-name = "tar"
-name = "tch"
-name = "time"
-name = "time-core"
-name = "torch-sys"
-name = "ureq"
-name = "ureq-proto"
-name = "utf-8"
-name = "wasmtime-wasi-nn"
-name = "webpki-root-certs"
-name = "windows"
-name = "windows-core"
-name = "windows-implement"
-name = "windows-interface"
-name = "xattr"
-name = "zip"
-name = "zstd"
-name = "zstd-safe"
  • Testing of wasmtime-wasi-nn has caused a lot of flakiness and issues historically. Right now it is disabled and there's as of yet no movement towards re-enabling it.
  • The implementation currently has a known CVE with it which we don't consider a CVE for Wasmtime since it's not tier 1, but it's still a significant issue.

Overall I subjectively feel that wasi-nn's development hasn't kept up with the rest of Wasmtime and I think it might be best to move development of it out-of-tree. For example a new bytecodealliance/wasmtime-wasi-nn repository could be created and development could move over there. This would lose integration with the wasmtime CLI but I'm not sure how broadly such integration is currently used.

cc @jlb6740 and @rahulchaphalkar as y'all are the current maintainers of wasi-nn and I'm curious what your thoughts on this would be.

Ngôn ngữ chính
Rust
Star
18.9k
Fork
2k
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
238

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bytecodealliance/wasmtime

Tất cả issue của bytecodealliance/wasmtime

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.