CoolFace
Modelpublic

chendren/contact-center-coaching-mistral-7b-mlx

sourceHugging Faceapache-2.0updated 9mo agoView on Hugging Face
0likes
Model Card

Contact Center Coaching - Mistral 7B LoRA (MLX)

Fine-tuned Mistral-7B-Instruct-v0.3 model for contact center agent coaching and journey-specific analysis using Apple MLX framework.

Model Description

This model provides journey-specific coaching recommendations for contact center agents by analyzing customer conversations with temporal context awareness. It's optimized for Apple Silicon (M1/M2/M3/M4) using the MLX framework.

Key Capabilities:

  • โ€”๐ŸŽฏ Journey-specific coaching (Onboarding, Escalation, Retention, Sales/Upsell)
  • โ€”โฐ Temporal context interpretation (time, day, queue wait, peak season)
  • โ€”๐Ÿ“Š Structured JSON output (immediate priorities, long-term development, strengths)
  • โ€”๐Ÿ’ก Identifies agent strengths to leverage
  • โ€”๐Ÿš€ Fast inference (4s latency, 27 tokens/sec)

Quick Start

Installation

bash
pip install mlx-lm

Usage

python
from mlx_lm import load, generate

# Load model
model, tokenizer = load(
    "mlx-community/Mistral-7B-Instruct-v0.3",
    adapter_path="chendren/contact-center-coaching-mistral-7b-mlx"
)

# Analyze conversation
prompt = """<|user|>
[TEMPORAL CONTEXT]
Timestamp: 2026-01-02T14:30:00
Time of day: afternoon
Day: Thursday
Business hours: Yes
Queue wait: 3.0 minutes
Peak season: no

Analyze this agent conversation and provide coaching recommendations.

Conversation:
[14:30:00] <Agent>: Thank you for calling. How can I help you today?
[14:30:03] <Customer>: I'm having issues with my account login.
[14:30:08] <Agent>: I can help with that. Let me check your account.
[14:30:15] <Agent>: I see the issue. I'll reset your password now.
[14:30:25] <Customer>: Great, thank you!

---

**Call Summary:**
- Issue: Account access problem
- Resolution: Password reset
- Outcome: Resolved

Provide:
1. Immediate coaching priorities
2. Long-term development areas
3. Specific examples from the conversation
<|assistant|>"""

response = generate(model, tokenizer, prompt=prompt, max_tokens=300)
print(response)

Expected Output

json
{
  "immediate_priorities": [
    "Ask for confirmation after resolution",
    "Offer alternative authentication methods"
  ],
  "long_term": [
    "Develop scripts for common account issues",
    "Train on proactive security recommendations"
  ],
  "strengths_to_leverage": [
    "Quick problem identification",
    "Clear communication"
  ]
}

Training Details

Training Data

  • โ€”Dataset Size: 1,500 high-quality contact center conversations
  • โ€”Data Source: Synthetically generated using InceptionLabs.ai Mercury model
  • โ€”Format: MLX JSONL with temporal features
  • โ€”Features: 6 temporal context fields + full conversation transcripts

Training Configuration

ParameterValue
Base ModelMistral-7B-Instruct-v0.3 (MLX)
MethodLoRA (Low-Rank Adaptation)
Trainable Parameters0.145% (10.5M / 7.2B)
Training Iterations1,200 (early stopped at 1,360)
Batch Size4
Learning Rate1e-5
Training Time5.3 hours
HardwareM4 Max (128GB RAM)
FrameworkMLX (Apple Silicon optimized)

Performance Metrics

MetricValueQuality
Validation Loss0.26874% improvement
Test Perplexity1.35Excellent (<5 is ideal)
Training Loss0.19881% improvement
OverfittingMinimalTrain/Val gap: 35.4%

Inference Performance

MetricValue
Latency~4 seconds per analysis
Throughput26-27 tokens/second
Memory Usage~16 GB peak
Model Size40 MB (LoRA adapters)

Journey Types Supported

The model adapts its coaching based on customer journey stage:

  1. 1.๐Ÿ†• Onboarding - New customer setup and first-time use
  2. 2.โš ๏ธ Escalation - Complex technical issues requiring escalation
  3. 3.๐Ÿ”„ Retention - Cancellation prevention and value reinforcement
  4. 4.๐Ÿ“ˆ Sales/Upsell - Account upgrades and additional services

Model Architecture

  • โ€”Base: Mistral-7B-Instruct-v0.3
  • โ€”Fine-tuning: LoRA adapters (rank-based parameter-efficient tuning)
  • โ€”Precision: bfloat16
  • โ€”Context Length: 2048 tokens
  • โ€”Optimizer: AdamW

Limitations

  • โ€”Language: English only
  • โ€”Domain: Contact center / customer service specific
  • โ€”Context: Optimized for conversational customer support scenarios
  • โ€”Sequence Length: Best performance on conversations <2048 tokens (98.4% of data)

Ethical Considerations

  • โ€”Synthetic Data: All training data was synthetically generated, no real customer conversations used
  • โ€”Privacy: No PII or sensitive customer information in training data
  • โ€”Bias: Model trained on diverse synthetic scenarios to minimize bias
  • โ€”Use Case: Designed for agent coaching and quality improvement, not customer-facing automation

Citation

bibtex
@misc{contact-center-coaching-mistral-7b-mlx,
  title={Contact Center Coaching - Mistral 7B LoRA (MLX)},
  author={Chad Hendren},
  year={2026},
  publisher={HuggingFace},
  howpublished={\url{https://huggingface.co/chendren/contact-center-coaching-mistral-7b-mlx}}
}

License

Apache 2.0 (inherits from base Mistral-7B-Instruct-v0.3 model)

Model Card Authors

Chad Hendren (@chendren)

Contact

  • โ€”GitHub: https://github.com/chendren
  • โ€”HuggingFace: https://huggingface.co/chendren

Acknowledgments

  • โ€”Apple MLX Team - For the excellent Apple Silicon ML framework
  • โ€”Mistral AI - For the Mistral-7B base model
  • โ€”InceptionLabs.ai - For synthetic data generation via Mercury model
  • โ€”HuggingFace - For model hosting and MLX community support

Status: โœ… Ready for deployment and evaluation

Last Updated: January 1, 2026

Model Version: 1.0.0 (Iteration 1200)