Learn Python - Free Tutorials & AI Guides

Free Python Tutorials, AI Guides & Coding Projects

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...

AI Inference
Kornia Source Tour: Differentiable Computer Vision Built on PyTorch Tensors

Kornia Source Tour: Differentiable Computer Vision Built on PyTorch Tensors

Most computer vision code you meet in production is written against OpenCV, which means NumPy arrays, BGR channel order, and operations that quietly destroy gradients. Kornia takes the opposite bet: it re-implements the classic vision toolbox — color conversions, blurs,...

AI Inference
DeepSeek-V3 Source Tour: MLA, 256-Expert MoE, and FP8 Kernels in Plain PyTorch

DeepSeek-V3 Source Tour: MLA, 256-Expert MoE, and FP8 Kernels in Plain PyTorch

DeepSeek-V3 is a 671-billion-parameter Mixture-of-Experts language model that activates only 37 billion of those parameters per token. Trained on 14.8 trillion tokens with an FP8 mixed-precision recipe, it reached results comparable to the strongest closed models of its generation while...

AI Inference
Ultralytics Source Tour: One Codebase for Detect, Segment, Pose, OBB, and Classify

Ultralytics Source Tour: One Codebase for Detect, Segment, Pose, OBB, and Cla...

Ultralytics 8.x is the codebase behind YOLOv8, YOLOv9, YOLOv10, and YOLO11 — a single pip install ultralytics package that unified what used to be a family of separate YOLO releases. Instead of one repository per task, the 8.x reorganization folded...

AI Inference
TorchAO Source Tour: How PyTorch's Quantization Library Actually Works

TorchAO Source Tour: How PyTorch's Quantization Library Actually Works

If you have ever run a quantized LLM through plain PyTorch and wondered where the speed-up actually comes from, TorchAO is the answer hiding in plain sight. TorchAO (the torchao pip package, developed in the pytorch/ao repository) is PyTorch’s native...

AI Inference
Stable-Baselines3 Source Tour: How PyTorch Reinforcement Learning Is Wired

Stable-Baselines3 Source Tour: How PyTorch Reinforcement Learning Is Wired

Reinforcement learning has a reputation for being hard to implement correctly. Small details — how advantage estimates are normalized, when a target network copies weights, how entropy is folded into the objective — decide whether an agent learns or silently...

AI Inference
spaCy Source Tour: How the Industrial NLP Library Fits Together

spaCy Source Tour: How the Industrial NLP Library Fits Together

spaCy needs little introduction. It is the industrial-strength natural language processing library from Explosion, written in a deliberate mix of Python and Cython, and it has become the default choice when you need tokenization, part-of-speech tagging, dependency parsing, named entity...

Watch PyShine on YouTube