Skip to content
Proyek

Tentang

High-performance neural networks engine for web, built on top of TypeGPU

Sistem dan infrastruktur

Cara angka ini diukur

131 bintang9 Fork +1 dalam 24 jam

Yang dapat Anda lakukan

  • No model conversion - models run straight from their PyTorch weights. No export step to break, and input shapes are set at runtime, not baked in ahead of time.
  • Data stays on the GPU - feed in a video frame, get results in a GPU buffer, ready for your own rendering.
  • One line to a running model - pick a model, call one function, and it downloads and runs. Turn on caching to skip the download next time.
  • Just TypeScript - no WASM or native binaries. The same code runs on the web, in Electron and in React Native.

Pertumbuhan bintang terukur

dalam 24 jam
+1
dalam 7 hari
+4
dalam 15 hari
+6
dalam 1 bulan
+13

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli
ruNNtime

Documentation npm Follow us on Hugging Face

ruNNtime is a high-performance framework for running AI models on the web, in Electron and in React Native. Everything runs on the local GPU, and your data can stay there from input to output, with no trip through the CPU.

It ships as one package, runntime, with two entry points:

  • runntime/zoo - ready-to-run models for speech, vision and text. One function call gives you a running model.
  • runntime/core - the building blocks behind them, for composing your own models with PyTorch-like semantics. Beta preview: the API may change between minor versions. To run your own weights, see exporting weights.

Supported models

The zoo package currently supports 19 models across 9 tasks, each loaded with one function call.

Task Factory Models
Embedding createEmbedder EmbeddingGemma 2, all-MiniLM-L6-v2
Privacy filter createPrivacyFilter OpenAI privacy-filter (int8)
Speech to text createSpeechToText Moonshine tiny / base, streaming tiny
Text to speech createTextToSpeech Reverb-TTS
Object detection createObjectDetector YOLO26 n / s / m
Instance segmentation createInstanceSegmenter YOLO26-seg n / s / m
Pose & keypoints createKeypointDetector YOLO26-pose n / s / m
Depth estimation createDepthEstimator DepthART s / b
Image classification createImageClassifier MobileNetV4 small

Performance

Against ONNX Runtime Web and LiteRT.js on the same GPU, tensor in to tensor out (all-MiniLM-L6-v2, Apple M4 Pro, Chrome):

Input vs ONNX Runtime vs LiteRT
1 sentence (32 tokens) 2.25× 2.3×
128 tokens 1.83× 3.9×
32 × 128 tokens 1.26× 4.0×
Real text, one at a time 2.05× 4.1×
Real text, in batches of 32 2.36× -

For more benchmarks and measuring methodology, see the benchmarks page.

Why it's fast:

  • Built for WebGPU only - no generic backend layer, kernels tuned for what models actually run.
  • Fused kernels - bias, activations and residual adds ride along in the kernel before them, so fewer dispatches.
  • One submit per call - the whole forward pass goes to the GPU at once.
  • No recompiles while it runs - shaders are built for the model when it loads. Input sizes are passed in at run time, so a new input length never compiles a new shader.

Key Features

  • No model conversion - models run straight from their PyTorch weights. No export step to break, and input shapes are set at runtime, not baked in ahead of time.
  • Data stays on the GPU - feed in a video frame, get results in a GPU buffer, ready for your own rendering.
  • One line to a running model - pick a model, call one function, and it downloads and runs. Turn on caching to skip the download next time.
  • Just TypeScript - no WASM or native binaries. The same code runs on the web, in Electron and in React Native.
  • Works with transformers.js - already using it? One call swaps the engine and your code stays as it is, see migrating from transformers.js.

Documentation

Everything else lives at docs.swmansion.com/runntime: how to get started, a guide per task, and interactive examples you can run in the browser on your own GPU.

npm install runntime typegpu

License

ruNNtime is MIT licensed. The models it runs are not covered by that: each has its own license, listed on its page on the Hugging Face Hub.

ruNNtime is created by Software Mansion AI Labs

Software Mansion AI Labs

We're an end-to-end AI development lab focused on local and hybrid AI. We build and fine-tune models, deploy them anywhere and turn them into agents that solve real business problems. Hire us.

Jelajahi proyek terkait

Memuat…