Text Generation
PEFT
Safetensors
English
lora
text-classification
finance
banking
complaints
cfpb
regulated-industries
conversational
Instructions to use Gydeai/complaint-classifier-us-cfpb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Gydeai/complaint-classifier-us-cfpb with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-8B") model = PeftModel.from_pretrained(base_model, "Gydeai/complaint-classifier-us-cfpb") - Notebooks
- Google Colab
- Kaggle
Correct API costs to current list prices (Sonnet 5.5 $2/$10, Haiku 5.5 $0.10/$0.50)
Browse files
README.md
CHANGED
|
@@ -53,7 +53,7 @@ Product accuracy sits near 82-85% for every model we tried, including much large
|
|
| 53 |
own choice and some products overlap (credit reporting vs debt collection). The 82-class issue label is where
|
| 54 |
training on the data pays off: +11 points over Claude Sonnet, +17 over Claude Haiku and +22 over a 501B model,
|
| 55 |
all prompted without examples. Sonnet given the five most similar training complaints as examples is 1.6 points ahead
|
| 56 |
-
on issue, at roughly
|
| 57 |
prompted without examples reached 61.5% issue accuracy (this adapter: 51.5% on the same 200); not run on the full set.
|
| 58 |
|
| 59 |
## Cost per 1,000 complaints (USD)
|
|
@@ -61,17 +61,19 @@ prompted without examples reached 61.5% issue accuracy (this adapter: 51.5% on t
|
|
| 61 |
| Model | Real-time | Batch |
|
| 62 |
|---|---:|---:|
|
| 63 |
| **This adapter, self-hosted on one NVIDIA A30** | **~$0.012** | **~$0.014** (10,000 per batch) to **~$0.034** (1,000 per batch) |
|
| 64 |
-
| Claude Haiku 5.5, prompt only | ~$
|
| 65 |
-
| Claude Sonnet 5.5, prompt only | ~$
|
| 66 |
-
| Claude Sonnet 5.5, 5 examples | ~$
|
| 67 |
|
| 68 |
Estimates, not invoices. Self-hosted: one NVIDIA A30 in India at about $0.41/hour (list price ₹38.88, converted at
|
| 69 |
USD 1 = ₹95), about 10 complaints/s, billed per minute;
|
| 70 |
real-time assumes the GPU is busy (at low volume a dedicated GPU costs about $9.80/day whatever the traffic, so run in
|
| 71 |
-
batches or share it across tasks); batch includes about 160 s of GPU start-up. API: list prices (
|
| 72 |
-
million input/output tokens) on our measured tokens per
|
| 73 |
-
|
| 74 |
-
|
|
|
|
|
|
|
| 75 |
|
| 76 |
## Use
|
| 77 |
|
|
|
|
| 53 |
own choice and some products overlap (credit reporting vs debt collection). The 82-class issue label is where
|
| 54 |
training on the data pays off: +11 points over Claude Sonnet, +17 over Claude Haiku and +22 over a 501B model,
|
| 55 |
all prompted without examples. Sonnet given the five most similar training complaints as examples is 1.6 points ahead
|
| 56 |
+
on issue, at roughly 600 times the cost per complaint in real time (below). On the first 200 test complaints only, Claude Opus 5.5
|
| 57 |
prompted without examples reached 61.5% issue accuracy (this adapter: 51.5% on the same 200); not run on the full set.
|
| 58 |
|
| 59 |
## Cost per 1,000 complaints (USD)
|
|
|
|
| 61 |
| Model | Real-time | Batch |
|
| 62 |
|---|---:|---:|
|
| 63 |
| **This adapter, self-hosted on one NVIDIA A30** | **~$0.012** | **~$0.014** (10,000 per batch) to **~$0.034** (1,000 per batch) |
|
| 64 |
+
| Claude Haiku 5.5, prompt only | ~$0.26 | ~$0.07 |
|
| 65 |
+
| Claude Sonnet 5.5, prompt only | ~$3.75 | ~$0.73 |
|
| 66 |
+
| Claude Sonnet 5.5, 5 examples | ~$7.0 | ~$2.4 |
|
| 67 |
|
| 68 |
Estimates, not invoices. Self-hosted: one NVIDIA A30 in India at about $0.41/hour (list price ₹38.88, converted at
|
| 69 |
USD 1 = ₹95), about 10 complaints/s, billed per minute;
|
| 70 |
real-time assumes the GPU is busy (at low volume a dedicated GPU costs about $9.80/day whatever the traffic, so run in
|
| 71 |
+
batches or share it across tasks); batch includes about 160 s of GPU start-up. API: list prices (Haiku 5.5 $0.10/$0.50,
|
| 72 |
+
Sonnet 5.5 $2/$10 per million input/output tokens, cached reads $0.20 for Sonnet) on our measured tokens per
|
| 73 |
+
complaint; real-time without caching; batch applies the 50% batch discount and caches the shared instructions (the
|
| 74 |
+
retrieved examples differ per complaint and are not cached). Corrected 22 Oct 2026: earlier figures used older models'
|
| 75 |
+
prices. At bank volumes all are small in absolute terms; a small API model such as Haiku is close on cost, so the
|
| 76 |
+
adapter's case is fine-grained accuracy, data residency and control as much as cost.
|
| 77 |
|
| 78 |
## Use
|
| 79 |
|