wasmedge-db-examples
SSVM
Our great sponsors
wasmedge-db-examples | SSVM | |
---|---|---|
7 | 50 | |
61 | 7,952 | |
- | 3.3% | |
7.2 | 9.7 | |
7 days ago | about 4 hours ago | |
Rust | C++ | |
Apache License 2.0 | Apache License 2.0 |
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.
wasmedge-db-examples
-
Develop+Deploy RAG Bots with LlamaEdge: Across OSes, Nvidia, ARM Using Vector DB
LlamaEdge is not just a lightweight and portable runtime for chatbots. It is an app dev platform for portable LLM apps! RAG chatbots and AI agents can be developed on Mac or Windows, compiled to Wasm, and then deployed across Nvidia / AMD / ARM devices, fully taking advantage of on-device GPUs, NPUs etc.
Hence, besides the LLM runtime, those LLM apps also need to manage embeddings in vector db. This example shows how to access the Qdrant vector db from your portable Wasm apps!
https://github.com/WasmEdge/wasmedge-db-examples/tree/main/q...
-
Time-series data ingestion from Rust WebAssembly application, leveraging GreptimeDB and WasmEdge
The above sample program has been added to the WasmEdge database usage demonstration. You can find the full source code in the GitHub repository at https://github.com/WasmEdge/wasmedge-db-examples/tree/main/greptimedb.
-
Release: WasmEdge 0.12 and 0.12.1
https://github.com/second-state/microservice-rust-mysql
https://github.com/WasmEdge/wasmedge-db-examples
https://github.com/WasmEdge/wasmedge_hyper_demo
WasmEdge is already one of the smallest and most efficient Wasm runtimes out there. It embeds into libsql (SQLite on the server!) to execute user definited functions to perform complex tasks like HTTPS web services & AI inference from SQL statements! https://wasmedge.org/docs/embed/use-case/libsql/
The WasmEdge C++ and Rust SDKs allow host applications to embed Wasm functions asynchronously. It is critically important in many applications where the embedded Wasm function is simply not allowed to block the execution of the host applications. https://github.com/second-state/wasmedge-rustsdk-examples/bl...
Asynchronous host SDKs are complex and a lot of work still remains. We are continuously improving it with our end user and partner communities.
Preview: https://github.com/L-jasmine/WasmEdge/tree/feat/async
What's coming next?
* Support plugins in our Docker and k8s integrations
-
Easier examples for the WasmEdge Rust SDK to get started with this Wasm runtime quickly.
2.WasmEdge support MySQL-based databases, caches, and DOs. https://github.com/WasmEdge/wasmedge-db-examples
- A complete microservice backed by MySQL, written in Rust and compiled into WASM
SSVM
- A WASM runtime for running LLMs locally
-
Time-series data ingestion from Rust WebAssembly application, leveraging GreptimeDB and WasmEdge
WasmEdge GitHub address: https://github.com/WasmEdge/WasmEdge.
-
Orca-2-13B Runs Directly on Rust+WASM – No Python/C++ Hassles
I see that they recently changed the intro of WasmEdge on Github [1] to " WasmEdge is the easiest and fastest way to run LLMs on your own devices. "
Since it's a wasm runtime capable of many things I find bizarre that they now start describing it with a ultra-specific use case
- [1] https://github.com/WasmEdge/WasmEdge
-
Run LLMs on my own Mac fast and efficient Only 2 MBs
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.
- Security Slam 2023: Contribute to WasmEdge and Elevate Open Source Security
-
Requiem for a Stringref
WasmEdge isn't there yet: https://github.com/WasmEdge/WasmEdge/issues/1122#issuecommen...
- Should You Be Scared of Unix Signals?
- WasmEdge 0.13.0: Unified CLI, ARM Support and Migrating Extensions to Plugins
-
ChatGPT-powered code review bot to boost your PR merge. Deploy in 5 mins
Example 1: Analyze the content and risks of each commit in the PR. Then make a summary. https://github.com/WasmEdge/WasmEdge/pull/2394#issuecomment-...
-
Cloud, Why So Difficult?
There has also been a few "cloud-native" runtimes based on WASM, like WasmEdge but there's a few others (can't remember their names!)...
What are some alternatives?
podman-wasm
wasmer - 🚀 The leading Wasm Runtime supporting WASIX, WASI and Emscripten
microservice-rust-mysql - A template project for building a database-driven microservice in Rust and run it in the WasmEdge sandbox.
wasmtime - A fast and secure runtime for WebAssembly
aws-lambda-wasm-runtime - A template project for building high-performance, portable, and safe serverless functions in AWS Lambda.
wasmedge-quickjs - A high-performance, secure, extensible, and OCI-complaint JavaScript runtime for WasmEdge.
WAVM - WebAssembly Virtual Machine
wasmedge_hyper_demo - Lightweight HTTP servers based on hyper / warp frameworks in the WasmEdge Runtime.
dapr-wasm - A template project to demonstrate how to run WebAssembly functions as sidecar microservices in dapr
mediapipe-rs - A Rust library for mediapipe tasks for WasmEdge WASI-NN.
WasmEdge-go - The GO language SDK and API for WasmEdge