Downloads · 30 days
0
cognis-digital/opal-router
opal-router is a machine learning model from cognis-digital. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
The Opal Router is the capability half of the Opal suite. Different model architectures (Llama / gpt-oss / Phi / Gemma) cannot be weight-merged. So instead of faking a single super-model, Opal combines them honestly,…
Downloads · 30 days
0
Access
Public
Updated Jul 9, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py5 KB · 46%
From the Hugging Face model README
The Opal Router is the capability half of the Opal suite. Different model architectures (Llama / gpt-oss / Phi / Gemma) cannot be weight-merged. So instead of faking a single super-model, Opal combines them honestly, at the system level: one OpenAI-compatible endpoint that classifies each request and routes it to the US specialist best suited to it.
┌──────────────── Opal Router (:11500, model="opal") ────────────────┐
your request ───► │ classify → code/sec ─► opal-8b (Cognis merge) │
│ reasoning ─► gpt-oss:20b (OpenAI open MoE) │
│ tool-call ─► llama3.1:8b (Meta) │
│ general ─► phi4 (Microsoft) │
│ vision ─► llava │
└────────────────────────────────────────────────────────────────────┘
tools=[…] array are
routed to the tool-calling specialist and the tool calls flow straight back.# 1. pull the backends (all US-origin)
ollama pull llama3.1:8b && ollama pull gpt-oss:20b && ollama pull phi4 && ollama pull llava
# plus the Opal-8B weight (see the Opal-8B-GGUF repo) imported as `opal-8b`
# 2. start the router
python opal_router.py # serves http://localhost:11500/v1
# 3. point any OpenAI client at it
curl http://localhost:11500/v1/chat/completions -H "Content-Type: application/json" \
-d '{"model":"opal","messages":[{"role":"user","content":"Prove sqrt(2) is irrational"}]}'
# -> classified as reasoning -> served by gpt-oss:20b
Env: OLLAMA=http://localhost:11434, PORT=11500. Routing table:
configs/routes.json (edit to change backends; a model
missing from ollama list falls back to default).
opal_router.py — the stdlib router/serverconfigs/routes.json — capability → model map + backend provenanceApache-2.0.