Views
No views yet
[!IMPORTANT] A newer version of AlphaRoute is available!
Check out AlphaRoute-0.8B-v1.5, the latest iteration of the AlphaRoute family of models.
Key v1.5 Highlights:
- Banking77 Intent: 95.40% (+3.60% over v1.0)
- CLINC150 Multi-Domain: 94.00% (+18.80% over v1.0)
- HWU64 Zero-Shot: 89.96% (+6.04% over v1.0)
- Golden Enterprise 300: 97.67% (+8.34% over v1.0)
- Adversarial Out-of-Scope Rejection: 100.00% (vs 35.0% on v1.0)
- Fully mitigated false-rejection bias and supports advanced multi-target schema extraction.
llama.cpp, Ollama, LM Studio, and local C++ runtimes on Linux, Windows, and macOS.| Filename | Quantization Method | Disk Size | Target Hardware / Platform |
|---|---|---|---|
AlphaRoute-0.8B-v1.0-Q4_K_M.gguf | Q4_K_M (4-bit standard) | 503 MB | Ultra-compact CPU / GPU edge devices |
AlphaRoute-0.8B-v1.0-Q8_0.gguf | Q8_0 (8-bit high-precision) | 774 MB | High-precision C++ inference |
| Benchmark Dataset | Domain Scope | JSON Valid % | Zero-Shot Accuracy (BF16 Baseline) |
|---|---|---|---|
Banking77 (official test) | 77 Fine-Grained Banking Intents | 100.0% | 91.80% |
CLINC150 (official test + OOS) | 150 Intents + Out-of-Scope Detection | 100.0% | 75.20% |
HWU64 (official test, 1,076 queries) | 64 Voice Assistant Intents | 100.0% | 83.92% |
Note on Benchmarks: Benchmark scores reported above are evaluated on the official test splits using the unquantized PyTorch BF16 reference model. Quantized variants (MLX 8-bit/4-bit, GGUF Q8_0/Q4_K_M) provide ultra-compact memory footprints and accelerated inference.
1{
2 "routing": {
3 "target_category": "iam_privilege_escalation",
4 "severity": "CRITICAL",
5 "out_of_scope": false
6 },
7 "extracted_entities": {
8 "compromised_identity": "admin-service-account",
9 "affected_resource": "arn:aws:iam::123456789:role/ProdAdmin",
10 "action_taken": "policy_attachment"
11 },
12 "recommended_actions": [
13 "revoke_active_session",
14 "quarantine_role"
15 ]
16}"out_of_scope": true and sets "intent": null, preventing hallucinated routing.- billing- billing: Inquiries regarding invoices, credit card charges, overbilling, refund requests, or payment disputes.1{
2 "intent": "billing | technical_support | account_security | null",
3 "out_of_scope": "boolean"
4}1EXAMPLES:
2Input: "Someone from Russia logged into our admin console"
3Output: {"intent": "account_security", "severity": "CRITICAL", "out_of_scope": false}
4
5Input: "Can you change my invoice address?"
6Output: {"intent": "billing", "severity": "LOW", "out_of_scope": false}1You are a precise semantic routing engine. Output only valid JSON.
2TASK:
3<High-level routing objective>
4
5CATEGORIES:
6- <category_name_1>: <semantic definition and trigger rules>
7- <category_name_2>: <semantic definition and trigger rules>
8
9OUTPUT SCHEMA:
10<JSON Schema with allowed literals>
11
12[OPTIONAL] EXAMPLES:
13Input: "<exemplar_query>"
14Output: <exemplar_json>
15
16INPUT:
17"<user_query>"
18
19JSON:pip install llama-cpp-python1from llama_cpp import Llama
2
3llm = Llama.from_pretrained(
4 repo_id="NamanAgnih0tri/AlphaRoute-0.8B-v1.0-GGUF",
5 filename="AlphaRoute-0.8B-v1.0-Q4_K_M.gguf",
6 n_ctx=2048,
7 verbose=False
8)
9
10prompt = '''<|im_start|>system
11You are a precise semantic routing engine. Output only valid JSON.<|im_end|>
12<|im_start|>user
13TASK: Route customer support ticket and extract entities.
14CATEGORIES:
15- billing: Invoices, duplicate card charges, refund requests.
16- tech_support: App crash, 500 error, bugs.
17OUTPUT SCHEMA:
18{"routing": {"intent": "billing | tech_support | null", "out_of_scope": "boolean"}, "details": {"charge_amount": "string or null", "card_type": "string or null"}}
19INPUT: "I was charged $49.99 twice on my Visa card for the annual plan."
20JSON:<|im_end|>
21<|im_start|>assistant
22'''
23
24output = llm(prompt, max_tokens=100, temperature=0.0, stop=['<|im_end|>', '\n\n'])
25print(output['choices'][0]['text'].strip())