Build SLM from Scratch Workshop [PRO] thumbnail 1
Build SLM from Scratch Workshop [PRO] thumbnail 2
Build SLM from Scratch Workshop [PRO]

Build SLM from Scratch Workshop [PRO]

Master the development of Small Language Models (SLMs) from the ground up, covering architecture, training pipelines, and domain-specific fine-tuning.

View course on Vizuara
InstructorVizuara Expert Team
FormatHands-on Workshop
Sessions4 Modules
AudienceIntermediate to Advanced AI Developers
Course Description

This comprehensive workshop guides learners through the end-to-end process of building Small Language Models (SLMs).

Move beyond large-scale models to understand the mechanics of parameter-efficient AI, dataset preparation, and custom architecture design.

Learning Outcomes

By the end of this course, you will be able to:

Prerequisites
Course Sessions
Module 1
01

Foundations & Dataset Preparation

Introduction to SLM concepts and the initial steps of data ingestion and tokenization.

Focuses on setting up the environment and preparing data for efficient computation.

Core Topics

  • SLM vs LLM overview
  • Dataset import (TinyStories)
  • Tokenization with tiktoken
  • Disk-based storage for tokenIDs

Hands-On Resources

Lecture VideoColab Notebook
Module 2
02

Architecture & Model Assembly

Deep dive into the structural components of SLMs, including processor and output blocks.

Practical implementation of model layers and attention mechanisms.

Core Topics

  • Causal Self-Attention
  • Layer Normalization
  • Defining model architecture
  • Loss function estimation

Hands-On Resources

Lecture VideoColab Notebook
Module 3
03

Training Pipelines & Parameter Tuning

Establishing the training loop and refining model performance through strategic parameter tuning.

Focuses on training stability, learning rate scheduling, and gradient accumulation.

Core Topics

  • Training configuration
  • AdamW optimizer setup
  • Linear warmup and Cosine decay
  • Pre-training loops

Hands-On Resources

Lecture VideoColab Notebook
Module 4
04

Advanced Replication & Inference

Finalizing the pipeline by replicating established models and running inference on custom data.

Covers domain-specific fine-tuning and model evaluation.

Core Topics

  • Replicating GPT-2/BioGPT
  • Domain-specific fine-tuning
  • Inference pipeline
  • Loss visualization

Hands-On Resources

Lecture VideoColab NotebookProject
Assessments

SLM Architecture Implementation

Successfully assemble a functional SLM architecture using PyTorch.

Training Pipeline Project

Train a custom model on the TinyStories dataset and visualize loss metrics.

Inference Challenge

Load a pre-trained model and generate coherent text based on custom input prompts.