HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
cactus-compute
cactus-hybrid
Shell2026–2026
cactus-compute / cactus-hybrid

cactus-hybrid

On-device models that know when they're wrong: every answer carries a confidence score for cloud handoff.

2Distinct people
2Mentions
0Explicit recommenders
272GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

On-device models that know when they're wrong: every answer carries a confidence score for cloud handoff.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by day2 dated mentions

Observed mentions: 2026-07-22 17:56:29 UTC to 2026-07-31 21:13:34 UTC.

012026-07-22 00:00:00 UTC to 2026-07-23 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsJul 222026-07-23 00:00:00 UTC to 2026-07-24 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-07-24 00:00:00 UTC to 2026-07-25 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-07-25 00:00:00 UTC to 2026-07-26 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-07-26 00:00:00 UTC to 2026-07-27 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsJul 262026-07-27 00:00:00 UTC to 2026-07-28 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-07-28 00:00:00 UTC to 2026-07-29 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-07-29 00:00:00 UTC to 2026-07-30 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-07-30 00:00:00 UTC to 2026-07-31 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-07-31 00:00:00 UTC to 2026-08-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJul 31

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jul 222026-07-22 00:00:00 UTC2026-07-23 00:00:00 UTC110
Jul 232026-07-23 00:00:00 UTC2026-07-24 00:00:00 UTC000
Jul 242026-07-24 00:00:00 UTC2026-07-25 00:00:00 UTC000
Jul 252026-07-25 00:00:00 UTC2026-07-26 00:00:00 UTC000
Jul 262026-07-26 00:00:00 UTC2026-07-27 00:00:00 UTC000
Jul 272026-07-27 00:00:00 UTC2026-07-28 00:00:00 UTC000
Jul 282026-07-28 00:00:00 UTC2026-07-29 00:00:00 UTC000
Jul 292026-07-29 00:00:00 UTC2026-07-30 00:00:00 UTC000
Jul 302026-07-30 00:00:00 UTC2026-07-31 00:00:00 UTC000
Jul 312026-07-31 00:00:00 UTC2026-08-01 00:00:00 UTC101

What Hacker News says

2 sources

Show HN: Cactus Hybrid: We taught Gemma 4 to know when it's wrong

Hey HN, Henry & Roman here from Cactus. A small, on-device model is fast and private, but sometimes wrong, but frontier models are getting expensive pretty fast. So, we post-trained Gemma 4 E2B post-trained to know when it's wrong. Every response comes with a confidence score between 0 and 1. Developers can accept the on-device when it's high, hand off to a bigger cloud model when it's low. By routing only 15-35% of queries to Gemini 3.1 Flash-Lite, Gemma-4-E2B matches Gemini 3.1 Flash-Lite on most benchmarks. - ChartQA: 15-20% - LibriSpeech: 25-30% - MMBench, GigaSpeech, MMAU: 30-35% - MMLU-Pro: 45-55% We were always frustrated by the routing signals hybrid apps rely on: asking the model to rate itself in text (unreliable, and you're parsing prose), or token entropy heuristics (barely better than a coin flip in our tests). So we did mech
Read the rest
anistic studies on small models, Gemma 4 particularly, and found the hidden state for different layers carry meaningful self-awareness signal for various situations. SO we extended the model with a 68k params probe layer (LayerNorm, low-rank projection, attention pooling, small MLP head) reads one intermediate layer during decoding and predicts p(wrong); confidence = 1 - p(wrong), returned as structured data, never parsed out of the answer text. Across 12 hold-out benchmarks spanning text, vision and audio, the probe averages 0.814 AUROC vs 0.549 for token entropy. The result that convinced us this is real: the probe was trained on zero audio data, yet scores 0.79-0.88 AUROC on four audio benchmarks where entropy is near-random or worse (0.32-0.52). It's reading a modality-independent correctness signal from the hidden state, not memorizing patterns from its training data. We published all weights on HuggingFace and provide copy-pase codes to run it on Transformers, MLX, Llama.cpp or Cactus. With Ollama, vLLM, SGLang etc in the works. For llama.cpp we ship a patch series you compile in once (upstreaming is planned). The code is MIT licensed; Gemma model use remains subject to the Gemma terms. GitHub: https://github.com/cactus-compute/cactus-hybrid Weights: https://huggingface.co/collections/Cactus-Compute/cactus-hyb... Some caveats: - The probe scores single-sequence decoding only, up to the first 1024 generated tokens. - Handoff works best when routing per task in a multi-step process, not per step. - Hierarchical routing is still in the works: try on-device, then DeepSeek v4 Flash, before Fable/GPT5.5/Gemini/Muse/Grok. - The technique is boutique for each model, we will share each weights as they roll out. These issues are currently being tackled at Cactus and updated weights will be shipped directly into the HuggingFace collection and GitHub repository straight up. Please let us know your thoughts, it helps us find ways to improve the design progressively. Thanks a million!
191 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.