
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
@mlc-ai/tvmjs
Advanced tools
This folder contains TVM WebAssembly Runtime.
The LLVM main branch support webassembly as a target, we can directly build TVM with LLVM mainline to generate wasm modules. Note that, however, we still need emscripten to compile the runtime and provide system library support.
Note that so far we requires everything to be in the source and setup PYTHONPATH(instead of use setup.py install).
We use emscripten to compile our runtime wasm library as well as a WASI variant that we can deploy to the browser environment.
Follow Emscripten to download emsdk and install emcc on your local environment.
After the emcc is setup correctly. We can build tvm's wasm runtime by typing make
in the web folder.
make
This command will create the follow files:
dist/wasm/libtvm_runtime.bc
bitcode library tvm.contrib.emcc
will link into.dist/wasm/tvmjs_runtime.wasm
a standalone wasm runtime for testing purposes.dist/wasm/tvmjs_runtime.wasi.js
a WASI compatible library generated by emscripten that can be fed into runtime.Type the following command in the web folder.
npm run bundle
This command will create the tvmjs library that we can use to interface with the wasm runtime.
Check code snippet in
--system-lib
optiondist/wasm/libtvm_runtime.bc
We can now use js side to start an RPC server and connect to it from python side, making the testing flow easier.
The following is an example to reproduce this.
python -m tvm.exec.rpc_proxy --example-rpc=1
to start proxy.npm run rpc
python tests/python/websock_rpc_test.py
to run the rpc test.Web gpu is still experimental, so apis can change. Right now we use the SPIRV to generate shaders that can be accepted by Chrome and Firefox.
python tests/python/webgpu_rpc_test.py
FAQs
TVM WASM/WebGPU runtime for JS/TS
The npm package @mlc-ai/tvmjs receives a total of 0 weekly downloads. As such, @mlc-ai/tvmjs popularity was classified as not popular.
We found that @mlc-ai/tvmjs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.