{"id":31769215,"url":"https://github.com/second-state/wasmedge-wasinn-examples","last_synced_at":"2025-10-10T02:42:04.899Z","repository":{"id":37390303,"uuid":"492714194","full_name":"second-state/WasmEdge-WASINN-examples","owner":"second-state","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-28T02:50:32.000Z","size":203406,"stargazers_count":255,"open_issues_count":9,"forks_count":43,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-07-28T04:24:52.770Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/second-state.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-05-16T06:44:23.000Z","updated_at":"2025-07-28T02:50:36.000Z","dependencies_parsed_at":"2023-09-23T02:52:45.788Z","dependency_job_id":"cf0844cc-da22-413d-a261-97d9fd5c1ad9","html_url":"https://github.com/second-state/WasmEdge-WASINN-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/second-state/WasmEdge-WASINN-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/second-state%2FWasmEdge-WASINN-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/second-state%2FWasmEdge-WASINN-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/second-state%2FWasmEdge-WASINN-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/second-state%2FWasmEdge-WASINN-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/second-state","download_url":"https://codeload.github.com/second-state/WasmEdge-WASINN-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/second-state%2FWasmEdge-WASINN-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002541,"owners_count":26083403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-10T02:42:01.373Z","updated_at":"2025-10-10T02:42:04.894Z","avatar_url":"https://github.com/second-state.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eWasmEdge WASI-NN Examples\u003c/h1\u003e\n\n  \u003cp\u003e\u003cstrong\u003eHigh-level bindings for writing wasi-nn applications\u003c/strong\u003e\u003c/p\u003e\n\n  \u003cp\u003e\n    \u003ca href=\"https://github.com/second-state/WasmEdge-WASINN-examples/actions/workflows/llama.yml/\"\u003e\n      \u003cimg src=\"https://github.com/second-state/WasmEdge-WASINN-examples/actions/workflows/llama.yml/badge.svg\" alt=\"CI status - llama\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/second-state/WasmEdge-WASINN-examples/actions/workflows/pytorch.yml/\"\u003e\n      \u003cimg src=\"https://github.com/second-state/WasmEdge-WASINN-examples/actions/workflows/pytorch.yml/badge.svg\" alt=\"CI status - pytorch\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/second-state/WasmEdge-WASINN-examples/actions/workflows/tflite.yml/\"\u003e\n      \u003cimg src=\"https://github.com/second-state/WasmEdge-WASINN-examples/actions/workflows/tflite.yml/badge.svg\" alt=\"CI status - tflite\"/\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n### Introduction\n\nThis project provides the examples of high-level [wasi-nn] bindings and WasmEdge-TensorFlow plug-ins on Rust programming language. 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].\n\n### Prerequisites\n\n#### OpenVINO Installation\n\nDevelopers should install the [OpenVINO] first before build and run WasmEdge with wasi-nn and the examples.\nFor this project, we use the version `2023.0.0`. Please refer to [WasmEdge Docs](https://wasmedge.org/docs/contribute/source/plugin/wasi_nn) and [OpenVINO™](https://docs.openvino.ai/2023.0/openvino_docs_install_guides_installing_openvino_apt.html)(2023)\n\n```bash\nwget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB\nsudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB\necho \"deb https://apt.repos.intel.com/openvino/2023 ubuntu20 main\" | sudo tee /etc/apt/sources.list.d/intel-openvino-2023.list\nsudo apt update\nsudo apt-get -y install openvino\nldconfig\n```\n[OpenVINO]: https://www.intel.com/content/www/us/en/developer/tools/openvino-toolkit/overview.html\n\n#### Rust Installation\n\nFor building the WASM files from rust source, please refer to the [Rust Official Site](https://www.rust-lang.org/tools/install) for the Rust installation.\nAfter the installation, developers should add the `wasm32-wasip1` target.\n\n```bash\nrustup target add wasm32-wasip1\n```\n\n#### Download the `wasi-nn` Rust Crate\n\nIn Rust, download the [crate from crates.io](https://crates.io/crates/wasi-nn) by adding `wasi-nn = \"0.4.0\"` as a Cargo dependency.\n\nFor using WasmEdge-TensorFlow plug-ins, please download the [crate from crates.io](https://crates.io/crates/wasmedge_tensorflow_interface) by adding `wasmedge_tensorflow_interface = \"0.3.0\"` as a Cargo dependency.\n\n#### WasmEdge Installation\n\nYou can refer to [here to install WasmEdge](https://wasmedge.org/docs/start/install#install).\n\nFor the examples with different wasi-nn backends or using the WasmEdge-Tensorflow plug-ins, please install with plug-ins and their dependencies:\n\n- [wasi-nn plug-in with OpenVINO backend](https://wasmedge.org/docs/start/install#wasi-nn-plug-in-with-openvino-backend)\n- [wasi-nn plug-in with PyTorch backend](https://wasmedge.org/docs/start/install#wasi-nn-plug-in-with-pytorch-backend)\n- [wasi-nn plug-in with TensorFlow-Lite backend](https://wasmedge.org/docs/start/install#wasi-nn-plug-in-with-tensorflow-lite-backend)\n- [WasmEdge-Image plug-in](https://wasmedge.org/docs/start/install#wasmedge-image-plug-in)\n- [WasmEdge-TensorFlow plug-in](https://wasmedge.org/docs/start/install#wasmedge-tensorflow-plug-in)\n- [WasmEdge-TensorFlow-Lite plug-in](https://wasmedge.org/docs/start/install#wasmedge-tensorflow-lite-plug-in)\n\n### Examples\n\n[Mobilenet](mobilenet)\n\n### Related Links\n\n- [WASI]\n- [wasi-nn]\n- [WasmEdge]\n- [WasmEdge-TensorFlow rust interface](https://crates.io/crates/wasmedge_tensorflow_interface)\n- [wasi-nn-guest](https://github.com/radu-matei/wasi-nn-guest)\n\n[WasmEdge]: https://wasmedge.org/\n[wasi-nn]: https://github.com/WebAssembly/wasi-nn\n[WASI]: https://github.com/WebAssembly/WASI\n\n### License\n\nThis project is licensed under the Apache 2.0 license. See [LICENSE](LICENSE) for more details.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecond-state%2Fwasmedge-wasinn-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsecond-state%2Fwasmedge-wasinn-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecond-state%2Fwasmedge-wasinn-examples/lists"}