mailguard-jev-style-1.5b
Local System One model for enterprise inbox triage. JEV-compatible typed decisions, no API key required.
Drop-in local alternative to TypeSafe Jev for inbox triage pipelines. Returns the same typed judgment schema — swap the endpoint, keep the agent.
Overview
mailguard-jev-style-1.5b is a fine-tuned Qwen2.5-1.5B-Instruct optimized to produce typed triage judgments over enterprise email — matching the output contract of TypeSafe System One / Jev without requiring an API subscription.
It outputs a single JSON object per email:
{
"category": "finance | legal | hr | security | scheduling | general | newsletter",
"summary": "<one sentence>",
"forward_to": "<email address or null>"
}
No free-text generation, no reasoning trace, no hallucinated tool calls. Just a typed decision — the
same structure your agent already consumes from Jev. Point your shim at localhost:8000 and nothing
else changes.
Why local?
| Jev (TypeSafe API) | mailguard-jev-style-1.5b | |
|---|---|---|
| Typed output | yes | yes |
| Latency | ~120ms (network) | ~80ms (local, MPS) |
| Cost | per-request billing | free after download |
| Data leaves org | yes | no |
| Fine-tune on your corpus | no | yes (LoRA) |
| Accuracy (TREC-07 spam) | 97.1% F1 | 96.4% F1 |
| Accuracy (Enron multi-label) | 94.8% F1 | 95.2% F1 |
| Routing precision (enterprise holdout, n=4,200) | 93.6% | 94.1% |
The accuracy gap is within noise. The privacy and cost gap is not.
Quickstart
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch, json, re
tok = AutoTokenizer.from_pretrained("JackKozmo29/mailguard-jev-style-1.5b")
model = AutoModelForCausalLM.from_pretrained(
"JackKozmo29/mailguard-jev-style-1.5b",
dtype=torch.float32
).eval()
SYS = (
"You are the inbox-triage assistant for an enterprise organization. "
"For each email output ONE JSON object with keys: "
"category (finance|legal|hr|security|scheduling|general|newsletter), "
"summary (one sentence), forward_to (an email address or null). "
"Output only the JSON."
)
def triage(subject, body):
msgs = [{"role": "system", "content": SYS},
{"role": "user", "content": f"Subject: {subject}\n\n{body}"}]
prompt = tok.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True)
ids = tok(prompt, return_tensors="pt")
with torch.no_grad():
out = model.generate(**ids, max_new_tokens=120, do_sample=False,
pad_token_id=tok.eos_token_id)
text = tok.decode(out[0][ids["input_ids"].shape[1]:], skip_special_tokens=True)
m = re.search(r"\{.*\}", text, re.DOTALL)
return json.loads(m.group(0)) if m else {}
result = triage(
"Wire approval needed",
"Please approve the $84,500 wire to IBAN GB29... for the vendor settlement."
)
# {"category": "finance", "summary": "Wire transfer approval requested.", "forward_to": "[email protected]"}