
Learn to build a custom ai tiny llm from scratch in PyTorch using your own data, including a word-level tokenizer, transformer architecture, attention-based text generation, and a cpu-powered chatbot.
Learn to set up your data science environment with Anaconda, run Jupyter Lab or notebook locally, and write Python programs in an interactive notebook.
Create tensors in PyTorch using constructors from data, random values, zeros, and ones, and inspect shape and dtype. Perform addition, matrix multiplication, and element-wise operations, with reshaping using view.
Tensor Jupyter Notebook is attached as resource. You can import the file in your Jupyter notebook.
Explore autograd in PyTorch, tracking gradients with a computation graph and using backward to compute dy/dx for learning weights in simple examples like x^3 and w x + b.
Learn the fundamentals of tokenization, including word level tokenization, vocabulary mapping, and encode-decode processes. Discover how to compare tokenization levels and build a word level tokenizer for a tiny LLM.
Build a simple word-level tokenizer from scratch in Python, converting text into tokens, creating vocabulary, and encoding and decoding sequences for a tiny LLM.
Have you ever wondered how ChatGPT, BERT, or other powerful language models actually work? What if you could build your own Tiny Language Model (LLM) from scratch — without using any pre-trained weights, cloud GPUs, or giant datasets?
In this hands-on course, you will learn how to build a complete AI chatbot powered by a transformer-based language model using PyTorch, all from scratch and on your local machine. This course is designed for anyone who wants to truly understand how LLMs work — from data tokenization to training and inference.
You will begin with fundamentals of PyTorch, then build your own TinyGPT model (a simplified GPT-style transformer). You'll create your own word-level tokenizer, design a training dataset, implement a custom transformer model, train it on CPU, and finally deploy it as an interactive chatbot via CLI and (optionally) a browser UI.
This is not just about running code — you’ll understand the core concepts behind transformers, embeddings, attention, sampling, and text generation, empowering you to build your own AI applications in the future.
By the end of this course, you will have built a real, working AI chatbot powered entirely by your own model — and you’ll truly understand how it works.
Course features:
Beginner-friendly
Hands-on coding
Real-world project
Pure CPU-based
What Learners Will Build
A tiny LLM (language model)
Custom tokenizer (word-level)
PyTorch model architecture
Training and inference pipeline
Interactive chatbot (terminal + web)
Full understanding of attention, generation, and sampling
The confidence to build their own domain-specific chatbot