wasi-nn VS wagi

Compare wasi-nn vs wagi and see what are their differences.

wasi-nn

Neural Network proposal for WASI (by WebAssembly)

wagi

Write HTTP handlers in WebAssembly with a minimal amount of work (by deislabs)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
wasi-nn wagi
3 14
402 867
4.7% 0.0%
5.6 1.8
7 days ago almost 2 years ago
Rust Rust
- Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

wasi-nn

Posts with mentions or reviews of wasi-nn. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-21.
  • Self-Hosting Open Source LLMs: Cross Devices and Local Deployment of Mistral 7B
    6 projects | news.ycombinator.com | 21 Nov 2023
    I really like the post that they mention (https://www.secondstate.io/articles/fast-llm-inference/). The reasons for avoiding python all resonate with me. I'm excited to play with WASI-NN (https://github.com/WebAssembly/wasi-nn) and that rust code is very readable to load up a GGUL model.
  • Run LLMs on my own Mac fast and efficient Only 2 MBs
    5 projects | news.ycombinator.com | 12 Nov 2023
    Mmm…

    The wasm-nn that this relies on (https://github.com/WebAssembly/wasi-nn) is a proposal that relies of arbitrary plugin backends sending arbitrarily chunks to some vendor implementation. The api is literally like set input, compute, set output.

    …and that is totally non portable.

    The reason this works, is because it’s relying on the abstraction already implemented in llama.cpp that allows it to take a gguf model and map it to multiple hardware targets,which you can see has been lifted here: https://github.com/WasmEdge/WasmEdge/tree/master/plugins/was...

    So..

    > Developers can refer to this project to write their machine learning application in a high-level language using the bindings, compile it to WebAssembly, and run it with a WebAssembly runtime that supports the wasi-nn proposal, such as WasmEdge.

    Is total rubbish; no, you can’t.

    This isn’t portable.

    It’s not sandboxed.

    If you have a wasm binary you might be able to run it if the version of the runtime you’re using happens to implement the specific ggml backend you need, which it probably doesn’t… because there’s literally no requirement for it to do so.

    There’s a lot of “so portable” talk in this article which really seems misplaced.

  • The Promise of WASM
    4 projects | dev.to | 26 May 2022
    in machine learning (https://github.com/WebAssembly/wasi-nn)

wagi

Posts with mentions or reviews of wagi. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-27.
  • Reminiscing CGI Scripts
    3 projects | news.ycombinator.com | 27 Dec 2023
    WAGI and WCGI are the WASM based spiritual successors.

    https://github.com/deislabs/wagi

    https://wasmer.io/posts/announcing-wcgi

  • A simple web server written in Awk
    4 projects | news.ycombinator.com | 19 Sep 2023
    Compile a CGI program in any language to WASI, then use https://github.com/deislabs/wagi to run it.
  • Running WASI binaries from your HTML using Web Components
    4 projects | news.ycombinator.com | 28 Aug 2023
    Yeah of course! They've got STDIN/STDOUT/STDERR and I've built a Virtual Filesystem. But if you're using WASI binaries locally they don't have that restriction.

    You might be interested in WAGI: https://github.com/deislabs/wagi

    And to catch up on WASI: https://xeiaso.net/talks/unix-philosophy-logical-extreme-was...

  • Waggy, the library for writing WAGI API handlers in Go
    3 projects | /r/golang | 28 Nov 2022
    As I'm sure you've heard, WASM has been growing in popularity and use over the past few years. And with the creation of WASI (Web Assembly System Interface) and WAGI (Web Assembly Gateway Interface), WASM is starting to venture outside of running just in the browser. And in the case of WAGI, if you've been programming since the earlier days of the internet, it might feel very similar to CGI programming (and that's because it's based on CGI1.1!) WAGI provides a way for developers to define handlers for HTTP requests and route them to specific functions inside of, or entire, WASM modules. It does so by piping the headers of the incoming request to os.Args[1:], piping the body of the incoming request to os.Stdin, and writing the response to os.Stdout. (To learn more about configuring, routing, compiling, and deploying WAGI routes, as well as the limitations of WAGI routes, please consult the WAGI docs and the TinyGo WASM docs)
  • Rethinking Virtualization for Back Ends
    2 projects | news.ycombinator.com | 27 Oct 2022
    What do you think of WAGI [1], which is basically CGI for WASM modules.

    [1]: https://github.com/deislabs/wagi/blob/main/docs/writing_modu...

  • Isolates, MicroVMs, and WebAssembly (In 2022)
    10 projects | news.ycombinator.com | 26 Sep 2022
  • The Promise of WASM
    4 projects | dev.to | 26 May 2022
    as serverless functions (https://github.com/deislabs/wagi)
  • Single Page Applications using Rust (with WASM)
    4 projects | news.ycombinator.com | 2 May 2022
    I'm experimenting with WASM & Rust but with a different framework named wagi, there's a great video by Rainer Stropek & Stefan Baumgartner that gives a little introduction to it [0]

    [0]: https://www.youtube.com/watch?v=9NDwHBjLlhQ

    [1]: https://github.com/deislabs/wagi

  • Building a WebAssembly-powered serverless platform
    4 projects | /r/programming | 18 Apr 2022
    Krustlet and WAGI are two such projects.
  • Introduction to Hippo: The WebAssembly PaaS
    1 project | news.ycombinator.com | 21 Sep 2021
    It does support it, the runtime we are currently using enables that -- see https://github.com/deislabs/wagi/blob/main/docs/writing_modu...

    Good point on the docs, I will open an issue and add some information about it, thanks!

What are some alternatives?

When comparing wasi-nn and wagi you can also consider the following projects:

wasmer - 🚀 The leading Wasm Runtime supporting WASIX, WASI and Emscripten

wasi-experimental-http - Experimental outbound HTTP support for WebAssembly and WASI

distroless - 🥑 Language focused docker images, minus the operating system.

wasmer-python - 🐍🕸 WebAssembly runtime for Python

WasmEdge-WASINN-examples

wasm-to-oci - Use OCI registries to distribute Wasm modules

wizer - The WebAssembly Pre-Initializer

dioxus - Fullstack GUI library for web, desktop, mobile, and more.

wasi-vfs - A virtual filesystem layer for WASI.

gc - Branch of the spec repo scoped to discussion of GC integration in WebAssembly

wasmtime - A fast and secure runtime for WebAssembly

webassembly-tour - ⚙️ Take you through a tour of WebAssembly (WASM targets on WASI) with wasmCloud, Krustlet, WAGI, etc. 🌟 Give it a star if you like it.