Views
No views yet
| Label | Tier | Examples |
|---|---|---|
| 0 | simple | short questions, lookups, formatting, file reads |
| 1 | medium (→ mid in NadirClaw) | focused single-function edits, single-file debugging, small refactors |
| 2 | complex | architecture, multi-file refactors, agentic loops, reasoning-heavy prompts |
distilbert-base-uncased, native sequence-classification head (num_labels=3)max_length=2561from transformers import DistilBertTokenizer, DistilBertForSequenceClassification
2import torch
3
4repo = "nadirclaw/nadirclaw-distilbert"
5tok = DistilBertTokenizer.from_pretrained(repo)
6model = DistilBertForSequenceClassification.from_pretrained(repo)
7model.eval()
8
9inputs = tok("design a distributed rate limiter", return_tensors="pt",
10 truncation=True, max_length=256)
11with torch.no_grad():
12 probs = torch.softmax(model(**inputs).logits[0], dim=-1)
13tier = ["simple", "medium", "complex"][int(probs.argmax())]
14print(tier, float(probs.max()))NADIRCLAW_COMPLEXITY_ANALYZER=distilbertsimple prediction has confidence < 0.70, it escalates to medium or
complex. It is cheaper to over-serve a simple prompt than to under-serve a
complex one.