HybridInfer: open-source router runs local models first, auto-falls-back to cloud on stalls
simrankoulsm · reddit · 2026-09-02
A developer released HybridInfer, an Apache-2.0 reliability-aware inference router that solves the pain of local models silently stalling or OOM-ing on long prompts:
- Every request goes to the local model (Ollama) first; if it stalls (no token for N seconds), OOMs, or errors, it falls back to a remote model within the same request.
- Learns which prompts (usually long ones) choke your machine and routes them out up front after seeing them fail.
- Pulls a wedged model out of rotation and probes it back after a cooldown.
It's an OpenAI-compatible server, so any compatible client gets local-first + automatic fallback for free; remote can be OpenAI, OpenRouter, a vLLM box, etc. It orchestrates only — it doesn't run weights itself. A Kotlin/Android version exists for on-device apps.
Install:
pip install hybridinfer
hybridinfer init
hybridinfer serve
Early v0.1; the author wants feedback on the fallback heuristics from people running local models daily.
More from coding & agent
- Salesforce research: buyer agents concede too easily, images boost persuasion ~17% — msrivastav13 · 2026-12-05
- Grok Build launches agent-driven post-quantum cryptography migration after NSA advisory, with $1,000 credits — ns123abc · 2026-12-05
- Seroter's reading list: post-quantum prep, agent harnesses, and life after 99% AI code — rseroter · 2026-12-05
- WSDM Cup 2027 Offers $10k to Build Autonomous Community Notes Agents — sanmikoyejo · 2026-12-05
- Trying Copilot Studio MCP for agent cloning and Power Automate sync: janky but workable — koltregaskes · 2026-12-05
- xAI launches Grok Bot: autonomous AI teammates that live in Slack and Teams — Baconbrix · 2026-12-05