HERMES
Safetensors
English
modernbert
llm-routing
model-chooser
intelligent-orchestration
fine-tuned
cma-es
federated-learning
cost-optimization
open-source
production-ai
model-dispatch
prompt-routing
multi-model
ensemble-decision
human-readable-decisions
federated-llm
evolution-strategy
ai-infrastructure
llm-inference
prompt-classification
model-selection
intelligent-dispatch
cost-effective-llm
production-routing
free-llm-api
openrouter
transformer-based
classifier
v1.3.0
fugusashi
eulogik
self-hosted
on-device
cpu-inference
low-latency
22ms-inference
3-model-classes
gpt-oss
lfm
149m-params
cross-entropy-training
cosine-scheduler
differential-privacy
federated-averaging
multi-agent
task-orchestration
grpo-reinforcement-learning
human-in-the-loop
explainable-ai
xai
interpretable-ai
natural-language-explanation
confidence-scoring
fallback-strategy
ensemble-ai
mlops
ai-orchestration
llmops
prompt-engineering
token-efficiency
aiops
llm-observability
model-governance
open-ai-compatibility
chat-completion-api
openai-compatible
v1-chat-completions
streaming
function-calling
agentic-ai
rag-routing
enterprise-llm
startup-llm
healthcare-llm
code-assistant
creative-writing-ai
math-reasoning
factual-qna
llm-gateway
smart-proxy
model-proxy
ai-gateway
inference-optimization
gpu-saving
cost-saving
latency-optimization
real-time-inference
edge-ai
on-device-inference
embedded-llm
edge-deployment
mobile-friendly
cpu-only
no-gpu-needed
Instructions to use eulogik/fugusashi-v1.3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- HERMES
How to use eulogik/fugusashi-v1.3 with HERMES:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -37,7 +37,7 @@ tags:
|
|
| 37 |
- on-device
|
| 38 |
- cpu-inference
|
| 39 |
- low-latency
|
| 40 |
-
-
|
| 41 |
- 3-model-classes
|
| 42 |
- gpt-oss
|
| 43 |
- hermes
|
|
@@ -108,11 +108,11 @@ color: blue
|
|
| 108 |
|
| 109 |
[](https://github.com/eulogik/fugusashi)
|
| 110 |
[](https://pypi.org/project/fugusashi/)
|
| 111 |
-
[](https://huggingface.co/eulogik/fugusashi-
|
| 112 |
[](LICENSE)
|
| 113 |
[](https://huggingface.co/microsoft/modernbert-base)
|
| 114 |
-
[** | <4ms (excluding model inference) |
|
| 136 |
| **License** | MIT (fully open-source) |
|
| 137 |
|
|
@@ -197,9 +200,9 @@ Traditional LLM routing uses **expensive 7B-parameter coordinator LLMs** (like S
|
|
| 197 |
|
| 198 |
Fugusashi uses a **lightweight 149M-parameter ModernBERT classifier** that:
|
| 199 |
- ✅ Runs on **CPU only** — no GPU needed
|
| 200 |
-
- ✅ Makes decisions in **
|
| 201 |
-
- ✅ Achieves **
|
| 202 |
-
- ✅ Trained in **
|
| 203 |
- ✅ Uses only **224 training examples** — minimal data requirement
|
| 204 |
- ✅ Is **100% open-source** and fully reproducible
|
| 205 |
|
|
@@ -216,8 +219,8 @@ Fugusashi uses a **lightweight 149M-parameter ModernBERT classifier** that:
|
|
| 216 |
| **Batch Size** | 16 |
|
| 217 |
| **Epochs** | 10 with early stopping |
|
| 218 |
| **Hardware** | Apple M3 Pro, 18GB RAM, CPU only |
|
| 219 |
-
| **Training Time** |
|
| 220 |
-
| **Per-Inference Latency** |
|
| 221 |
|
| 222 |
### Class Distribution
|
| 223 |
|
|
@@ -244,16 +247,15 @@ Fugusashi uses a **lightweight 149M-parameter ModernBERT classifier** that:
|
|
| 244 |
### Accuracy Comparison
|
| 245 |
|
| 246 |
```
|
| 247 |
-
Random
|
| 248 |
-
Cost-Only
|
| 249 |
-
|
| 250 |
-
Learned (
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
Always-Best ██████████████████████ 100% ← Oracle
|
| 254 |
```
|
| 255 |
|
| 256 |
-
**Key Insight:** The learned ModernBERT classifier **more than doubles** the accuracy of the simple cost-only baseline (
|
| 257 |
|
| 258 |
---
|
| 259 |
|
|
@@ -275,10 +277,12 @@ Fugusashi enables **multiple organizations** to collaboratively improve the disp
|
|
| 275 |
|---------|----------------------|----------------|-------------|------------|
|
| 276 |
| 1 (standalone) | — | 70.0% | ∞ (no privacy) | 224 |
|
| 277 |
| 2 | 8 | 78.0% | 2.1 | 1,800 |
|
| 278 |
-
| 3 | **5** |
|
| 279 |
| 5 | 3 | 88.0% | 1.5 | 3,600 |
|
| 280 |
| 10 | 2 | 91.0% | 1.2 | 6,000 |
|
| 281 |
|
|
|
|
|
|
|
| 282 |
### Why Federated Routing Works
|
| 283 |
|
| 284 |
Routing knowledge is **complementary** across domains:
|
|
@@ -391,7 +395,7 @@ fugusashi serve --host 0.0.0.0 --port 8000
|
|
| 391 |
| **Federated** | ✅ w/ privacy | ❌ | ❌ | ❌ |
|
| 392 |
| **Explainability** | ✅ Full NL explanations | ❌ | ❌ | ❌ |
|
| 393 |
| **Overridable** | ✅ User feedback loop | ❌ | ❌ | ❌ |
|
| 394 |
-
| **CPU Inference** | ✅
|
| 395 |
| **Model Classes** | 3+ (expandable) | Proprietary | 2 tiers | 16 strategies |
|
| 396 |
| **Cost** | Free (MIT) | Proprietary pricing | Free | Free |
|
| 397 |
|
|
@@ -415,8 +419,8 @@ All results are fully reproducible:
|
|
| 415 |
| Resource | Link |
|
| 416 |
|----------|------|
|
| 417 |
| **Source Code** | [github.com/eulogik/fugusashi](https://github.com/eulogik/fugusashi) |
|
| 418 |
-
| **Trained Model Weights** | [huggingface.co/eulogik/fugusashi-
|
| 419 |
-
| **Preference Dataset** | [huggingface.co/datasets/eulogik/fugusashi-
|
| 420 |
| **Live Demo** | [huggingface.co/spaces/eulogik/fugusashi](https://huggingface.co/spaces/eulogik/fugusashi) |
|
| 421 |
| **Paper (arXiv)** | [github.com/eulogik/fugusashi/blob/main/paper/main.tex](https://github.com/eulogik/fugusashi/blob/main/paper/main.tex) |
|
| 422 |
| **API Documentation** | [eulogik.com/fugusashi](https://eulogik.com/fugusashi) |
|
|
|
|
| 37 |
- on-device
|
| 38 |
- cpu-inference
|
| 39 |
- low-latency
|
| 40 |
+
- 22ms-inference
|
| 41 |
- 3-model-classes
|
| 42 |
- gpt-oss
|
| 43 |
- hermes
|
|
|
|
| 108 |
|
| 109 |
[](https://github.com/eulogik/fugusashi)
|
| 110 |
[](https://pypi.org/project/fugusashi/)
|
| 111 |
+
[](https://huggingface.co/eulogik/fugusashi-v1.3)
|
| 112 |
[](LICENSE)
|
| 113 |
[](https://huggingface.co/microsoft/modernbert-base)
|
| 114 |
+
[](https://github.com/eulogik/fugusashi/blob/main/paper/main.tex)
|
| 115 |
+
[](https://github.com/eulogik/fugusashi/blob/main/paper/main.tex)
|
| 116 |
|
| 117 |
**The world's first open-source, federated-learning-powered intelligent model orchestration engine** — selects the best LLM for every prompt with human-readable explanations, zero cost, and full privacy.
|
| 118 |
|
|
|
|
| 124 |
|
| 125 |
| Metric | Value |
|
| 126 |
|--------|-------|
|
| 127 |
+
| **Intelligent Dispatch Accuracy** | **80.0%** (24/30 held-out prompts, 3 models) |
|
| 128 |
+
| **vs. Cost-Only Baseline** | **2.2× improvement** (80.0% vs 36.7%, Fisher's exact test p = 1.4 × 10⁻³) |
|
| 129 |
+
| **Test Accuracy** | 80.0% (36/45, macro F1 0.83) |
|
| 130 |
+
| **Inference Latency** | 22ms median, 38ms p95 (M3 Pro, CPU) |
|
| 131 |
+
| **Training Time** | 163 seconds on CPU (Apple M3 Pro, 4 epochs) |
|
| 132 |
+
| **Training Data** | 224 examples, 179/45 split, seed 42 |
|
| 133 |
+
| Federated Accuracy (3 clients)† | 85.0%† with differential privacy (ε=1.8) |
|
| 134 |
| **Federated Convergence** | 5 rounds to reach 80% of peak |
|
| 135 |
| **Models Supported** | 3+ open models via OpenRouter |
|
| 136 |
+
|
| 137 |
+
† *Preliminary evaluation on 20 hand-curated prompts — too small to publish as a benchmark.*
|
| 138 |
| **Overhead (Single Decision)** | <4ms (excluding model inference) |
|
| 139 |
| **License** | MIT (fully open-source) |
|
| 140 |
|
|
|
|
| 200 |
|
| 201 |
Fugusashi uses a **lightweight 149M-parameter ModernBERT classifier** that:
|
| 202 |
- ✅ Runs on **CPU only** — no GPU needed
|
| 203 |
+
- ✅ Makes decisions in **22ms** median per prompt — real-time capable
|
| 204 |
+
- ✅ Achieves **80.0% held-out accuracy** — outperforms cost-only baselines by **2.2×**
|
| 205 |
+
- ✅ Trained in **163 seconds** on a single CPU core
|
| 206 |
- ✅ Uses only **224 training examples** — minimal data requirement
|
| 207 |
- ✅ Is **100% open-source** and fully reproducible
|
| 208 |
|
|
|
|
| 219 |
| **Batch Size** | 16 |
|
| 220 |
| **Epochs** | 10 with early stopping |
|
| 221 |
| **Hardware** | Apple M3 Pro, 18GB RAM, CPU only |
|
| 222 |
+
| **Training Time** | 163 seconds (4 epochs) |
|
| 223 |
+
| **Per-Inference Latency** | 22ms median, 38ms p95 (forward pass) |
|
| 224 |
|
| 225 |
### Class Distribution
|
| 226 |
|
|
|
|
| 247 |
### Accuracy Comparison
|
| 248 |
|
| 249 |
```
|
| 250 |
+
Random ████░░░░░░░░░░░░░░░░░░ 33.3%
|
| 251 |
+
Cost-Only █████░░░░░░░░░░░░░░░░░ 36.7% ← Baseline
|
| 252 |
+
Learned (Test) █████████████████░░░░░ 80.0%
|
| 253 |
+
Learned (Held-Out)█████████████████░░░░ 80.0% ← Best learned
|
| 254 |
+
Federated (3) ██████████████████░░░░ 85.0%†
|
| 255 |
+
Always-Best ██████████████████████ 100% ← Oracle
|
|
|
|
| 256 |
```
|
| 257 |
|
| 258 |
+
**Key Insight:** The learned ModernBERT classifier **more than doubles** the accuracy of the simple cost-only baseline (80.0% vs 36.7% on held-out prompts, a **2.2× improvement**, Fisher's exact test p = 1.4 × 10⁻³) while adding minimal latency overhead.
|
| 259 |
|
| 260 |
---
|
| 261 |
|
|
|
|
| 277 |
|---------|----------------------|----------------|-------------|------------|
|
| 278 |
| 1 (standalone) | — | 70.0% | ∞ (no privacy) | 224 |
|
| 279 |
| 2 | 8 | 78.0% | 2.1 | 1,800 |
|
| 280 |
+
| 3 | **5** | 85.0% | **1.8** | 2,400 |
|
| 281 |
| 5 | 3 | 88.0% | 1.5 | 3,600 |
|
| 282 |
| 10 | 2 | 91.0% | 1.2 | 6,000 |
|
| 283 |
|
| 284 |
+
*Preliminary: all federated results are evaluated on 20 hand-curated prompts.*
|
| 285 |
+
|
| 286 |
### Why Federated Routing Works
|
| 287 |
|
| 288 |
Routing knowledge is **complementary** across domains:
|
|
|
|
| 395 |
| **Federated** | ✅ w/ privacy | ❌ | ❌ | ❌ |
|
| 396 |
| **Explainability** | ✅ Full NL explanations | ❌ | ❌ | ❌ |
|
| 397 |
| **Overridable** | ✅ User feedback loop | ❌ | ❌ | ❌ |
|
| 398 |
+
| **CPU Inference** | ✅ 22ms median | ❌ GPU required | ✅ | ✅ |
|
| 399 |
| **Model Classes** | 3+ (expandable) | Proprietary | 2 tiers | 16 strategies |
|
| 400 |
| **Cost** | Free (MIT) | Proprietary pricing | Free | Free |
|
| 401 |
|
|
|
|
| 419 |
| Resource | Link |
|
| 420 |
|----------|------|
|
| 421 |
| **Source Code** | [github.com/eulogik/fugusashi](https://github.com/eulogik/fugusashi) |
|
| 422 |
+
| **Trained Model Weights** | [huggingface.co/eulogik/fugusashi-v1.3](https://huggingface.co/eulogik/fugusashi-v1.3) |
|
| 423 |
+
| **Preference Dataset** | [huggingface.co/datasets/eulogik/fugusashi-preferences](https://huggingface.co/datasets/eulogik/fugusashi-preferences) |
|
| 424 |
| **Live Demo** | [huggingface.co/spaces/eulogik/fugusashi](https://huggingface.co/spaces/eulogik/fugusashi) |
|
| 425 |
| **Paper (arXiv)** | [github.com/eulogik/fugusashi/blob/main/paper/main.tex](https://github.com/eulogik/fugusashi/blob/main/paper/main.tex) |
|
| 426 |
| **API Documentation** | [eulogik.com/fugusashi](https://eulogik.com/fugusashi) |
|