Tag

#Tutorial

Every article tagged Tutorial, in one place.

  • 37 articles
  • 146 min of reading
  • 02 Dec, 2026 last updated

Showing 37 articles

PyTorchNew 4 min read

Broadcasting in PyTorch With Clear Rules

Broadcasting is how PyTorch performs element-wise operations on tensors of different shapes without copying data. The smaller tensor is virtually stretched to match the larger one. It is powerful and compact, but it can also hide bugs, so you need to know the...

08 Nov, 2026 Jai Singh 16 0
Read article
Model Context Protocol 4 min read

Build Your First MCP Server in Python with FastMCP

The official MCP Python SDK includes a high-level class called FastMCP that turns ordinary Python functions into MCP tools with a decorator. In this tutorial you will install the SDK, write a small server with two tools, run it and test it with the MCP Inspect...

03 Nov, 2026 Jai Singh 23 0
Read article
PyTorch 4 min read

Indexing and Slicing PyTorch Tensors

PyTorch tensors support the same indexing syntax as NumPy: integers pick a position, slices pick a range, boolean masks pick elements that satisfy a condition, and lists or tensors of integers pick arbitrary positions. Mastering these lets you pull out batches...

31 Oct, 2026 Jai Singh 38 0
Read article
PyTorch 4 min read

PyTorch Tensors: Creating Them Five Ways

A tensor is PyTorch's n-dimensional array: a scalar is 0-D, a vector 1-D, a matrix 2-D, and a batch of images is usually 4-D. You can create tensors from existing Python data, filled with constants, with random numbers, from numeric ranges, or by copying the s...

23 Oct, 2026 Jai Singh 31 0
Read article
LLM APIs & Prompting 3 min read

Your First Claude API Call in Python

To call Claude from Python, install the anthropic package, put your API key in the ANTHROPIC_API_KEY environment variable, and call client.messages.create() with a model, a token limit and a list of messages. This post takes you from an empty folder to a worki...

18 Oct, 2026 Jai Singh 38 0
Read article
LLM APIs & Prompting 4 min read

What Is an LLM API and How Do You Call One?

An LLM API is a web service that accepts text (and sometimes images or files) and returns text generated by a large language model. You send an HTTPS request with your prompt, the provider runs the model on its own servers, and you receive the model's answer i...

18 Oct, 2026 Jai Singh 27 0
Read article