cd /news/artificial-intelligence/show-hn-cactus-v2-on-device-ai-with-… · home topics artificial-intelligence article
[ARTICLE · art-54722] src=news.ycombinator.com ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

Show HN: Cactus v2 – On-device AI with cloud fallback

Cactus released version 2 of its on-device AI inference platform, featuring model confidence-based routing to cloud fallback, lossless 4-bit quantization, and GPU acceleration on Apple Metal. The platform processes millions of weekly inference runs and targets hybrid-native models for multi-turn agentic workloads.

read2 min views1 publishedJul 10, 2026

Hi HN, Roman and Henry here from Cactus (https://github.com/cactus-compute/cactus). We just shipped the biggest upgrade to our on-device inference platform:

  • Built-in model confidence-based routing to hand off inference runs to the cloud - Converter for any PyTorch model - Lossless 4-bit quantization (evals on our GitHub README) - GPU acceleration on compatible devices (starting with Apple Metal) - Minimal RAM footprint - Runs on any Arm device: iOS, Android, Mac, DGX Spark, Raspberry Pi, and more

All in, a Gemma 4 E2B class model runs at 169 tok/sec on M5 Max, takes 2.7GB disk space with no accuracy degradation from FP16, uses 1.3GB of RAM, and requests help from cloud models when needed.

The problem we started with eighteen months ago: inference engines are built for datacenters, but consumer hardware has different physics: you share RAM with the OS, you get thermally throttled, and the same model behaves differently on different hardware.

So we wrote a runtime from scratch for resource-constrained devices. Since then, Cactus has grown to process millions of weekly inference runs, and tens of thousands of monthly active developers.

Our biggest learning from deploying Cactus in production apps is that while local models can handle 90% of workloads, that 10% gap means they're still not production-ready. Our users' fix was to build custom cloud fallback logic.

Cactus v2 fixes that:

Our approach to cloud fallback is to post-train a probe into the model's weights that reads its internal activations and emits a confidence signal. This way, the routing happens inside the model rather than in a prompt classifier sitting in front of it. We believe this is critical for multi-turn agentic work, where the model should know which turns are easy enough to be handled locally, and which are hard - and get handed off to the cloud. What ships today is single-turn routing for Gemma-4 E2B against a configurable escalation endpoint (Gemini, Claude, OpenAI-compatible, or your own endpoint).

Our next target is hybrid-native models for multi-turn agentic work. This is the genuinely unsolved problem. Our current probe-in-the-weights is showing promising results and we look to release the first model variants soon.

The hybrid variants are Gemma derivatives, released under the Gemma terms noted on the HF cards.

In addition to the hybrid routing, the runtime has SOTA quantization, which is lossless at 4bit, memory maps weights to decrease RAM footprint and runs cross-platform, with Python, Rust, React Native, Swift, and Kotlin bindings.

Disclaimer: Cactus is distributed as source-available - free for personal use and small companies; commercial license above that (Docker-style license).

You can get started on our GitHub: [https://github.com/cactus-compute/cactus](https://github.com/cactus-compute/cactus) or by `brew install cactus-compute/cactus/cactus`.

Comments URL: [https://news.ycombinator.com/item?id=48864459](https://news.ycombinator.com/item?id=48864459)

Points: 1

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @cactus 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-cactus-v2-on…] indexed:0 read:2min 2026-07-10 ·