llm

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

LLM and GenAI Interview Questions: 40-Question Checkpoint

GenAI screens do not chase whichever model launched last week; they recycle a fixed set of durable ideas in slightly different words. The LLM interview questions in this checkpoint cover that set, forty in all, grouped the way real screens group them, each with a short spoken-style answer, runnable code for the numbers people fumble, and a link to the deep-dive post that teaches it in full. Then you score yourself, get a revisit list built from exactly what you ... Read More

LLM Serving: Ollama Locally, vLLM in Production

Renting tokens from an API is easy; the bill and the data both leave the building. LLM serving is the craft of running an open Large Language Model yourself, fast enough for real users, and this post walks both ends of it with tested Python: Ollama on your laptop for development, vLLM in production, plus the KV-cache math that decides how many users one Graphics Processing Unit (GPU) can actually hold. “The cheapest, fastest, and most reliable components are those ... Read More

Model Context Protocol (MCP): Connect Your AI to Anything

The Model Context Protocol is a single, open way for an AI app to talk to outside tools, files, and data, so you stop writing custom glue for every new integration. Think of it like the USB port on your laptop. Before USB, every device had its own weird plug. After USB, one shape fits the mouse, the drive, the keyboard. MCP does the same thing for AI: one protocol, and any tool that speaks it plugs straight in. You ... Read More