Sefism is free for learners. We are here to help you grow, one step at a time.Join for free
Sefism.

Roadmap · Build products

Choosing an LLM and AI stack

Opens with credits

For developers, students and founders who are about to build something with a large language model and want to pick the model, hosting and tools on evidence rather than hype. By the end you can turn a task into requirements, compare three models on your own data, work out the cost per task, decide between an API and an open-weight model, and pick each layer of the stack with a reason you can defend.

Curated by Tauseef Fayyaz9 stages, 54 topics~4 months at a few hours a week

By the end, you will 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
  • Judge a model on tool calling, structured output and MCP support for the agent you want to build
  • 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 a golden test set, and re-run it every quarter in production

The path

9 stages, in the order to learn them. Open one to start.

  1. 1Start from the task, not the modelThere is no best model, only a best model for a job. Describe the job first: what kind of task it is, how good the answer must be, how fast, how often and with what data. Then use leaderboards to build a shortlist, not to make the decision.6 topics · ~1 week
  2. 2Reasoning quality: when a bigger model pays offSome tasks need a model that thinks before it answers, and some only need a quick, obedient one. Learn what reasoning models and effort settings do, why multi-step tasks punish small mistakes, and how to tell when the price of a bigger model is cheaper than the price of a wrong answer.6 topics · ~2 weeks
  3. Speed and cost per taskPrices are quoted per million tokens, but what you pay is per task. Learn how tokens, input and output prices, latency, small models, batch discounts and caching combine, so you can work out a feature's monthly bill before you write it.7 topics · ~2 weeksOpens with credits
  4. Context windows and memoryA context window is how much a model can read at once. Learn what fits, why a full window is slow and expensive, how to handle long chat histories, and when retrieval (RAG) beats simply paying for a bigger window.5 topics · ~1 weekOpens with credits
  5. Tools, structured output and agentsIf your feature calls functions, returns JSON or runs as an agent, the model's tool skills matter as much as its intelligence. Learn what to check: function calling, structured output, MCP support and how reliably a model finishes long multi-step jobs.5 topics · ~2 weeksOpens with credits
  6. Privacy and deployment: API or your own serversWhere the model runs decides who can see your data, what it costs at scale and which rules you must follow. Compare cloud APIs with open-weight models on your own servers, understand licences, data residency and compliance, and choose with the facts on one page.6 topics · ~2 weeksOpens with credits
  7. The rest of the stackA model is one layer. Around it sit hosting, an embeddings model, tools to get text out of PDFs and websites, maybe a framework, a vector database and observability. Learn what each layer does and how to pick a sensible default for each.7 topics · ~2 weeksOpens with credits
  8. Run your own comparisonThis is where the decision is made. Build a small golden test set from your real data, agree a scoring rubric, run three models on it, and read the results with cost and latency next to quality.6 topics · ~2 weeksOpens with credits
  9. Production choices: routing, fallbacks and lock-inChoosing a model is not a one-off. In production you route requests between cheap and strong models, keep fallbacks for outages, avoid getting locked to one provider, and re-run your comparison every quarter as models and prices change.6 topics · ~2 weeksOpens with credits
Keep reading

7 more stages, 42 more topics, free with an account.

You have seen the open stages of the Choosing an LLM and AI stack roadmap. Every topic it covers is listed above, and an account opens the rest: what each topic means, a question to check yourself, the courses, the practice and Tauseef's advice for every stage. Early access is open: sign up and your account is active shortly after.

Everything here is free to learn from. A few things, like adding a roadmap, keeping a cheat sheet or asking Tauseef a question, use credits. You get 15 when you join, your first roadmap is free, and if you are learning seriously and run out, you can ask for more. Credits only make sure the platform goes to people who are actually learning.

Build a project

A finished project proves more than a certificate.

Picked from the other libraries by shared topics.

Work with me

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.

  • 1:1 Mentorship
  • Fresh Graduate Mentorship
  • Career Guidance

Brand deals, promos and partnerships: tauseeffayyaz@gmail.com