Downloads · 30 days
40
56% of all-time downloads
Proteinrequired/email-triage-lora
email-triage-lora is a text generation model from Proteinrequired. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as llama3.2.
A LoRA adapter (r=16) fine-tuned via Behavioral Cloning to triage corporate emails by selecting one of three tools — routetohuman, autoreply, or askforclarification — returned as a strict JSON tool call.
Downloads · 30 days
40
56% of all-time downloads
All-time downloads
71
Public
Repo size
115 MB
Likes
0
Public
Click a slice to open those files.
.safetensors97.3 MB · 85%
From the Hugging Face model README
A LoRA adapter (r=16) fine-tuned via Behavioral Cloning to triage corporate emails by
selecting one of three tools — route_to_human, auto_reply, or ask_for_clarification —
returned as a strict JSON tool call.
unsloth/Llama-3.2-3B-Instructr=16Evaluated on a 21-email held-out test set (canonical 100-email dataset, intent-stratified 80/20 split, seed 42; BC trained only on the 79 train emails). Metric = did the policy pick the reward system's optimal tool for each email.
| Policy | Held-out accuracy (N=21) |
|---|---|
| Random choice | 33.0% |
Always route_to_human | 47.6% |
| Rule-based heuristic | 76.2% (16/21) |
| This adapter | 71.4% (15/21) |
The adapter is perfect on every route_to_human intent but over-escalates routine
(auto_reply) and ambiguous (ask_for_clarification) mail — a known Behavioral-Cloning artifact
(trained on reward-positive rollouts skewed toward escalation). It lands within one example of a
hand-tuned rule baseline and far above the random / always-escalate floors. Reproduce with
run_trained_eval.py.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = "unsloth/Llama-3.2-3B-Instruct"
adapter = "Proteinrequired/email-triage-lora"
tok = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(base, device_map="auto")
model = PeftModel.from_pretrained(model, adapter)
The model expects the system/user prompt format defined in
run_trained_eval.py
and responds with a JSON object: {"tool": "<route_to_human|auto_reply|ask_for_clarification>"}.