llm

Articles about large language models: how they work and how to use them from Python.

How LLMs Are Trained: Pretraining, SFT, and RLHF Explained

A large language model is never sat down and taught facts. It learns by predicting the next token across a mountain of text, then gets reshaped twice more until it behaves like the assistant you talk to. That is how LLMs are trained: pretraining, supervised fine-tuning, and preference tuning. This post walks all three stages in plain words, with small Python you can run yourself. “The computer was born to solve problems that did not exist before.” Bill Gates Last ... Read More

How to Choose Hardware for AI: Laptop, Colab, or Cloud GPU

The honest answer to what hardware for AI you need is the laptop already in front of you. That one line saves most beginners a few hundred dollars. Instead of arguing which chip is fastest, this guide matches each kind of AI work to the cheapest option that finishes it: your own CPU, free Colab, a rented cloud GPU, or an API and no hardware at all. “By far, the greatest danger of Artificial Intelligence is that people conclude too ... Read More

What is Artificial Intelligence? AI, ML, and GenAI Explained

You almost certainly used artificial intelligence before breakfast today. When your phone unlocked by recognising your face, when your email quietly slid a junk message into the spam folder, when your maps app rerouted you around a jam, that was AI at work. So what is artificial intelligence once you set the sci-fi robots aside? It comes down to one down-to-earth idea: a computer handling a job we used to believe only a human mind could do. That is the ... Read More