Building a financial large-language model in-house
summary
Builds an in‑house financial LLM that labels transactions, generates SQL and powers downstream products by fine‑tuning open models, labeling data and engineering prompts and caches. Claims: fine‑tuning a 7B Llama 2 (16‑bit) reaches F1 93 after 25k examples, larger models (13B, 65B) improve further, fine‑tuning takes ~two days on large GPUs. Implements a Redis retrieval cache that hits 95% with 20M transactions, cutting model calls to ~0.1% and boosting throughput.
AI-written summary · about
chapters (22)
- 0:00Introduction to talk
- 0:24What are large language models
- 1:28Financial data as transactions
- 3:36Challenges in transaction data
- 5:25Transaction categorization problem
- 6:49Model size and accuracy trade-offs
- 8:34Zero-shot vs few-shot prompting
- 10:20Selecting optimal few-shot examples
- 12:05Batching transactions for efficiency
- 14:13Fine-tuning models for accuracy
- 17:05Scaling models for throughput
- 18:08Entity recognition in transactions
- 20:18Caching for entity recognition
- 22:26Caching for other tasks
- 24:13Applications of financial LLMs
- 27:52Training costs and model size
- 28:57Learning curve for developers
- 31:07Multi-label categorization
- 32:34Caching implementation details
- 34:51Exploring caching techniques
- 35:25Scaling throughput with hardware
- 37:55Q&A
