Choosing a model: open or closed, small or large, running one locally, when to fine-tune
LLM Fundamentals & Prompting · 10 questions
Short notes
Key idea
Choose the smallest, cheapest model that passes your tests. Bigger models reason better but cost more and respond slower. Open-weight models can run on your own machine; fine-tuning is rarely the first answer.
Syntax
- Closed API models: strongest, no hardware needed, pay per token, data leaves your machine.
- Open-weight models (run with tools like Ollama): free per call, private, need a GPU or a lot of RAM for big ones.
- Small vs large: small for classification, extraction and routing; large for hard reasoning and long writing.
- Order of fixes: better prompt → examples → retrieval (RAG) → a bigger model → fine-tuning.
Example
A ticket classifier: test 200 labelled tickets on a small and a large model. Small gets 94%, large 96% at 15 times the cost. Use the small one, and send only low-confidence tickets to the large model.
Traps
- Picking by leaderboard instead of your own test set.
- Fine-tuning to add facts works poorly; use RAG for knowledge, fine-tuning for style or format.
- Ignoring latency: a slow model can ruin a chat experience.
- Local models need hardware; a 70B model won't run on a normal laptop.
Want the full lesson with step-by-step examples, a project and a certificate? LLM Fundamentals & Prompting course, ₹180 →
- Question 1easy
You need to label 100,000 short tickets into 8 categories. Where should you start?
- Question 2medium
What does "open weights" mean for a model?
- Question 3medium
What's a realistic downside of running a small open model on an ordinary laptop with Ollama?
- Question 4medium
At 20,000 calls a day, how much does a model cost per 30-day month at an example $0.30 per 1,000 calls?
print(round(20_000 * 30 / 1000 * 0.30, 2))
- Question 5hard
When is fine-tuning the best choice?
Choosing a model: open or closed, small or large, running one locally, when to fine-tune
Choosing a model: open or closed, small or large, running one locally, when to fine-tune
Choosing a model: open or closed, small or large, running one locally, when to fine-tune
Choosing a model: open or closed, small or large, running one locally, when to fine-tune
Choosing a model: open or closed, small or large, running one locally, when to fine-tune
5 more questions on this topic, with hints, and tests
Sign up free for 21 days of every question and test.