JevLite-SWEChat-EN
Coding-agent session router/review head trained on SWE-chat (ODC-BY). JevLite is a typed-decision architecture: a ModernBERT encoder reads a session state plus an embedded question schema (question text and candidate labels as marker tokens), and a per-label linear head produces grouped-softmax probabilities for each question. It does not generate text.
Questions
Pre-route (before running the turn):
tool_needed(yes/no): will this user request need tool execution?complexity(0-3): expected number of tool calls. 0 = none, 1 = 1-3, 2 = 4-12, 3 = 13+
Post-review (after the assistant turn):
needs_correction(yes/no): will the user push back on this turn?next_action(correction / continue / done)
Labels are derived deterministically from SWE-chat ground truth: tool counts between prompts, and the prompt_pushback annotation of the following user prompt.
Results (held-out test split, 12,000 decisions, temperature-calibrated)
| Question | Accuracy | Macro F1 | Majority baseline |
|---|---|---|---|
| tool_needed | 0.825 | 0.823 | 0.509 |
| complexity | 0.576 | 0.474 | 0.491 |
| needs_correction | 0.594 | 0.590 | 0.549 |
| next_action | 0.519 | 0.433 | 0.451 |
Confidence routing: at threshold 0.90, 22.8% coverage at 0.947 accuracy. Calibrated ECE: tool_needed 0.016, needs_correction 0.026. On Japanese-prompt rows, tool_needed still reaches 0.767 accuracy.
Training
- 64,000 training states sampled session-disjoint from SWE-chat (all Japanese-pool rows included, 5,275), 6,000 validation, 12,000 test
- max_len 512, 3 epochs, batch 16, lr 3e-5, best-validation checkpoint
- Per-question-type temperatures fitted on validation: [1.3, 1.1, 1.2]
Limitations
needs_correctioninherits the annotation ceiling ofprompt_pushback(reported inter-annotator agreement ~0.79).complexityon Japanese-prompt sessions is weaker (acc ~0.43): session states are mostly English tool logs regardless of prompt language.- Trained on SWE-chat's agent mix (Claude Code heavy); transfer to other agent harnesses is not measured.
- A Japanese-schema sibling model (JevLite-SWEChat-JA, modernbert-ja-130m) scores equal or better on most questions despite being smaller.
Format
PyTorch checkpoint for the Open Jev / JevLite runtime (JevLite.from_checkpoint). Contains the encoder state dict, question/label registries, and fitted temperatures.
Core ML (Apple Neural Engine)
Converted with the Open Jev Core ML exporter (fp16, ANE-oriented architecture, macOS 26 deployment target). Packages are under coreml/:
coreml/jevlite-128.mlpackage,coreml/jevlite-256.mlpackage,coreml/jevlite-512.mlpackage(fixed sequence-length buckets, ~286 MB each)- Input:
input_ids/attention_mask[1, S] int32. Output:token_logits[1, S] - gather at the label marker positions and apply the grouped softmax with the checkpoint temperatures, same as the PyTorch runtime.
Measured on a MacBook Pro (M2 Max), median token_logits latency on the Neural Engine: 7.5 ms (seq 128), 11.3 ms (256), 29.3 ms (512). Decision agreement with the PyTorch reference was 100% on 120 held-out decisions (max abs logit error 0.023, confidence MAE 0.0005). First load compiles for the ANE and takes roughly 10-20 s per package, so the packages are meant to stay resident.
- Downloads last month
- 11
Model tree for eightman999/jevlite-swechat-en
Base model
answerdotai/ModernBERT-base