Files
java-ai-agents/classic-ml-vs-llm/output/09-cost-model.txt
T
Claude 5323e6c71a Add classic-ml-vs-llm module: Tribuo 4.3.2 and Smile 7.3.0 text classifiers, a zero-shot LLM client and a cost model
Seeded synthetic support tickets in five categories; Tribuo and Smile logistic regression and Smile naive Bayes against a
majority baseline; skewed classes, train/test duplicates, vocabulary drift and the three different answers to a ticket of
unseen words; a zero-shot client for OpenAI-compatible endpoints tested against a fake endpoint (no model was called) and
a cost formula with assumed prices. Every figure is written to output/ by the tests that assert it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b69H5rTewUKPyhGS8r
2026-12-01 23:57:00 +05:30

19 lines
899 B
Plaintext

# What a million tickets cost: a formula, not a price list
EVERY PRICE BELOW IS AN ASSUMPTION. Replace the three rate cards with the ones you actually pay.
inputs: 117.9 prompt tokens per ticket (estimate), 3 output tokens, 1,000,000 tickets
## LLM, billed per token (output priced at 5x input in every row)
assumed $ per 1M input tokens $ per 1M tickets
0.10 13.29
1.00 132.92
3.00 398.76
## Classic model, in-process on one CPU core
measured median predict (Tribuo, 02-models.txt run): 13.9 microseconds
assumed core price: $0.05 per core-hour
core-seconds for 1M tickets: 13.9 cost: $0.0002
Not in either number: training and labelling for the classic model, retries and rate limits for the LLM,
and the engineer-hours for both. They usually decide the real comparison.