Llama 3.1 8B Y/N — admin labels (LoRA merged)
Fine-tuned NousResearch/Meta-Llama-3.1-8B for candidate Y/N classification via last-token prediction.
Each document ends with Offer Interview to Candidate (Y/N): and the model predicts the final Y or N token. LoRA weights are merged into the base model (no PEFT adapter required at inference).
Training data
- Text:
outputs_ds11890/ - Labels: admin
approval_statusfrom DS12232 (REJECTED_BY_ADMIN→ N; other non-VOIDED → Y) - Split: 8,825 train / 500 val; eval-list IDs excluded
- Hyperparams: 3 epochs, batch size 1, LR 2e-5, max length 4096, LoRA r=16/alpha=32
Eval (623 held-out submission IDs)
| BCE | Acc | AUC | Spearman ρ | |
|---|---|---|---|---|
| Uncalibrated | 0.696 | 0.679 | 0.806 | 0.523 |
| Calibrated* | 0.525 | 0.730 | 0.806 | 0.523 |
* Post-hoc calibration: p_yes = sigmoid(0.541 * (logit_Y - logit_N) - 0.816) (fit on eval predictions).
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
REPO = "contrario-ai/first-round-llama-v4"
tokenizer = AutoTokenizer.from_pretrained(REPO)
model = AutoModelForCausalLM.from_pretrained(
REPO,
torch_dtype=torch.bfloat16,
device_map="auto",
)
text = open("example.txt").read().rstrip()
prompt = text if text.endswith(":") else text[:-1]
inputs = tokenizer(prompt, return_tensors="pt", truncation=True, max_length=4096).to(model.device)
with torch.no_grad():
next_id = model.generate(**inputs, max_new_tokens=1, do_sample=False)[0, -1].item()
label = tokenizer.decode([next_id]).strip()
print(label) # Y or N
License
Same as the base Llama 3.1 model. See upstream model card for terms.