Views
No views yet
tiny-router is a compact experimental multi-head routing classifier for short, domain-neutral messages with optional interaction context. It predicts four separate signals that downstream systems or agents can use for update handling, action routing, memory policy, and prioritization.relation_to_previous: new | follow_up | correction | confirmation | cancellation | closure
actionability: none | review | act
retention: ephemeral | useful | remember
urgency: low | medium | highoverall_confidence.data/synthetic/train.jsonldata/synthetic/validation.jsonldata/synthetic/test.jsonlcurrent_textinteraction.previous_textinteraction.previous_actioninteraction.previous_outcomeinteraction.recency_secondslabelsmicrosoft/deberta-v3-smallprevious_action embeddingprevious_outcome embeddinglog1p(recency_seconds)batch_size = 32epochs = 20max_length = 128encoder_lr = 2e-5head_lr = 1e-4dropout = 0.1pooling_type = attentionuse_head_dependencies = trueartifacts/tiny-router/eval.json:macro_average_f1 = 0.7848exact_match = 0.4570automation_safe_accuracy = 0.6230automation_safe_coverage = 0.5430ECE = 0.3440relation_to_previous = 0.8415actionability = 0.7982retention = 0.7809urgency = 0.7187current_text_only = 0.7058current_plus_previous_text = 0.7478full_interaction = 0.78481{
2 "relation_to_previous": { "label": "correction", "confidence": 0.94 },
3 "actionability": { "label": "act", "confidence": 0.97 },
4 "retention": { "label": "useful", "confidence": 0.76 },
5 "urgency": { "label": "medium", "confidence": 0.81 },
6 "overall_confidence": 0.87
7}1from tiny_router.io import load_checkpoint
2from tiny_router.runtime import get_device
3
4device = get_device(requested_device="cpu")
5model, tokenizer, config = load_checkpoint("artifacts/tiny-router", device=device)1uv run python predict.py \
2 --model-dir artifacts/tiny-router \
3 --input-json '{"current_text":"Actually next Monday","interaction":{"previous_text":"Set a reminder for Friday","previous_action":"created_reminder","previous_outcome":"success","recency_seconds":45}}' \
4 --pretty