Availit World How AI really works, in your language

Learn how AI actually works

Start from “what does AI even stand for?” and finish able to run models on your own computer, build agents and read DeepSeek’s papers. No maths background needed: every idea is built up from zero, then taken all the way to how today’s models really work.

  • Free, no sign-up, no ads
  • Built from the papers, docs and model files themselves
  • Works without internet once downloaded
The sky is
  • blue 62.9%
  • clear 15.5%
  • grey 9.4%
  • dark 7%
  • full 3.8%
  • falling 1.4%
This is what a language model does, again and again: it scores every possible next piece of text and picks one.

By the end, you can

The path

46 lessons in nine parts. Each part builds on the one before, so start at the top.

  1. Part 13 lessons53 min

    Start here

    What AI is, where it came from, and the layers that make up an AI product today.

    1. What AI actually isNot magic and not a brain in a box: a very large set of numbers that has learned, from examples, to predict what comes next. 15 min
    2. How we got here: 75 years in 15 minutesToday’s AI was not invented in one go. It is a handful of old ideas that finally met enough data and enough computing power. 15 min
    3. The AI stack: from chips to chat appsEvery AI product is a pile of layers, from a chip at the bottom to a chat window at the top. Learn the six layers once, and every new tool you hear about has a place to go. 23 min
  2. Part 25 lessons74 min

    The maths you need, gently

    Vectors, matrices, slopes, probability and how computers store numbers. Only what the later lessons use.

    1. Vectors: lists of numbers that mean somethingInside a model, every word, picture and sound becomes a list of numbers. See those lists as arrows, and a surprising amount of AI turns out to be geometry. 15 min
    2. Matrices: machines that transform vectorsA matrix is a grid of numbers that turns one vector into another. A language model is, more than anything else, a long chain of them. By the end of this lesson you will count the 8 billion weights of a real model yourself. 14 min
    3. Learning is walking downhillEvery model, from a spam filter to DeepSeek, learns the same way: measure how wrong it is, find which way is less wrong, and take a small step. Then do it again, billions of times. 15 min
    4. Probability: how models express doubtA language model never knows the next word. It gives every possible token a chance, and then one is picked. Learn how those chances are made, how they are judged, and what “perplexity” means when a paper reports it. 15 min
    5. Bits and floats: how computers store numbersA model is billions of numbers, and the number of bits each one gets decides how big the file is, how fast it runs and how far it can be squeezed. After this lesson, “BF16”, “FP8” and “MXFP4” will mean something. 15 min
  3. Part 34 lessons58 min

    How machines learn

    Learning from examples, neural networks, backpropagation, and the models that came before transformers.

    1. Machine learning: letting data choose the numbersUnder every AI system is one simple recipe: pick a function with some adjustable numbers, measure how wrong it is on examples, and let gradient descent fix the numbers. Here you will run that recipe on a model with two numbers. DeepSeek runs it on a trillion. 15 min
    2. Neural networks: small functions, stacked deepA straight line can only learn straight-line patterns. Stack thousands of tiny functions, each with a small bend in it, and you can learn almost any pattern at all. That stack is a neural network. 15 min
    3. Backpropagation: how billions of weights learn at onceGradient descent needs the slope of the loss for every single weight. Backpropagation finds all of them in one backward sweep, using a rule from school calculus. It is the engine under all of deep learning, and you can run it by hand. 14 min
    4. Before transformers: the networks that led hereThe transformer did not come from nowhere. Networks for images, networks with memory and a 2014 trick called attention each solved one piece of the puzzle. And some of those old ideas are coming back inside the newest models. 14 min
  4. Part 46 lessons95 min

    Inside a language model

    Tokens, embeddings, attention, the transformer block, long context and mixture of experts.

    1. Tokens: how a model readsModels do not read letters, and they do not read words. They read tokens: chunks of text, each with a number. How text is cut up explains why models stumble on spelling, why long numbers are hard, and why the same message costs more in some languages. 16 min
    2. Embeddings: where meaning becomes geometryThe first thing a model does with each token is look up a vector for it. Nobody designs those vectors; training moves them around until Monday sits next to Tuesday, and Paris minus France plus Japan lands on Tokyo. We measured that in a real model for this lesson. 13 min
    3. Attention: how tokens look at each otherAttention is the idea that made modern AI work. Each token asks a question, every earlier token holds up a label, and dot products decide who listens to whom. You will compute it by hand, and then see why it becomes expensive at a million tokens. 15 min
    4. The transformer: putting it all togetherYou now know every part: embeddings, attention, feed-forward blocks, residual connections, normalisation and softmax. Stack them in the right order and you have the design behind nearly every AI model of the last decade. At the end you will read a real model’s config.json and understand every line. 14 min
    5. Long context: reading a whole book at onceIn 2023, most open models could read about 2,000 to 4,000 tokens at once: a few pages. In 2026, the top open models from DeepSeek, Kimi and Z.ai read a million, the length of several long novels or a big codebase. This lesson shows why that was hard, the tricks that made it possible, and why “it fits” is not the same as “it understood”. 19 min
    6. Mixture of experts: huge models that run like small onesDeepSeek-V4-Pro has 1.6 trillion parameters, yet each token uses only 49 billion of them, about 3 %. That trick, the mixture of experts (MoE), is inside nearly every big open model of 2026, from DeepSeek and Kimi to GLM and gpt-oss. After this lesson, “671B-A37B” will mean something to you, and you will know why a 117-billion-parameter model can run faster on a laptop than a 27-billion one. 18 min
  5. Part 54 lessons72 min

    How models are trained

    Pretraining on trillions of tokens, turning a model into an assistant, reasoning through reinforcement learning, and fine-tuning your own.

    1. Pretraining: reading a good part of the internetBefore a model can chat, it reads. For weeks or months, thousands of GPUs push trillions of tokens through it, and its only job is to guess the next one. This step, pretraining, is the most expensive in AI, and it is where almost all of a model’s knowledge comes from. Here is how the data is cleaned, how big a run should be, and how thousands of GPUs train one model together. 20 min
    2. Post-training: from text predictor to assistantA base model knows a lot but behaves like autocomplete. Post-training turns it into something you can talk to: it follows instructions, uses tools, writes in a steady style and thinks before it answers. It takes far less computation than pretraining, but it is where a model’s usefulness is shaped, and its recipes are the most closely guarded part of AI. 16 min
    3. Reasoning models: teaching AI to think before it answersIn September 2024, OpenAI showed a model that writes a long chain of thought before answering, and became far better at maths and code. Four months later, DeepSeek released R1 with open weights and a paper explaining how it is done: reinforcement learning with rewards a computer can check. With no examples of reasoning to copy, the model taught itself to work step by step, check its work and change course. This lesson explains how, down to the formula. 19 min
    4. Fine-tuning: making a model your ownYou do not need a data centre to change how a model behaves. With LoRA, you train well under 1 % of a model’s weights, on one GPU or a Mac, in an afternoon, and get a model that writes in your format, knows your style, or handles your task better than a model ten times its size. This lesson covers when fine-tuning is worth it, how LoRA works, and the commands to do it. 17 min
  6. Part 68 lessons204 min

    Inference: running models

    What happens when you press Enter: sampling, the KV cache, quantization, GPUs, serving engines, local AI and APIs.

    1. What happens when you press EnterYou type a question, press Enter, and within a second a reply starts to appear, a few words at a time. In that second your words become one long text full of special markers, then a list of numbers. The whole prompt goes through billions of weights in one burst, and then the model writes its reply one token at a time, reading every one of its weights again for every token. This lesson follows one request from your keyboard to your screen, with real numbers for a real model. 26 min
    2. Sampling: how the next token is chosenAt the end of every step, a model does not give one answer. It gives a score to every token it knows, 128,256 of them for Llama 3.1, and then something has to choose. That choice is made again for every single token. It decides whether a reply is dull or lively, sensible or confused, and even whether it is valid JSON. It is also where one of the cleverest speed tricks lives: getting the same answer from a big model two or three times faster. 25 min
    3. The KV cache: a model’s working memoryWhen a model writes word 501 of a reply, it has to look back at all 500 words before it. Recomputing them every time would be hopeless, so it keeps a note of each one: the KV cache. For a long chat this note can grow as big as the model itself, and it decides how many people one GPU can serve at once. Some of the most important ideas in modern AI, from DeepSeek’s attention design to vLLM’s memory pages, exist to make this note smaller, share it, or reuse it. 21 min
    4. Quantization: big models in small memoryLlama 3.1 8B is a 16 GB file. Saved as Q4_K_M, it is under 5 GB, writes more than twice as fast, and on most questions gives almost the same answers. That is quantization: storing each weight with fewer bits. It is why a laptop can now run models that needed a data centre a few years ago. Done carelessly, it is also why a model that seems fine in English can quietly get worse in Urdu or Bengali. This lesson shows how it works, how to read names like Q4_K_M and IQ2_XXS, and how to measure the damage. 22 min
    5. Chips: what AI runs onEverything a model does comes down to a chip multiplying numbers and, far more often than you would think, waiting for those numbers to arrive. This lesson opens up a GPU, shows why the speed of memory matters more than raw computing power for chat, and follows the wires that join thousands of chips into one machine. You will see why DeepSeek, Google and Huawei design their models and chips around each other, and how to read a spec sheet without being fooled. 32 min
    6. Serving: one model, millions of peopleWhen you send a message, it joins thousands of others on the same GPUs. Serving is the craft of keeping those chips full without making anyone wait. This lesson covers the engines that do it, continuous batching, splitting prefill from decode, and how DeepSeek runs a 671-billion-parameter model across hundreds of servers, using the costs it published itself. By the end you can start a server of your own and work out what a million tokens really costs. 22 min
    7. Run AI on your own computerYou do not need a data centre to use a good model. A phone can run a small model with no internet at all, a gaming PC can run a 120-billion-parameter model, and nothing you type has to leave the machine. This lesson shows how to tell whether a model will fit and how fast it will be, which program to run it with, why mixture-of-experts models are a gift to home users, and how to plug a local model into your own apps. 22 min
    8. APIs: using a model over the internetMost people reach the biggest models through an API: your program sends text to a provider’s servers, a serving engine like the ones in the last lessons runs the model, and you pay for every token. This lesson takes a real request and reply apart, shows why a long chat costs far more than its length suggests, and cuts the bill with caching, batch jobs and the clock. It also covers thinking tokens, streaming, JSON you can trust, rate limits and errors, and the one format that lets the same code talk to DeepSeek, Qwen, Claude, GPT or the model on your own computer. 34 min
  7. Part 77 lessons226 min

    Agents and harnesses

    Tool calling, the agent loop, harnesses like Claude Code, context engineering, MCP and building your own agent.

    1. Tool calling: giving a model handsA language model can only write text. It cannot read a clock, do exact arithmetic, look something up or press a button. Tool calling changes that with a simple agreement: the model writes a short, structured request, and the program around it does the work and hands back the result. This lesson follows one tool call through the API, down to the tokens the model reads, shows how to write tools that models use correctly, traces how labs in the United States and China taught models to use tools, and ends with the rule that keeps tool use safe. 32 min
    2. The agent loop: think, act, look, repeatThe last lesson took one tool call apart. Put that call inside a loop, let the model decide when it has finished, and you have an agent: the thing inside coding assistants, deep-research tools and models that use a computer. This lesson writes a complete agent in plain Python, shows how thinking between actions keeps it on course, works out why long tasks fail so often, and collects the habits that make agents reliable. It ends with how labs in China and the United States now train agents directly, with reinforcement learning in thousands of environments. 31 min
    3. Harnesses: the program around the modelClaude Code, Codex CLI, Qwen Code, OpenHands: these are not models. They are harnesses, the programs that give a model its tools, decide what it may touch, keep its notes, and manage what it sees. The same model can score many points higher or lower depending on the harness around it. This lesson opens a coding harness and names its parts, shows how permissions and sandboxes keep you safe, explains the instruction files and extensions you can add, and ends with a careful first session you can run yourself with free or local models. 27 min
    4. Context engineering: choosing what the model seesAt every step, an agent’s model reads its whole context again: the rules, the tools, the task and everything that has happened since. It knows nothing else. What goes into that window, and what comes out, decides whether a long task succeeds, how fast it runs and what it costs. 34 min
    5. MCP: one plug for every toolIn the tool-calling lesson you wrote tools inside your own program. But an agent may need your files, your calendar, a database and dozens of online services, and every app would have to connect each one by hand. The Model Context Protocol is a shared plug: write a tool server once, and every app that speaks MCP can use it. 33 min
    6. Multi-agent systems: when many models beat oneOne agent works through one context, one step at a time. Several agents can split a big job, work in parallel and check each other. They can also contradict each other, repeat each other’s work and spend fifteen times the tokens of a chat. This lesson is about telling the two situations apart. 30 min
    7. Build an agent: a study helper, from start to finishThis lesson puts the whole agents part together. You will build a small program that answers questions from your own notes, shows the file and line where it found each fact, says so when the notes are silent, and asks before it remembers anything. It runs on an ordinary laptop with a free model, so your notes never leave your computer. Every line of it was run and tested for this lesson, and the results you see are the real ones. 39 min
  8. Part 84 lessons169 min

    Beyond text

    Models that see, draw, make video, listen, speak and control robots.

    1. Vision: how a model sees a pictureShow a model a photo of a medicine box, a maths problem or a street sign, and it can read it and explain it. This lesson opens the box. You will see how a picture becomes tokens, how an “eye” is joined to a language model, why one photo can cost as much room as a short book chapter, how well today’s models read scripts such as Urdu, Pashto and Arabic, and where they still fail in ways a child would not. At the end you send a picture to a model on your own computer. 38 min
    2. Making pictures and videoType “a girl reading under a mango tree at sunset” and a few seconds later a picture appears that never existed. Stretch the same idea through time and you get video. This lesson shows how it works: models that start from pure noise and wipe it away step by step, the tricks that make them fast enough for a home computer, why five seconds of video costs so much more than one picture, when these models copy and when they create, why most of them still write badly in scripts other than Latin and Chinese, and how to use them honestly. 45 min
    3. Speech and sound: models that listen and talkA grandmother who never learned to read sends a voice message, and her phone writes it down. A farmer asks a question out loud in Hausa and hears the answer. For billions of people, speaking is the natural way to use AI, not typing. This lesson shows how a model hears: how sound becomes numbers and then tokens, how speech recognition works and how well it does in Urdu, Punjabi and Pashto, how machines speak and copy voices, and how a model can hold a conversation without awkward pauses. You will run speech recognition on your own computer and test how it breaks. You will also see the dangers: invented words in transcripts, and cloned voices in scam calls. 45 min
    4. Robots and world models: AI that acts in the real worldIn April 2026 a humanoid robot ran a half marathon in Beijing faster than any human ever has. Yet turning a sock inside out, which a child does in seconds, took one of the best robot models about eight hours of recorded examples to learn. Moving a body is a different problem from writing text: the robot must see, decide and act many times a second, every mistake changes what it sees next, and there is no internet full of examples to learn from. This lesson shows how robots learn from people, from simulations and from video; how models that write text became models that move arms; why small errors pile up; and how world models let a machine imagine what happens next before it acts. It ends with where robots really are in 2026, what keeps them safe, and how to start with a 100-dollar arm or no robot at all. 41 min
  9. Part 95 lessons191 min

    The frontier

    Measuring models, reading research papers, a guided tour of DeepSeek’s work, AI in your language, and where to go next.

    1. Evals: how we know what a model can really doIn February 2026, OpenAI stopped reporting scores on SWE-bench Verified, a famous coding test it had helped to build. When it audited the hardest problems, most had tests that rejected correct fixes, and every top model it checked could recite some of the original fixes from memory. In October 2026, on another famous test, the second, third and fourth best models scored 46.50, 46.44 and 46.12 %: a three-way tie, once you look at the error bars printed beside them. Scores about AI are everywhere, in papers, news and adverts. This lesson teaches you to read them like a scientist: how sure a score is, how tests get used up and leak into training data, how people and models act as judges, how agents and long tasks are measured, why every language needs its own tests, and how to build a small, honest test of your own. 41 min
    2. Reading research papers: from the abstract to the equationsEvery idea in this course reached the world first as a research paper. In September 2026 alone, arXiv, the free archive where most AI papers first appear, received 40,363 new papers across all its fields, twice as many as two years before, and from October it allowed each person to submit only two new papers a month. Nobody can read them all, and nobody needs to. Papers follow a pattern, and once you know it you can get the main idea of most of them in an hour, decide which deserve more time, and check whether their claims hold up. This lesson teaches that pattern, the symbols, how to read a results table, how to turn an equation from a DeepSeek paper into a program that runs, and how to check a claim, so that in the next lesson you can read DeepSeek’s own papers. 37 min
    3. A tour of DeepSeek’s papers: one lab’s ideas, in orderFrom January 2024 to September 2026, DeepSeek, a lab in Hangzhou, China, published a paper for almost every model it released, more than a dozen in all, free on arXiv, with the weights free to download. Read in order, they show one team learning the standard recipe and then replacing it piece by piece: attention that needs 437 times less memory per token, experts balanced without an extra loss, training in 8-bit and then 4-bit numbers, and reasoning learned from rewards. Other labs now use several of those pieces. This lesson is a guided tour, stop by stop. At each stop you will see what to read first, what the key table shows, and one claim to check with the tools of the last two lessons. 44 min
    4. AI in your language: why it lags, and what you can doAsk a model the same question in English and in Urdu, and you are not getting the same service. The Urdu answer costs more, arrives more slowly, knows less, and is checked less carefully for harm. None of this is because Urdu is harder. It is because of how much Urdu text exists online, and who builds the models. In this lesson you will measure the gap yourself, in pages, in tokens, in quality and in safety, for the languages of this course. Then you will learn how to choose and test a model for your language, which groups are building models for these languages, and how the speakers of a language can close the gap. 40 min
    5. Next steps: from this course to real expertiseWhen this course began, a vector was just a list of numbers. Now you can follow how DeepSeek-V4 keeps a million tokens in memory, test a model in your own language, and build an agent of your own. That is a real foundation. Expertise is what you build on it: projects you finish, papers you read every week, and problems you work on yourself. This last lesson shows how to keep going on your own, for free: what to review, what to build, where to find free teachers and free computers, how to follow the field without being fooled, which problems are still open, and how to use what you know well. 29 min

Use it without internet

Save the whole course on this device, so every lesson opens even with no signal. It uses about 4 MB of space.

Tip: add this site to your home screen to open it like an app.

Choose your language