17
stars
54
commits
JavaScript
primary language
Apr 30, 2025
updated
A versatile toolkit designed to measure and compare the performance of Transformers.js/ONNX models across various environments, including: in-browser (WASM, WebGPU, WebNN), Node.js, Bun, or Deno.
Install core dependencies first
cd packages/core/
npm i
Then run with one of the following:
Run Benchmarks
web (online demo):
cd packages/web/
npm i
npm run dev
Node.js
cd packages/node/
npm i
node index.js
Bun
cd packages/bun/
bun install
bun run index.ts
(Optional) Prepare model operations
Install Python dependencies:
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r scripts/requirements.txt
Clone model-explorer dataset
npm run pull:model-explorer
Build model operations with:
npm run build:architectures
βββ packages
β βββ core # Core engine powering the benchmarking suite.
β βββ web # User-friendly web interface for running benchmarks.
β βββ node # CLI tailored for Node.js environments.
β βββ bun # CLI support specifically built for Bun.
βββ scripts # Utility scripts for tasks like collecting model operations.
βββ data # Repository and model operation files (e.g., model_ops.csv).
For more details on available models and further information, check out the models on Hugging Face.
JavaScript
97.5%
Python
2.3%
17
stars
54
commits
JavaScript
primary language
Apr 30, 2025
updated
A versatile toolkit designed to measure and compare the performance of Transformers.js/ONNX models across various environments, including: in-browser (WASM, WebGPU, WebNN), Node.js, Bun, or Deno.
Install core dependencies first
cd packages/core/
npm i
Then run with one of the following:
Run Benchmarks
web (online demo):
cd packages/web/
npm i
npm run dev
Node.js
cd packages/node/
npm i
node index.js
Bun
cd packages/bun/
bun install
bun run index.ts
(Optional) Prepare model operations
Install Python dependencies:
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r scripts/requirements.txt
Clone model-explorer dataset
npm run pull:model-explorer
Build model operations with:
npm run build:architectures
βββ packages
β βββ core # Core engine powering the benchmarking suite.
β βββ web # User-friendly web interface for running benchmarks.
β βββ node # CLI tailored for Node.js environments.
β βββ bun # CLI support specifically built for Bun.
βββ scripts # Utility scripts for tasks like collecting model operations.
βββ data # Repository and model operation files (e.g., model_ops.csv).
For more details on available models and further information, check out the models on Hugging Face.
JavaScript
97.5%
Python
2.3%