Prepare and tokenise data for training a small language model.
This intensive 32-hour hands-on program equips participants with the practical skills required to design, train, and deploy Small Language Models (SLMs) from scratch using modern deep learning frameworks.
Prepare and tokenise data for training a small language model.
Explain architecture choices and train and evaluate a small model.
Deploy the model for an application and discuss its limitations.
Your practical and learning focus
Introduction to Small Language Models and Dataset Selection and Understanding
Explore the role of small language models (SLMs), Parameter size comparison: SLMs vs LLMs, and Why smaller models can still generate coherent text. Explore the complete SLM pipeline, Dataset → Tokenization → Training → Inference, and high-level architecture flow.
Explore this in the course plan
Data Preprocessing and Tokenization and creating Input–Output Training Batches
Explore Purpose of tokenization, GPT-2 subword tokenizer overview, and Converting text into token IDs. bin files, and Memory mapping and large-scale token handling.
Explore this in the course plan
SLM Training Setup and Running Inference with the Trained SLM
Explore Training configuration parameters, Optimizer and learning rate scheduling, and Gradient accumulation strategy. Explore Training loop workflow and Periodic evaluation.
Get the course outlineReview the syllabus and prerequisites
Your course learning plan
Modules 1–3 — Introduction to Small Language Models and Dataset Selection and Understanding
Explore the role of small language models (SLMs), Parameter size comparison: SLMs vs LLMs, and Why smaller models can still generate coherent text. Explore the complete SLM pipeline, Dataset → Tokenization → Training → Inference, and high-level architecture flow. Explore the TinyStories dataset, Dataset structure (training and validation splits), and Why synthetic datasets work for SLMs.
Modules 4–6 — Data Preprocessing and Tokenization and creating Input–Output Training Batches
Explore Purpose of tokenization, GPT-2 subword tokenizer overview, and Converting text into token IDs. Explore Why tokenized data is stored on disk, Binary storage using .bin files, and Memory mapping and large-scale token handling. Explore next-token prediction objective, Context window and block size, and input–output sequence shifting. Connect the stored tokens and shifted sequences to the examples presented during training.
Modules 7–9 — Transformer Architecture for SLMs and Loss Function and Training Objective
Explore Token embeddings and positional embeddings, Transformer blocks overview, and self-attention mechanism (Q, K, V). Model configuration parameters. Explore cross-entropy loss for language modeling, token-level loss aggregation, and Training vs inference behavior. The discussion covers Feedforward networks and residual connections. Relate the attention and feedforward components to the flow of information through a transformer block.
Modules 10–12 — SLM Training Setup and Running Inference with the Trained SLM
Explore Training configuration parameters, Optimizer and learning rate scheduling, and Gradient accumulation strategy. Explore Training loop workflow and Periodic evaluation. Explore Loading trained model weights, Token probability generation, and Sampling strategies. The discussion covers Mixed precision training. Connect the training configuration to the saved model and follow how sampling turns token probabilities into generated text.
The outline is organised by modules, topics or sessions rather than a confirmed daily timetable. These sections cover the published 4 days programme; confirm their day-by-day allocation with Timmins.
Discuss your role, experience and intended application with Timmins to confirm whether this programme is suitable.
Before you join
Working knowledge of Python
Basic understanding of Machine Learning concepts
Familiarity with Neural Networks
Introductory understanding of NLP concepts
Basic exposure to PyTorch (tensors, training loops)
Lab Setup Requirements
Hardware
Laptop or workstation with:
o Minimum 16 GB RAM (32 GB recommended)
Confirm the course fit for your role and experience. Agree software versions, account access, licences and any data permissions before joining.
Tools and learning support
Use the tools and platforms specified in this course’s outline. Confirm the versions, account tiers, licences, API or cloud access and any usage costs needed for your selected delivery. Review AI-generated results against the task and evidence; obtain permission before using company or personal data.
Ask which preparation materials, follow-up resources or trainer support are included in your selected delivery.
Certificate and assessment
Confirm the certificate, completion requirements and any assessed activities for your selected batch. A practical project does not by itself establish an assessed skills award.
Ask about another date or team delivery. Share your preferred timeframe, city or delivery mode and participant numbers. Timmins will discuss the options; dates, trainer availability, delivery and fees must be confirmed separately. Sending an enquiry does not reserve a place or confirm a class.
Your selected course is included in the draft. Review it and press Send in your messaging app.
Frequently asked questions
Who is this course designed for?
Share your role, experience and intended application with Timmins so we can confirm the fit against this course’s scope and prerequisites.
What starting knowledge do I need?
Working knowledge of Python Basic understanding of Machine Learning concepts Familiarity with Neural Networks Introductory understanding of NLP concepts Basic exposure to PyTorch (tensors, training loops) Lab Setup Requirements Hardware Laptop or workstation with: o Minimum 16 GB RAM (32 GB recommended)
Which AI tools and accounts will I need?
Check the full course outline for the named tools and platforms. Confirm software versions, account tiers, licences, API access, cloud resources and any usage costs with Timmins before booking. Requirements vary between courses.
How should I review AI-assisted work?
Check outputs against the task, source information and relevant technical or business requirements. AI-generated code, analysis and text require human review. Confirm which exercises, trainer feedback and any assessed activities are included in your selected delivery.
Can we use our own workplace examples?
Discuss your intended use cases with Timmins before sharing information. Agree the scope and use approved or sanitised examples where needed. Any team adaptation, assessment or follow-up support should be confirmed in the proposal.