Text Classification
Transformers
ONNX
Safetensors
English
modernbert
system-1
decision-model
small-decision-model
intent-routing
agentic-router
ollama
finops
sovereign-ai
focus-1.5
s1sdk
homestead
Eval Results (legacy)
Instructions to use olanigan/HomeRouter-S1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use olanigan/HomeRouter-S1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="olanigan/HomeRouter-S1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("olanigan/HomeRouter-S1") model = AutoModelForSequenceClassification.from_pretrained("olanigan/HomeRouter-S1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from olanigan/HomeRouter-S1: direct link, hf CLI and curl.
- Browser
- Download file 1.71 kB
-
https://huggingface.co/olanigan/HomeRouter-S1/resolve/main/config.json
- Command line
-
hf download hf://olanigan/HomeRouter-S1/config.json
-
curl -L -o config.json https://huggingface.co/olanigan/HomeRouter-S1/resolve/main/config.json
1.71 kB
| { | |
| "architectures": [ | |
| "ModernBertForSequenceClassification", | |
| "SmallDecisionModel" | |
| ], | |
| "model_type": "modernbert", | |
| "base_model_name_or_path": "convaiinnovations/laya", | |
| "bundle_version": "1.0.0", | |
| "hidden_size": 1024, | |
| "num_attention_heads": 8, | |
| "num_hidden_layers": 4, | |
| "intermediate_size": 4096, | |
| "vocab_size": 50368, | |
| "max_position_embeddings": 8192, | |
| "num_labels": 10, | |
| "id2label": { | |
| "0": "bash", | |
| "1": "edit_file", | |
| "2": "grep_search", | |
| "3": "read", | |
| "4": "run_command", | |
| "5": "tier_cloud", | |
| "6": "tier_frontier", | |
| "7": "tier_local", | |
| "8": "view_file", | |
| "9": "write" | |
| }, | |
| "label2id": { | |
| "bash": 0, | |
| "edit_file": 1, | |
| "grep_search": 2, | |
| "read": 3, | |
| "run_command": 4, | |
| "tier_cloud": 5, | |
| "tier_frontier": 6, | |
| "tier_local": 7, | |
| "view_file": 8, | |
| "write": 9 | |
| }, | |
| "problem_type": "single_label_classification", | |
| "classifier_activation": "gelu", | |
| "classifier_dropout": 0.1, | |
| "calibration": { | |
| "temperature": 1.061762751224252, | |
| "recommended_threshold": 0.9, | |
| "calibrated_ece": 0.036322420656083036, | |
| "calibrated_brier": 0.448623925447464, | |
| "env": { | |
| "python_version": "3.11.12", | |
| "torch_version": "2.14.1+cu130", | |
| "cuda_available": true, | |
| "device_name": "NVIDIA L4", | |
| "random_seed": 29 | |
| } | |
| }, | |
| "benchmark": { | |
| "recipe": "homerouter", | |
| "test_accuracy": 0.65634280865507, | |
| "best_val_macro_f1": 0.5082396712195034, | |
| "train_duration_s": 5495.450272321701, | |
| "gpu_hardware": "NVIDIA L4, 23034 MiB, 610.57.04" | |
| }, | |
| "serving": { | |
| "llama_cpp_endpoint": "/v1/systemone", | |
| "default_port": 8080, | |
| "s1sdk_provider": "HomesteadProvider", | |
| "latency_p95_ms": 1.2 | |
| } | |
| } |