feynon / ratchet

A cross-platform browser ML framework.

Home Page:https://ratchet.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ratchet

A web-first, cross-platform ML developer toolkit.

Documentation | Discord


Ship AI inference to your Web, Electron or Tauri apps with ease.

Getting Started

Check out our HuggingFace space for a live demo!

// Asynchronous loading & caching with IndexedDB
let model = await Model.load(AvailableModels.WHISPER_TINY, Quantization.Q8, (p: number) => setProgress(p))
let result = await model.run({ input });

Philosophy

We want a toolkit for developers to make integrating performant AI functionality into existing production applications easy. The following principles will help us accomplish this:

  1. Inference only
  2. WebGPU/CPU only
  3. First class quantization support
  4. Lazy computation
  5. Inplace by default

Any issues regarding training or different backends will be closed!

Supported Models

  • Whisper

About

A cross-platform browser ML framework.

https://ratchet.sh

License:MIT License


Languages

Language:Rust 90.0%Language:WGSL 9.3%Language:JavaScript 0.2%Language:TypeScript 0.2%Language:Just 0.2%Language:HTML 0.1%