Downloads · 30 days
0
akashnaren/ui-mode-router
ui-mode-router is a text classification model from akashnaren. Use it when you need a label for a piece of text. It is set up for sklearn. The card lists the license as apache-2.0.
Tiny sklearn logistic-regression pipeline that maps a short user request to an agent interface label: cli, structuredapi, domclick, or form.
Downloads · 30 days
0
Access
Public
Updated Oct 14, 2026
Repo size
16.1 KB
Likes
0
Public
Click a slice to open those files.
.joblib16.1 KB · 74%
From the Hugging Face model README
Tiny sklearn logistic-regression pipeline that maps a short user request to an agent interface label: cli, structured_api, dom_click, or form.
| Author | Akash Premkumar |
| Library | sklearn + joblib (model.joblib) |
| Train data | akashnaren/agent-ui-sft |
| Demo | akashnaren/agent-ui-router (static Space) |
| License | Apache-2.0 |
Values below are taken from the published metrics.json on this model repo (also linked from Hub files):
| key | value | meaning |
|---|---|---|
n_train | 80 | Rows from agent-ui-sft train split used for fit |
n_test | 20 | Held-out agent-ui-sft test split |
test_accuracy | 1.0 | Accuracy on those 20 held-out examples |
Lab toy. Accuracy 1.0 on 20 synthetic held-out rows is expected to be brittle outside this tiny distribution. Do not cite this as a public-benchmark result.
Not Moonshot Kimi weights. The product idea shared with that line of work is “pick a cheap tool interface, then call tools.” This artifact is a free-tier sklearn classifier on 100 synthetic rows.
| file | role |
|---|---|
model.joblib | Fitted sklearn pipeline |
metrics.json | {"test_accuracy": 1.0, "n_train": 80, "n_test": 20} |
infer.py | CLI helper: load joblib, predict + predict_proba |
import joblib
pipe = joblib.load("model.joblib")
print(pipe.predict(["list failed workflow runs"])[0])
# optional probabilities
print(dict(zip(pipe.classes_, pipe.predict_proba(["list failed workflow runs"])[0])))
From infer.py:
python infer.py list failed workflow runs
Hub download:
from huggingface_hub import hf_hub_download
import joblib
path = hf_hub_download("akashnaren/ui-mode-router", "model.joblib")
pipe = joblib.load(path)
Labels come from ui_mode on synthetic SFT traces (agent-ui-sft), not from the human preference file agent-ui-human. The human set is a separate, smaller preference artifact.