
In the very first lesson, I ask a model on my own machine a one-word question. It answers with one word. And that one word costs about two hundred tokens and almost seven seconds. Then I change only the model, and the same answer costs two tokens and a tenth of a second.
By the end of this course, you’ll know exactly why that happens, and you’ll be able to measure it yourself.
This is a short, practical course for .NET developers. We run a local language model with Ollama, and talk to it from C# through IChatClient, the standard interface from Microsoft.Extensions. AI. Because your code only talks to IChatClient, everything you learn here also works with cloud providers later. Only one line changes.
What we do, step by step
Install Ollama and two small models, and create a .NET 10 console app.
Send the first question, and open the response: model, finish reason, tokens, time.
Stream the answer, keep a real conversation, and control the answer with ChatOptions.
Find the hidden cost of “thinking” models, see what really happens when you try to turn thinking off, and choose the right model for the job.
Measure speed the honest way: warm-up, repeated runs, p50, and models that push each other out of memory.
Give the app the shape of a real .NET application: dependency injection, logging, caching, and a provider you choose in settings.
How the course works
Every lesson follows the same rhythm: we write a small piece of code, we run it, and we look at the real numbers. You’ll see my real measurements, and also the surprises and the mistakes I found while preparing the course, because those are often the most useful part.
What you need
Basic C# and .NET. No AI experience. Everything runs on your own machine. You don’t need an API key, a credit card or an internet connection after the setup.