recruit.email-understand)This LoRA adapter fine-tunes Qwen/Qwen3-1.7B (pinned revision 70d244cc86ccca08cf5af4e1e306ecf908b1ad5e) to read raw decoded recruitment emails, segment current body vs quoted/forwarded history and signatures, classify across 11 recruitment intents, extract structured recruiting fields while preserving relative date/time phrases (never fabricating timestamps), and abstain on unreadable or prompt-injected emails following schema recruit-contracts-v2.schema.json (2.0.0).
r=8, alpha=16, dropout=0.05) on all 7 linear projections (q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj).email_understand_train_v1): 256 verified records (192 train / 64 dev, 32 independent industry families, 50% EN / 50% VI, full coverage of all 11 intents and 6 segment kinds in both splits). 0 leakage across 18,432 audited pairs against recruit_eval_v3.grad_accum=4, lr=1e-4, cosine, chunked token-weighted CE loss with full prompt masking -100), peak VRAM 4.61 GB on Tesla T4.email_understand_train_v1, 64 dev records):0.353500.064690.049560.046050.04530 (-87.2%)recruit_eval_v3, 12 recruit.email-understand cases)| Metric | Score |
|---|---|
| JSON Validity | 12/12 (100.0%) |
| Schema Validity | 12/12 (100.0%) |
Field Precision (unsupported_claims = 0%) |
9/9 (100.0%) |
| Field F1 | 0.818 (81.8%) |
| State Accuracy / Macro F1 | 56/60 (93.3%) / 0.894 |
| Intent Accuracy | 9/12 (75.0%) |
| Review Needed Accuracy | 9/12 (75.0%) |
| Subject Value+State Match | 10/12 (83.3%) |
| Verbatim Quotes Found in Source | 28/28 (100.0%) |
Note: Raw LLM character offsets (
start/end) are deterministically re-anchored against the exact verbatim source slice inagent/scripts/understand_email.py, while never fabricating missing quotes.
adapter_config.json: fa8bf4fac14c5d40e6ae20caf3bf7e287828cdb7bace9802a35a9d3ba9924f9eadapter_model.safetensors: 66850bd9e49c11050e44567e21ae01e68fc56280f48ba881f130f6c95a8a9c9eimport torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model_name = "Qwen/Qwen3-1.7B"
adapter_name = "Dungchauu/mailcal-email-understand-qwen-adapter"
tokenizer = AutoTokenizer.from_pretrained(base_model_name)
base_model = AutoModelForCausalLM.from_pretrained(
base_model_name,
torch_dtype=torch.float16 if torch.cuda.is_available() else torch.bfloat16,
device_map="auto",
)
model = PeftModel.from_pretrained(base_model, adapter_name)
Qwen/Qwen3-1.7B