How to use from
SGLang
Install from pip and serve model
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
    --model-path "chendren/phi2-multi-issue-analysis" \
    --host 0.0.0.0 \
    --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "chendren/phi2-multi-issue-analysis",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Use Docker images
docker run --gpus all \
    --shm-size 32g \
    -p 30000:30000 \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    --env "HF_TOKEN=<secret>" \
    --ipc=host \
    lmsysorg/sglang:latest \
    python3 -m sglang.launch_server \
        --model-path "chendren/phi2-multi-issue-analysis" \
        --host 0.0.0.0 \
        --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "chendren/phi2-multi-issue-analysis",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Quick Links

Phi-2 Multi-Issue Transcript Analysis (legacy)

Fine-tune of microsoft/phi-2 that emits JSON for multi-issue customer-service transcripts (primary/secondary issues, sentiment, agent rating, resolution, CSAT-style score).

Legacy. No held-out metric was published. Phi-2 is a 2023 2.7B checkpoint. For process-control labels and forbidden-hit scoring use Immortalis/cx-comply. For applied CX decisions with measured accuracy use chendren/cx-decider-applied-v1.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("chendren/phi2-multi-issue-analysis")
tokenizer = AutoTokenizer.from_pretrained("chendren/phi2-multi-issue-analysis")
transcript = "[customer service transcript]"
inputs = tokenizer(transcript, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0]))

Intended use

Research on structured transcript tagging. Not a production QA scorer. Agent-performance ratings from this model should not be used for HR decisions.

Limits

  • No published test accuracy, ECE, or agreement vs human labels
  • English, clear dialogue format
  • CSAT values are model guesses, not survey scores

Citation

@misc{phi2-multi-issue-analysis,
  author = {Hendren, Chad},
  title = {Phi-2 Multi-Issue Transcript Analysis Model},
  year = {2025},
  publisher = {Hugging Face},
  url = {https://huggingface.co/chendren/phi2-multi-issue-analysis}
}
Downloads last month
24
Safetensors
Model size
3B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for chendren/phi2-multi-issue-analysis

Base model

microsoft/phi-2
Finetuned
(413)
this model