CoolFace
Modelpublic

praveenkrovvidi/rl-cas-trl-agent

sourceHugging Faceapache-2.0updated 5mo agoView on Hugging Face
0likes27downloads
Model Card

RL-CAS TRL Agent

Fine-tuned Qwen2.5-3B-Instruct that selects enterprise tools to resolve customer service queries. Trained via SFT + GRPO on expert trajectories from an RL-trained SAC agent.

Project: huggingface.co/spaces/praveenkrovvidi/rl-cas

Training Pipeline

  1. 1.SAC-Discrete (Round 1) -- MLP [256,256] trained for 3,000 episodes on a 14-signal dense reward environment with 13 actions (7 API tools + 5 terminal + 1 meta)
  2. 2.SFT (Round 2a) -- QLoRA fine-tuning on SAC expert trajectories (reward >= 5.0), 3 epochs, lr=2e-4
  3. 3.GRPO (Round 2b) -- RL with live environment rewards, 482 steps, lr=5e-5, 4 completions/prompt

Model Details

Base modelQwen/Qwen2.5-3B-Instruct
ArchitectureQwen2ForCausalLM, 36 layers, 2048 hidden, GQA (16 heads / 2 KV)
Parameters3B (fp16, 5.8 GB)
Context length32,768 tokens
Fine-tuningQLoRA (rank=16, alpha=32, 4-bit NF4) merged to fp16
HardwareNVIDIA A10G (24 GB VRAM)

Input / Output

Input: System prompt + user query describing a customer service issue.

Output: JSON with chain-of-thought reasoning and action ID.

json
{"reasoning": "Customer needs order status. I should look up their order first.", "action_id": 0}

Action Space

IDActionType
0invoke_order_servicetool
1invoke_refund_servicetool
2invoke_customer_servicetool
3invoke_auth_servicetool
4invoke_logistics_servicetool
5invoke_inventory_servicetool
6invoke_knowledge_basetool
7resolve_queryterminal
8request_customer_informationterminal
9route_to_billing_departmentterminal
10route_to_technical_supportterminal
11escalate_to_human_agentterminal
12consult_llmmeta

Benchmark (100 Queries, 8 Categories)

AgentAvg RewardResolutionAvg Steps
GPT-4o-mini (zero-shot)19.43100%2.5
SAC (MLP policy)19.36100%3.0
Gemini-2.5-flash16.46100%2.2
This model (TRL)15.5897%3.1

Intended Use

Designed for the RL-CAS customer service environment. Selects tools from a fixed action space -- does not generate free-form customer responses.

Limitations

  • —97% resolution rate (struggles with auth and refund multi-tool sequences)
  • —Requires the RL-CAS mock backend for tool execution
  • —Trained on synthetic customer service data, not real customer interactions

Citation

bibtex
@misc{rlcas2026,
  title={RL-CAS: Reinforcement Learning for Customer Service Agent},
  author={Praveen Krovvidi},
  year={2026},
  url={https://huggingface.co/praveenkrovvidi/rl-cas-trl-agent}
}