Ratchet
A cross-platform browser ML framework.
Install / Use
/learn @huggingface/RatchetREADME
We are on a mission to bring fast, cross platform GPU accelerated inference on native + browser.
[!NOTE]
Ratchet is currently in active development. We are working on the engine, adding more models and improving compatibility. Please, reach out if you'd like to help!
Getting Started
The easiest way to experience Ratchet is to check out our Hugging Face spaces:
To dig deeper, check out the examples
We welcome contributions from the community. If you have any ideas or suggestions, please feel free to open an issue or pull request.
Javascript
// 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 });
Rust
Rust crate & CLI coming soon...
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:
- Inference only
- WebGPU/CPU only
- First class quantization support
- Lazy computation
- Inplace by default
Supported Models
- Whisper
- Phi 2 & 3
- Moondream
Upcoming Models
- Gemini 2 2B
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
