Learn Python - Free Tutorials & AI Guides

Free Python Tutorials, AI Guides & Coding Projects

AI Inference
USearch Architecture: A Source Tour of Unum's Single-Header Vector Search Engine

USearch Architecture: A Source Tour of Unum's Single-Header Vector Search Engine

Most vector databases you encounter are services: a server process, a network protocol, a deployment story. USearch from Unum-cloud takes the opposite path. It is a single-file C++11 header — include/usearch/index.hpp — that implements a multi-layer proximity graph for approximate...

AI Inference
pgvector Source Tour: How Vector Search Lives Inside Postgres

pgvector Source Tour: How Vector Search Lives Inside Postgres

Every retrieval-augmented application eventually faces the same storage question: where do the embeddings live? Many teams end up syncing a vector file with a relational database, and paying for two systems that drift apart. pgvector takes the opposite approach: it...

AI Inference
OpenAI Evals: A Source Tour of the LLM Evaluation Framework

OpenAI Evals: A Source Tour of the LLM Evaluation Framework

Every serious LLM project eventually hits the same wall: you changed one word in a prompt, or swapped one model checkpoint for another, and you have no idea whether the output got better or worse. OpenAI’s answer is evals, the...

AI Inference
Inside LM Evaluation Harness: How EleutherAI Turns a Model and a YAML File into a Benchmark Score

Inside LM Evaluation Harness: How EleutherAI Turns a Model and a YAML File in...

Every benchmark leaderboard you have seen — MMLU, HellaSwag, GSM8K — is computed by software that has to make hundreds of small, boring decisions correctly: how the prompt is assembled, how many few-shot examples are drawn and from which split,...

AI Inference
LlamaIndex Source Tour: How the Data Framework for LLM Apps Is Assembled

LlamaIndex Source Tour: How the Data Framework for LLM Apps Is Assembled

Ask a room of Python developers how they wire private documents into large language models, and sooner or later the answer will be LlamaIndex. The run-llama/llama_index repository is the home of that framework: a data layer that connects files, APIs,...

AI Inference
Instructor Source Tour: How the Structured-Outputs Library Turns LLM JSON Into Pydantic Models

Instructor Source Tour: How the Structured-Outputs Library Turns LLM JSON Int...

If you have ever extracted structured data from an LLM, you have probably met Instructor: define a Pydantic model, hand it to client.chat.completions.create(response_model=...), and get back a validated, typed object instead of a string of JSON you have to scrape...

AI Inference
Coqui TTS Anatomy: the Zoo Facade, the Wrappers, the Vocoder Shelf - Inside coqui-ai/TTS

Coqui TTS Anatomy: the Zoo Facade, the Wrappers, the Vocoder Shelf - Inside c...

Text-to-speech is the rare field where the whole lineage of a decade still runs side by side: attention-based seq2seq models from 2017, flow-based generators from 2020, adversarial end-to-end systems, and the GPT-style voice cloners of the streaming era. The Coqui...

AI Inference
Polars Under the Hood: How a Rust DataFrame Engine Rebuilt Python Data Work

Polars Under the Hood: How a Rust DataFrame Engine Rebuilt Python Data Work

Every Python developer eventually hits the same wall: a table too big for memory, a join that takes twenty minutes, a group-by that spills into swap. The usual answer has been to rent a bigger machine or to retreat into...

AI Inference
OpenCV Source Tour: From the Mat Container to the DNN Engine Inside the World's Default Vision Library

OpenCV Source Tour: From the Mat Container to the DNN Engine Inside the World...

OpenCV is the library that every other computer vision tool gets compared to. Twenty-plus years in, it is the default import in tutorials, the runtime under countless factory robots and security cameras, and the compatibility target that newer frameworks measure...

AI Inference
Numba, From @jit to Machine Code: A Source Tour of the LLVM-Based JIT Compiler for Python

Numba, From @jit to Machine Code: A Source Tour of the LLVM-Based JIT Compile...

Numba occupies a unique spot in the Python performance world: it is a compiler that ships as a pip package. You put a decorator on a plain Python function, call the function once, and by the time that call returns,...

AI Inference
DuckDB: An In-Process Analytical SQL Engine, From SQL Text to Row Groups

DuckDB: An In-Process Analytical SQL Engine, From SQL Text to Row Groups

Most people meet DuckDB as a magic one-liner: pip install duckdb, then SQL that crunches hundreds of millions of rows inside the same Python process that would otherwise have churned through pandas loops. There is no server, no socket, no...

AI Inference
Demucs: An End-to-End Source Tour of Meta's Music Source-Separation Model

Demucs: An End-to-End Source Tour of Meta's Music Source-Separation Model

Music source separation is the task of taking one mixed recording and pulling it apart into its ingredients: drums, bass, the rest of the instruments, and the vocal. It sounds like an audio party trick, but it is a genuinely...

AI Inference
Dask Source Tour: Task Graphs, Expressions, and the Scheduler Loop

Dask Source Tour: Task Graphs, Expressions, and the Scheduler Loop

Dask has become the default answer to a very common moment in a data scientist’s life: the moment your pandas DataFrame no longer fits in RAM, or your numpy array of features outgrows a single machine. Instead of asking you...

AI Inference
BasicSR: Reading the Config-Driven Restoration Framework End to End

BasicSR: Reading the Config-Driven Restoration Framework End to End

If you have ever downloaded a Real-ESRGAN checkpoint and wondered what actually produced it, the answer is BasicSR. The repository, maintained by the XPixelGroup, is an open source PyTorch toolkit for image and video restoration — super resolution, denoising, deblurring,...

AI Inference
AudioCraft Source Tour: How Meta's MusicGen, AudioGen and EnCodec Fit Together

AudioCraft Source Tour: How Meta's MusicGen, AudioGen and EnCodec Fit Together

Meta’s AudioCraft is the library behind MusicGen and AudioGen, and it is one of the most instructive generative-audio codebases you can read. It commits to one architectural idea: treat audio generation as language modeling over discrete tokens produced by a...

AI Inference
Apache Arrow: A Source Tour of the Columnar Memory Format That Moves Your Data

Apache Arrow: A Source Tour of the Columnar Memory Format That Moves Your Data

Most machine learning stacks never admit how much time they spend converting data. NumPy wants one layout, pandas wants another, your trainer wants tensors, and the Parquet file on disk wants a third. Every conversion is a memcpy nobody budgeted...

AI Inference
XGBoost Source Tour: Inside the Gradient-Boosted-Tree Engine

XGBoost Source Tour: Inside the Gradient-Boosted-Tree Engine

XGBoost has been the default answer for tabular machine learning for the better part of a decade, and unlike many tools that survive by inertia, its source code is still worth reading in 2026. The repository is really two programs...

AI Inference
sherpa-onnx: Streaming Speech Recognition, TTS and VAD on onnxruntime

sherpa-onnx: Streaming Speech Recognition, TTS and VAD on onnxruntime

Most speech toolkits make you choose: a research framework that is flexible but heavy, or an embedded library that is fast but frozen. sherpa-onnx, from the k2-fsa team, is a deliberate third option. It is a C++ library — no...

AI Inference
Qwen3: A Source Tour of the Evaluation, Demo, and Benchmark Code

Qwen3: A Source Tour of the Evaluation, Demo, and Benchmark Code

When the Qwen team released the Qwen3 family — dense models from 0.6B to 32B plus the MoE siblings 30B-A3B and 235B-A22B, later refreshed as the Instruct-2507 and Thinking-2507 variants with 256K context extendable to a million tokens — the...

AI Inference
pandas Under the Hood: The DataFrame Engine from Python API to Cython Kernels

pandas Under the Hood: The DataFrame Engine from Python API to Cython Kernels

pandas is the quiet substrate of half the data work done in Python. Every notebook that starts with import pandas as pd, every PyTorch preprocessing script that glances at a CSV, every feature table fed into scikit-learn passes through one...

AI Inference
NumPy Source Tour: Inside the n-Dimensional Array Engine

NumPy Source Tour: Inside the n-Dimensional Array Engine

Every tensor in PyTorch, every DataFrame in pandas, every embedding matrix that flows through a transformer — almost all of it is, at the bottom, an ndarray with a small header and a flat buffer of bytes. NumPy is twenty...

AI Inference
Inside the MCP Python SDK: Sessions, Transports, and the Machinery Under Every MCP Server

Inside the MCP Python SDK: Sessions, Transports, and the Machinery Under Ever...

Every MCP server you have ever pointed an agent at is, underneath the marketing, a JSON-RPC peer. The Model Context Protocol defines the methods, the notification etiquette, and the capability negotiation; the Python SDK in the modelcontextprotocol/python-sdk repository is the...

AI Inference
Llama Stack Is Now OGX: A Source Tour of Meta's Agentic API Server

Llama Stack Is Now OGX: A Source Tour of Meta's Agentic API Server

If you have been following the LLM serving ecosystem for the last couple of years, you have almost certainly bumped into Llama Stack, Meta’s batteries-included attempt to standardize how applications talk to Llama models: one server, one set of provider...

AI Inference
LightGBM Source Tour: The Gradient-Boosting Engine, End to End

LightGBM Source Tour: The Gradient-Boosting Engine, End to End

Most people meet LightGBM as three lines of scikit-learn code: import, fit, predict. Under that calm surface sits a machine written almost entirely in C++ — a binning system that compresses your features, a histogram engine that counts gradients per...

Watch PyShine on YouTube