LLM Temperature, Top-P, and Top-K Explained, With Python Simulations
Build temperature, top-p, top-k, and min-p sampling from scratch in Python. Interactive code, probability visuals, and a per-task cheat sheet.
23 tutorials tagged LLM on Machine Learning Plus, newest first. Most of them belong to the Gen AI category.
Build temperature, top-p, top-k, and min-p sampling from scratch in Python. Interactive code, probability visuals, and a per-task cheat sheet.
Learn to use the OpenAI API in Python. Master chat completions, streaming responses, error handling, retries, and async calls with runnable examples.
Build a working BPE tokenizer in Python step by step. Learn how LLMs split text into tokens, implement byte pair encoding, and count tokens with...
Build a text classifier that hits 90%+ accuracy using only prompt engineering. Learn zero-shot, one-shot, and few-shot prompting with hands-on Python...
Learn LLM structured output in Python with 3 methods: OpenAI JSON schema, Claude tool extraction, and Instructor. Build a type-safe invoice parser...
Master prompt engineering basics with Python. Learn the Role-Task-Format framework, zero-shot prompting, and build a testing harness that measures...
Learn OpenAI function calling in Python with 3 working tools. Build the tool-use loop, handle parallel calls, and design schemas using raw HTTP...
Master the OpenAI API in Python with raw HTTP requests. Learn chat completions, streaming, parameters, error handling, retries, and cost tracking...
Master LLM temperature, top-k, and top-p with interactive Python simulations. Runnable code, exercises, and a sampling playground to build real...
Master Hugging Face inference in 20 minutes. Run LLMs locally with Pipeline API or serverless via HTTP, with Python examples you can copy and run.
Learn how LLM context windows work, count tokens with tiktoken, estimate API costs, and build a Python token budget manager that allocates context...
Build a working BPE tokenizer in Python, learn how text becomes tokens, and use tiktoken to count tokens and estimate LLM API costs across providers.
Apply prompt engineering fundamentals, zero-shot, few-shot, chain-of-thought, and structured output, to get consistent, reliable results from any LLM.
Add real-time streaming to your LangGraph agents, pick the right stream mode, show tokens as they arrive, and build chat UIs that feel instant.
Learn to build a ReAct agent from scratch in LangGraph with this hands-on guide, wire the think-act-observe loop, add tools, and debug agent cycles.
Build a multi-agent research pipeline in LangGraph with planner, researcher, writer, and reviewer agents that turn any topic into a polished report.
Build a full-stack AI app from scratch with FastAPI and LangGraph, streaming responses, saved chats, API key auth, and a live chat frontend in one...
Deploy LangGraph agents as scalable APIs with LangGraph Server, step-by-step guide covering SDK setup, streaming, background runs, and cloud hosting.
Save and resume LangGraph agent state with checkpointers so your conversations survive crashes, restarts, and long breaks between sessions.
Build multi-agent AI systems in LangGraph using supervisor, swarm, and network patterns, with full code for each and a guide to choosing the right...
Step-by-step guide to building a LangGraph agent that writes Python code, runs it safely, checks the output, and self-corrects until it works.
Start using the OpenAI API Python SDK today. Build your first LLM-powered app with runnable code for chat completions, streaming, and token...
Learn how LLMs work step by step. Build an inference simulator in Python, tokenize, embed, compute attention, sample, and decode with runnable code...