Downloads · 30 days
8
5% of all-time downloads
eulogik/fugusashi-router
fugusashi-router is a machine learning model from eulogik. 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 mit.
Downloads · 30 days
8
5% of all-time downloads
All-time downloads
147
Public
Repo size
—
Likes
2
Public
Click a slice to open those files.
.json3.6 MB · 100%
From the Hugging Face model README
By eulogik — building AI infrastructure for everyone.
</div>CMA-ES evolved routing weights for the Fugusashi intelligent model router. A 385-dimensional weight vector that maps prompt embeddings to model selection — learned via Covariance Matrix Adaptation Evolution Strategy, the same approach used in Sakana AI's TRINITY paper.
Like Sakana Fugu. But Free. And Yours.
import numpy as np
import json
from sentence_transformers import SentenceTransformer
# Load weights
with open("cmaes_weights.json") as f:
data = json.load(f)
weights = np.array(data["mean"])
bias = data["mean"][-1]
# Embed prompt and route
model = SentenceTransformer("all-MiniLM-L6-v2")
embedding = model.encode(["Write a Python function to sort a list"], normalize_embeddings=True)[0]
logits = embedding * weights[:384] + bias
models = ["gpt-oss-120b", "nemotron-3-ultra", "nemotron-3-super", "hermes-3-405b", "lfm-2.5-1.2b"]
chosen = models[np.argmax(logits)]
print(f"Route to: {chosen}")
| Field | Value |
|---|---|
| Algorithm | CMA-ES (Covariance Matrix Adaptation Evolution Strategy) |
| Dimensions | 385 (384 weights + 1 bias) |
| Population | 16 |
| Generations | 30 |
| Training tasks | 20 preference samples |
| Best fitness | ~0.24 |
| Embedding model | all-MiniLM-L6-v2 |
| Resource | Link |
|---|---|
| 🌐 Website | eulogik.github.io/fugusashi |
| 💻 Source Code | github.com/eulogik/fugusashi |
| 📦 PyPI | pypi.org/project/fugusashi |
| 📊 Dataset | huggingface.co/datasets/eulogik/fugusashi-preferences |
| 🚀 Live Demo | huggingface.co/spaces/eulogik/fugusashi |
| 🌍 eulogik | eulogik.com |
If you use Fugusashi in your work:
@software{fugusashi2026,
title={Fugusashi: Open-Source Intelligent Model Router},
author={{eulogik}},
year={2026},
url={https://github.com/eulogik/fugusashi}
}
MIT — use it however you want.