Downloads · 30 days
6
15% of all-time downloads
shareit/Supervisor-FRPT-Phi-4-reasoning
Supervisor-FRPT-Phi-4-reasoning is a text generation model from shareit. Use it when you need the model to write or continue text. The card lists the license as mit.
This model is a LoRA-fine-tuned supervisor (CS quality evaluator) for electronics customer-support chatbot conversations. It was trained on 20260331HumanFeedBackselfdist.jsonl (3,771 human-labelled dialogues) with the…
Downloads · 30 days
6
15% of all-time downloads
All-time downloads
40
Public
Parameters
14.7B
29.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors29.5 GB · 100%
From the Hugging Face model README
This model is a LoRA-fine-tuned supervisor (CS quality evaluator) for electronics
customer-support chatbot conversations. It was trained on 20260331_HumanFeedBack_selfdist.jsonl
(3,771 human-labelled dialogues) with the FRPT ("Fact-Reasoning Process
Training") research training methodology applied to a lora_sequential LoRA recipe.
The job of this model: given
(category, multi-turn user/assistant transcript, retrieved reference document), produce a Korean<think>...</think>rubric chain and a JSON verdict{"label": "correct|incorrect", "reason": "..."}.
| Metric | Value |
|---|---|
| Accuracy | 0.593 |
| Macro-F1 | 0.574 |
| F1 (correct) | 0.484 |
| F1 (incorrect) | 0.664 |
| Unparsed | 0/199 |
The training methodology bundles two layers:
Base LoRA recipe — lora_sequential with rank 16, alpha 32, dropout 0.05, target
modules qkv_proj, o_proj, down_proj, gate_up_proj (Phi-3 family) or the
q/k/v/o/MLP equivalents for Gemma-4. Optimizer AdamW, cosine schedule,
warmup ratio 0.05, grad clip 1.0, BF16, SDPA attention.
FRPT-aware data shaping (Fact-grounded Reasoning Process Training):
<think>...</think>. We train the entire assistant
response, so the model learns the reasoning process, not just the verdict.lora_sequential groups the 33 product
categories into 5 buckets (DRW, TV, SBS, REF_AUD_MNT, OTHERS) and trains
them in order, exposing the model to per-category structure while sharing
one adapter across the curriculum.| Field | Value |
|---|---|
| Base model | microsoft/Phi-4-reasoning |
| Method | lora_sequential |
| LoRA rank | 16 |
| LoRA alpha | 32 |
| LoRA dropout | 0.05 |
| Learning rate | 0.0005 |
| Epochs | 1 |
| Seed | 0 |
| Train samples | 3,771 |
| Test samples | 199 |
| Max sequence length | 3072 |
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
mid = "shareit/Supervisor-FRPT-Phi-4-reasoning"
tok = AutoTokenizer.from_pretrained(mid, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(mid, dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True)
system = "당신은 전자제품 CS 챗봇의 품질을 평가하는 수퍼바이저입니다."
user = ("[Category] PC\n\n[Conversation Transcript]\n"
"Turn 1 - User: ...\nTurn 1 - Assistant: ...\n\n"
"[Retrieved Document]\n(title) ...\n(content) ...")
msgs = [{"role": "system", "content": system},
{"role": "user", "content": user}]
inp = tok.apply_chat_template(msgs, tokenize=True, add_generation_prompt=True,
return_tensors="pt").to(model.device)
out = model.generate(inp, max_new_tokens=900, do_sample=False)
print(tok.decode(out[0, inp.shape[1]:], skip_special_tokens=True))
The generated text follows:
<think>
[Query-Document Alignment] ...
[Response-Document Consistency] ...
[Response Completeness] ...
</think>
{"label": "correct", "reason": "..."}
This model embodies the FRPT (Fact-Reasoning Process Training) research program. Key references that inform the methodology:
For the merge-before-forget continual-learning theory that motivated the sequential variant, see the internal Session 1~4 reports.