Loading…
Loading…
Fine-tuned distilbert-base-uncased for 3-class intent routing in an LLM inference pipeline.
Routes user prompts to the appropriate vLLM LoRA adapter on a Triton Inference Server:
| Label | ID | Routes to |
|---|---|---|
GENERAL |
0 | Qwen2.5-7B-Instruct (no LoRA) |
SQL |
1 | sql-expert LoRA adapter |
FINANCIAL |
2 | financial LoRA adapter |
distilbert/distilbert-base-uncasedExported to ONNX (opset 17) via optimum and served as an ONNX Runtime backend model inside NVIDIA Triton Inference Server on GKE Autopilot (NVIDIA L4 GPU).
from transformers import pipeline
classifier = pipeline("text-classification", model="xczou/distilbert-intent-sql-financial-general")
classifier("Write a SQL query to find all orders above 100")
# [{'label': 'SQL', 'score': 0.98}]
distilbert/distilbert-base-uncased