Sefism Choosing an LLM and AI Stack Roadmap
A nine-stage path for choosing the model, hosting and tools for an AI feature on evidence rather than hype: requirements first, reasoning versus fast models, cost per task, context and retrieval, tool calling and MCP, API versus open-weight models, the rest of the stack, a three-model comparison on your own data, and routing and fallbacks in production. It suits developers, students and founders about to build with an LLM. By the end you can defend a model choice with your own numbers and switch in a day.
9
Sefism · Oct 2026
54
Sefism · Oct 2026
54
Sefism · Oct 2026
11
Sefism · Oct 2026
6
Sefism · Oct 2026
75
Sefism · Oct 2026
Roadmap
AI & Machine Learning
Sefism
About 54 hours, 11 weeks at 5 hours a week
Intermediate
Free
What this roadmap is
Choosing an LLM and AI stack is Sefism's nine-stage path for the decision most AI projects get wrong before a line of code is written: which model to use, where it should run and what to put around it. It is written for developers, students and founders who are about to build something with a large language model and want to pick on evidence rather than on whichever model was in the news last week.
It is short on purpose. It does not teach you to build an AI app from scratch; it teaches you to choose well, so the app you build is fast enough, cheap enough and safe enough for the people who will use it. By the end you should be able to:
- turn a product idea into model requirements: quality bar, speed, volume, context, tools and privacy
- decide when a reasoning model or a bigger model pays for itself, and when a small fast one is enough
- work out the cost per task, including output, reasoning, caching and batch discounts, before you build
- choose between a long context window, chat history tricks and retrieval for the data your feature needs
- decide between a cloud API and an open-weight model on your own servers, with privacy and compliance in view
- pick hosting, embeddings, document extraction, a framework (or none) and a vector database with clear reasons
- run a small comparison of three models on your own golden test set, and re-run it every quarter in production
Who it suits, and who should start elsewhere
It suits developers who already call an LLM API, or are about to, and want a method instead of a guess. It also suits final year students choosing a model for an AI project, founders and freelancers pricing an AI feature for a client, and team leads who keep being asked "should we switch to the new model?".
It does not try to teach programming or how LLM apps are built end to end. If you have never called an API, start with Programming foundations. If you want to build the whole application (retrieval, agents, evals and deployment), follow AI engineering, and use this roadmap alongside it whenever a model or stack decision comes up. AI agents and MCP goes deeper on agents once you have picked a model that is good at tools.
Time and pace
The estimate is about 54 hours across 9 stages, the shortest of Sefism's build roadmaps. There is one version for everyone, with no editions to choose. How the hours turn into weeks depends on the time you set on your dashboard:
- A student with about 10 hours a week finishes in five to six weeks. A sensible week is two evenings on the stage's topics and one longer block on its milestone, which is always a small experiment on your own feature.
- Someone working full time with about 5 hours a week should plan for around 11 weeks. Keep the reading short and spend most of the time on the milestone: the measurements are the point.
The first stage, Start from the task, is a foundation stage: if you say you are already comfortable with it, it can be skipped. Prerequisites are simple: you can write a small script in any language and call a web API with a key.
Stage by stage
1. Start from the task, not the model (5 hours)
There is no best model, only a best model for a job. Topics: five kinds of task, writing the requirements before you look at models, the cheapest model that is good enough, model families and tiers, leaderboards as a shortlist rather than a verdict, and why model facts go stale and must be dated. Milestone: a one-page requirements card for a feature you want to build, with its task family, six requirement lines and a shortlist of three models taken from two leaderboards, with the date you read them.
2. Reasoning quality: when a bigger model pays off (6 hours)
Reasoning models and fast models, effort and thinking settings, why multi-step tasks punish small errors, instruction following, when a bigger model pays for itself, and what benchmarks can and cannot tell you. Milestone: run the hardest five examples from your feature on a fast model and on a reasoning model at two effort levels, record correctness, tokens and time, and decide whether the extra reasoning pays for itself once you price a wrong answer.
3. Speed and cost per task (6 hours)
Prices are quoted per million tokens, but you pay per task. Topics: why tokens are not equal, input and output prices, cost per task, latency (time to first token and tokens per second), small model tiers, batch and caching discounts, and the hidden costs on the bill. Milestone: a dated cost sheet for three candidate models, with real token counts for five typical inputs, cost per task with and without batch or caching, measured time to first token and the monthly bill at your expected volume.
4. Context windows and memory (5 hours)
What a context window holds, what really happens with long documents, chat history and memory, when retrieval (RAG) beats a bigger window, and caching long, stable context. Milestone: test one real document set two ways, the whole set in the prompt and a simple retrieval of the top pieces, and compare answer quality on ten questions, cost per question and time to first token.
5. Tools, structured output and agents (6 hours)
If a feature calls functions, returns JSON or runs as an agent, tool skills matter as much as intelligence. Topics: function calling, structured output, MCP support, agent reliability over many steps, and controlling when tools are used. Milestone: a tiny agent with three tools (or an MCP server) running the same 15 tasks on two models, with task completion, wrong tool calls, invalid arguments, steps and cost per task recorded.
6. Privacy and deployment: API or your own servers (6 hours)
What happens to data you send an API, open-weight models and their licences, what self-hosting really costs, data residency, compliance and governance, and four ways to deploy. Milestone: the open-weight versus API checklist from the cheat sheet, filled in for your feature (data sensitivity, residency, licence, volume, team skills, cost), ending in one chosen deployment, the reason and what would make you switch.
7. The rest of the stack (6 hours)
A model is one layer. Topics: model hosting, choosing an embeddings model, getting text out of documents and out of websites, a framework or none, where the vectors live, and observability from day one. Milestone: a one-page stack diagram with your choice for each layer, one reason and one alternative you would switch to.
8. Run your own comparison (8 hours)
The longest stage, and the one where the decision is actually made: a small golden test set, a scoring rubric, code checks first and model judges second, three models compared on your data, and results read as quality, cost and speed together, with error analysis before switching. Milestone: a comparison report with at least 30 real cases, a rubric of three to five criteria, results for three models, an error analysis of the failures and a dated decision record.
9. Production choices: routing, fallbacks and lock-in (6 hours)
Choosing a model is not a one-off. Topics: routing between cheap and strong models, fallbacks for outages and rate limits, avoiding lock-in, pinning versions and planning for retirement, re-evaluating every quarter, and watching cost and quality in production. Milestone: your feature behind one model-calling function or gateway, with a pinned primary model, a tested fallback from a different provider, a simple router or cascade, and a quarterly review checklist run once.
Projects that fit
The roadmap suggests six final year project ideas that turn the decisions into something you can show:
- Evaluation harness for language model applications, which builds the golden set, rubric and model comparison at the heart of the roadmap
- LLM gateway with semantic cache and model routing, the production stage as one service
- Urdu and English personal data redaction before cloud AI prompts, the privacy stage made real
- On-device LLM benchmark app for budget Android phones, measuring small open models on real hardware
- Offline coding assistant on consumer hardware, choosing, quantising and serving an open-weight model where an API is not an option
- Retrieval assistant for university regulations, testing long context against retrieval on a real document set
How it works on Sefism
Everything on Sefism is free to learn from. The public page at Choosing an LLM and AI stack shows the full list of nine stages, with the first two stages open: their topics, milestones and recommended material. Later stages show their title, summary, hours and topic count.
To open every stage, add the roadmap to your dashboard. Adding a roadmap uses credits, new members get starting credits when they join, and your first roadmap is free. Once it is on your dashboard you can:
- open every stage, its topics, checks, AI study prompts and recommended material
- tick stages off and track your progress, at a pace set by the hours you have each week
- keep the companion Choosing an LLM and AI stack cheat sheet, which comes with the roadmap
- ask Tauseef a question about a model decision, or book a 1:1 session if you want to talk your stack through
If you are new, create a free account first. Credits are there so the platform goes to people who are actually learning, and if you run out while learning seriously, you can ask for more.
The companion cheat sheet
The Choosing an LLM and AI stack cheat sheet follows the roadmap in ten chapters and 75 concepts, adding one chapter the roadmap does not have: a dated snapshot of model prices and context windows, read from each provider's own page in October 2026, with a note on where to refresh it. It also holds the open-weight versus API checklist and a stack picker by layer. Skim it before you choose, and again at every quarterly review.
Related on Sefism
- Which AI topics are worth learning: agents, RAG, MCP or LLMs?
- AI is moving too fast. What should I focus on?
- How do I prove my AI agent project actually works?
- RAG, fine-tuning or a better prompt: how to choose
- The AI engineering words you keep hearing, explained properly
- Library picks used in the stages: Grokking Modern AI Fundamentals, Arena, Artificial Analysis, promptfoo and LiteLLM
- Cheat sheets: LLM APIs, AI evals and GenAI app architecture
What you can do afterwards
You can defend a model choice with a table built on your own data, price a feature before you build it and switch models in a day when something better or cheaper ships. From here, AI engineering builds the full application around your choice, AI agents and MCP takes the tools stage further, and MLOps and LLMOps covers running it in production at scale.
Frequently asked questions
Which LLM is the best? There is no single best model, only the best fit for a job. The roadmap's method is to write your requirements, shortlist three models from leaderboards, then decide with a comparison on your own test cases.
How long does the roadmap take? About 54 hours. At 10 hours a week that is five to six weeks; at 5 hours a week, around 11.
Should I use an API or run an open-weight model myself? It depends on data sensitivity, residency rules, licence terms, volume and your team's skills. Stage 6 walks through each, and the cheat sheet has a checklist that ends in a decision.
Do I need a reasoning model? Only when the task has many steps and a wrong answer is expensive. Stage 2's advice is to try a different effort level on the same model before switching to a bigger one.
How often should I re-check my choice? Every quarter, and whenever a new model ships. Models, prices and retirement dates change often, which is why the roadmap keeps your golden set and comparison script as reusable tools.
Ready to start?
Opens on Sefism in a new tab.
Stuck on something specific?
Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.
Follow along
New writing, resources and project ideas land here first.