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
File size: 1,712 Bytes
b1b2f5e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | {
"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
}
} |