jax-js-nonconsuming logo

jax-js-nonconsuming (fork) is an ML library and compiler for the web

Fork Notice

This is a non-consuming ownership fork of ekzhang/jax-js. Operations leave inputs alive (no manual .ref needed), designed for teams familiar with NumPy or MATLAB.

High-performance WebGPU and WebAssembly kernels in JavaScript. Run neural networks, image algorithms, simulations, and numerical code, all JIT compiled in your browser.

Add jax-js-nonconsuming to your project

Zero dependencies. All major browsers. Install from or .

npm install github:hamk-uas/jax-js-nonconsuming

pnpm users: add "pnpm": { "onlyBuiltDependencies": ["@hamk-uas/jax-js-nonconsuming"] } to your package.json so pnpm allows the Git dependency's prepare build.

Matrix multiplication

Billions of floating-point operations (GFLOPs) per second

WasmWebGPUfp16

Running benchmark…

Try it out!

This is a live editor, the code is running in your browser.

Run code to see output here.

Learn more