0:00Intro: MOFUSA Tech Academy
Welcome to MOFUSA Tech Academy. Beyond learning, towards mastery.
0:09So many AI models: which one to use?
Every few weeks there's a new model, a new version, a new leaderboard champion. For a business like Brightcart, it's dizzying. Which one should it actually use? Here's the good news. The names and rankings change constantly, but the questions that matter don't. Is it good enough for our tasks? Is it affordable at our volume? Is it safe with our customers' data? Can we adapt it, and can we depend on it? In this season finale, we'll map the landscape of foundation models, untangle "open" versus "closed", and build a decision framework Brightcart can use whatever models exist next month.
Season Three, Module Thirteen, final stop of the season: the foundation-model landscape.
0:58What makes a foundation model
First, a term you'll hear everywhere: foundation model. It means a large model pre-trained on broad data, which can then be adapted to many different tasks: chatting, summarising, classifying, extracting information, writing code, understanding images. It's the transfer-learning idea from episode thirty, pre-train once, adapt many times, at an enormous scale. And it's why most organisations don't train models from scratch. They choose a foundation model and adapt it, which is what the next two seasons are all about.
1:34Closed vs open-weight models
The biggest divide in the landscape is closed versus open. Closed models are offered only through an API. The provider keeps the weights; you send text over the internet and pay for the tokens you use. They often include the most capable models, and you don't have to run any infrastructure. But your data goes to a third party, under whatever agreement you have with them, and the model can change or be retired on their schedule. Open-weight models can be downloaded and run on your own hardware. That gives you control, privacy, the ability to fine-tune, and a version that never changes unless you change it.
But you have to run the servers, and capability varies a lot between models. One important nuance: "open weights" doesn't always mean fully open source. The training data and code may not be published, and licences vary. Some restrict commercial use or very large deployments. Always read the licence.
2:37How models differ
Beyond open and closed, models differ in many ways. Capability, in general and on specific tasks. Size, which sets memory: about two bytes per parameter in sixteen-bit precision, so fourteen gigabytes for a seven-billion-parameter model. Architecture: dense, or mixture-of-experts with fewer active parameters. Which kinds of input and output they handle. How long a context they accept. How fast they respond. What they cost per token. Whether they offer a reasoning mode, tool use and structured output. How well they handle languages other than English.
And how they behave on safety. No single model is best on every axis. Choosing means deciding which axes matter most for your job. Keep in mind that details like these change fast. They were correct when this video was published, so treat them as a snapshot, not a permanent fact.
3:38Deployment: API, cloud, self-hosted, on-device
There are also different ways to run a model. Calling a provider's API is the fastest way to start. Managed cloud services host models for you in a chosen region, which can help with data-residency rules. Self-hosting an open-weight model on your own or rented hardware gives full control, but you take on scaling and monitoring, the subject of Season Five's inference module. And small models can now run on laptops and phones, offering privacy and offline use, with less capability. Many real systems mix these: a small, cheap model handles easy requests, and a larger one is called only for the hard ones.
We'll build exactly that kind of router in Season Five.
4:25Benchmarks and leaderboards: a starting point only
What about leaderboards? Use them to build a shortlist, not to make the final decision. Test questions can leak into training data, inflating scores. A model that excels at maths puzzles or trivia might be mediocre at Brightcart's customer replies. Popular arenas, where people vote between anonymous answers, measure general preferences, not your domain. And once a benchmark becomes famous, models get optimised for it. The only evaluation that truly matters is on your data: say, two hundred real Brightcart support tickets with good reference answers.
Rankings often change once you test on your own tasks. How to build that evaluation properly is the heart of Season Four.
5:12A decision framework for choosing a model
So here's a framework Brightcart can reuse whenever new models appear. List the criteria that matter: quality on your own tasks, response speed, cost at your expected volume, privacy and where data is processed, whether you can fine-tune, licence terms, the risk of depending on one supplier, and how much engineering effort it takes to run. Weight them by importance. Score each option, using your own evaluation for quality. For cost, a simple formula goes a long way: the number of requests per month, times the tokens per request, times the price per token, counting input and output tokens separately, since they're usually priced differently.
Often the answer isn't a single model. For Brightcart, the matrix might point to a mid-size, self-hosted open model for routine questions, keeping customer data in-house, with a larger hosted model for the rare complex cases. Whatever the answer, it should come from measurements, not headlines.
6:20Read the model card
Before adopting any model, read its model card, the documentation published alongside it. It should describe intended uses, what kind of data it was trained on, how it was evaluated, its known limitations and biases, what safety testing was done, and its licence and acceptable-use policy. And in production, pin a specific version, and re-run your evaluation before upgrading. A newer model isn't automatically better for your task.
6:50Try it yourself: a monthly bill
Let's estimate a monthly bill, with made-up prices for practice: one dollar per million input tokens, four dollars per million output tokens. Brightcart's assistant handles fifty thousand requests a month, each with eight hundred tokens in and two hundred out. Pause and estimate.
Each request costs sixteen hundredths of a cent: eight hundredths for the input and eight hundredths for the output. Times fifty thousand: eighty dollars a month. Now let each reply grow to three thousand tokens, perhaps from long reasoning, and the bill jumps to six hundred and forty, eight times as much. Output tokens can quickly dominate, so watch how long your answers get.
7:39Self-hosting: will it fit in memory?
Thinking of running an open-weight model yourself? First check it fits. An eight-billion-parameter model needs about sixteen gigabytes for its weights at sixteen bits each, or about four gigabytes if compressed to four bits, a technique we'll cover in Season Five. Then add the KV cache for every active conversation, as we saw in episode forty-four. Self-hosting gives you full control over your data, but you pay for hardware and the people to run it, while an API needs neither but charges per token.
8:16Pause & Predict: one model or three?
Brightcart has three jobs: tagging twenty thousand tickets a day by topic, drafting replies using order data and policies, and handling complicated refund disputes. Should one model do all three? Pause. Probably not. Tagging is simple and high-volume: a small, cheap, fast model, or even a classic classifier from Season One. Drafting replies needs a capable mid-sized model with access to Brightcart's documents. Complex disputes deserve the strongest model available, plus a human review. Matching models to tasks can cut costs dramatically without losing quality where it matters.
9:03Open-weight licences: read before you build
Before building a product on an open-weight model, read its licence. Some use permissive licences that let you use, modify and sell, with attribution. Others use custom licences with conditions, such as usage policies, special terms for very large companies, or limits on using the model's outputs to train other models. And remember, open weights don't necessarily mean open training data or code. Check commercial use, modification and redistribution before you write a line of code.
9:36Build your own leaderboard
Public leaderboards are a good way to make a shortlist, but your own data should make the decision. Brightcart collects fifty real, anonymised support tickets with good reference replies and a scoring checklist: correct facts, policy followed, the right tone. Three candidate models answer all fifty. The replies are shuffled and scored blind, so nobody knows which model wrote what. Add latency and cost per thousand replies, and the decision is based on evidence. In Season Four, we'll turn this into a proper evaluation system.
10:13Planning for change
The model landscape changes fast: new versions arrive, old ones are retired, prices move. So plan for change. Pin the exact model version you use in production. Keep your prompts and evaluations in version control. Put a thin layer between your app and any provider, so switching means changing one module, not rewriting everything. Re-run your own benchmark before every switch. And check each provider's data policies: how long they keep your data, whether they train on it, and where it's stored.
10:48Small models, close to the customer
Not every model needs a data centre. Small models can run directly on phones and laptops, responding instantly, working offline, and keeping data on the device. They're great for autocomplete, simple classification and summarising notes, but they can't match big models for broad knowledge or deep reasoning. A common design is hybrid: handle simple requests locally, and send hard ones to a larger model in the cloud, with the user's consent.
11:19Try it yourself: how long will the customer wait?
Two models both take half a second before the first word appears. Model A then writes fifty tokens a second; model B, a hundred and fifty. For a three-hundred-token reply, how long does the customer wait for each? Pause.
Model A: half a second plus six seconds, six and a half in total. Model B: half a second plus two, two and a half. Streaming the reply word by word helps either way, because the customer starts reading almost immediately. For a support chat, speed isn't a luxury; it's part of quality.
12:02Myth vs Fact
Myth: just use the newest, top-ranked model. Fact: the best model for a business is the cheapest, fastest and safest one that passes its own evaluation. Sometimes that's a small, unglamorous model, and that's a great outcome.
12:20Season 3 recap: the flight over the valley
And that's the end of Season Three. Let's look back over the valley. We learned how large language models are pre-trained by predicting the next token, how scaling laws guide their size and data, and how post-training turns them into assistants. We learned how they choose each word, why they hallucinate, and how reasoning models think longer. We built a tiny GPT from scratch. Then we learned how machines generate images, from latent spaces and GANs to diffusion and text-to-image, and how they speak, make music and video.
Finally, models that combine vision and language, and how to navigate the landscape of foundation models. Now look ahead, to the golden city of Season Four: building real applications with foundation models. We'll start with the question that matters most for every AI product: how do you know if it's actually working? Evaluation, from perplexity to AI judges, then model selection, and prompt engineering, including how to defend against prompt attacks. Brightcart's AI assistant starts taking shape.
13:30Next: what an AI engineer does
Mission complete, and Season Three complete. Brightcart has a way to choose models that will outlast any leaderboard: shortlist with benchmarks, decide with its own evaluation. Season Four begins with a question that defines the rest of this course: what does an AI engineer actually do, and how is it different from the machine learning we've studied so far? See you in the city. Thank you for learning with MOFUSA Tech Academy.