Cactus is a Python package for running text, speech, and vision models locally on consumer hardware. It bundles tool calling, transcription, image understanding, and optional MLX generation on Apple silicon.
Overview
Cactus targets edge and consumer devices where models must stay small and run without a GPU or constant network access. A single install pulls engine binaries and model weights on first use; inference stays on the machine and does not depend on JAX for the core APIs.
Needle handles tool calls, structured extraction, and text embeddings with run() and complete() workflows. Whistle transcribes speech in seven languages with word timestamps and embeddings from 16 kHz WAV input, with an optional microphone extra. Mirage describes images and pulls structured fields from photos.
On supported Macs, an included cactus-mlx command runs compressed checkpoints with greedy generation and can expose a local OpenAI-compatible API; Python code can import mlx helpers for load, generate, and stream generation. Training extras support fine-tuning Needle or Whistle.
The project also publishes very small quantized foundation models for wearables, phones, Raspberry Pi class boards, and similar targets, with optional hybrid routing when on-device confidence is low.
Key features
- Needle tool calling and extraction
- Whistle multilingual transcription
- Mirage image understanding
- Local inference without JAX
- MLX CQ checkpoints on Apple silicon
- Optional fine-tuning extras
- Sub-50 MB model footprints
- Hybrid on-device and cloud routing
Use cases
- On-device voice assistants
- Wearable and ring form factors
- Offline agent tool execution
- Raspberry Pi CPU inference
- Vision OCR and detection