Enterprise SLM from Scratch: Build, Pre-train, Fine-tune and Deploy

Dr. Sreedath Panat

Vizuara Co-founder | MIT PhD, IIT Madras

Dr. Raj Dandekar

Vizuara Co-founder | MIT PhD, IIT Madras

+ Dr. Rajat Dandekar

Go from raw text to your own deployed SLM in 8 live lectures

If you have built features on top of LLM APIs but still can't answer questions like these:

Can I train a useful model on my company's data for under $50?

Why does my fine-tuned model ignore the context I retrieve for it?

Why is generation slow, and what do the KV cache and quantization actually fix?

How do I run a model fully offline on a laptop or a phone?

...then this course is for you.

Across 8 live lectures you build an enterprise small language model end to end: curate a domain corpus, train your own tokenizer, pretrain a 125M-parameter transformer, fine-tune and align it with SFT, LoRA, QLoRA and DPO, ground it with RAG and RAFT, make it fast with quantization and vLLM, and deploy it to the cloud, a laptop and an offline phone.

Compute is not included in the fee. We show you how to rent cloud GPUs on Modal, share our trained checkpoints, and keep fine-tuning under $20 to $30.

Taught by Dr. Sreedath Panat (MIT PhD), with Dr. Raj Dandekar (MIT PhD) and Dr. Rajat Dandekar (Purdue PhD): all IIT Madras alumni, Vizuara co-founders and co-authors of Manning's Build a DeepSeek Model (From Scratch). See what learners say: reviews.vizuara.ai

What you’ll learn

Pretrain, fine-tune, align, evaluate and deploy your own small language model, and understand every decision along the way.

  • Build a cleaned, deduplicated corpus and train your own BPE tokenizer

  • Implement a GPT-style decoder and reason about every parameter and tensor shape

  • Run a real pretraining job on cloud GPUs and learn to read the loss curve, with our trained checkpoints as your fallback

  • Generate high-quality QA and instruction data from your own documents

  • Run full SFT on 125M and 518M models, and QLoRA on Gemma-2-2B

  • See exactly what model size, data and fine-tuning each contribute to answer quality

  • Understand RLHF, reward models and the KL penalty without hand-waving

  • Use an AI judge to create preference data at a fraction of the cost of human labels

  • Compare RLAIF and DPO branches trained from the same SFT checkpoint

  • Build a retrieval pipeline and learn why small models struggle with raw retrieved context

  • Use retrieval-augmented fine-tuning so the model actually uses the context it is given

  • Build an eval harness with an LLM judge and measure real improvement across every model variant

  • Understand the KV cache, prefill vs decode, and why decoding is memory bound

  • Quantize with GPTQ, AWQ and GGUF and measure exactly what quality you trade away

  • Serve with vLLM, continuous batching and speculative decoding, and benchmark the difference

  • Deploy an OpenAI-compatible endpoint and choose between serverless and always-on GPUs

  • Run your model fully offline on a laptop and a phone, with local RAG

  • Leave with your weights on Hugging Face and a working app you can demo to your team

Learn directly from expert instructors

Dr. Sreedath Panat

Dr. Sreedath Panat

Lead instructor. Trains and deploys small language models end to end

MIT PhD · Manning co-author
MIT
Manning Publications
Dr. Raj Dandekar

Dr. Raj Dandekar

Teaches Vizuara's Build LLMs from Scratch series on YouTube

Education & research
MIT
Dr. Rajat Dandekar

Dr. Rajat Dandekar

Co-author of Manning's Build a DeepSeek Model (From Scratch)

Education & research
Purdue University
See all products from Rajat

Who this course is for

  • ML and software engineers who have called LLM APIs and now want to build every layer of a model themselves.

  • Enterprise teams in finance, healthcare, legal and SaaS who need a private model on their own data and hardware.

  • Researchers and students who want real, hands-on experience with pretraining, alignment and inference engineering.

Prerequisites

  • A working understanding of transformers

    Know what tokens, attention and next-token generation are at a conceptual level. Lecture 1 rebuilds the transformer from scratch, so you do not need to have implemented one.

  • Comfort running code in a terminal or notebook

    You run and modify training scripts in every lecture. You do not need to be a strong Python coder: most students drive the code with a coding agent such as Claude Code or Codex, and our replication guides are written for that.

  • A laptop and a cloud GPU account (no local GPU needed)

    Compute is not included in the course fee. We show you how to rent cloud GPUs on platforms such as Modal. Pretraining cost varies, and we share our trained checkpoints; fine-tuning typically costs under $20 to $30.

What's included

Live sessions

Learn directly from your instructors in a real-time, interactive format.

Lifetime access

Go back to course content and recordings whenever you need to.

Community of peers

Stay accountable and share insights with like-minded professionals.

Certificate of completion

Share your new skills with your employer or on LinkedIn.

Reference models and weights

Access to 21 pretrained and fine-tuned reference models (125M, 518M and Gemma-2-2B) on Hugging Face, so you can compare your results at every stage.

Interactive teaching websites

Interactive visual explainers for tokenization, RoPE, KV cache, LoRA, quantization, batching, speculative decoding and more, all built around the course models.

Code, replication guides and Discord support

Step-by-step replication guides you can hand to your coding agent, reference code for every stage, and a Discord community for questions between sessions.

Maven Guarantee

Your purchase is backed by the Maven Guarantee.

Course syllabus

Week 1

Jan 4—Jan 10

    Jan

    3

    Lecture 1: Transformer internals and the case for SLMs

    Sun 1/39:00 PM—11:00 PM (EST)

    Jan

    5

    Lecture 2: Data curation and your own tokenizer

    Tue 1/59:00 PM—11:00 PM (EST)

Week 2

Jan 11—Jan 17

    Jan

    10

    Lecture 3: Pretraining a 125M model from scratch

    Sun 1/109:00 PM—11:00 PM (EST)

    Jan

    12

    Lecture 4: Fine-tuning with SFT, LoRA and QLoRA

    Tue 1/129:00 PM—11:00 PM (EST)

Testimonials

  • This course took me from zero to actually pretraining a 125M-parameter language model from scratch and fine-tuning it end to end... The most valuable part was learning the difference between closed-book and grounded (RAFT) fine-tuning, and seeing firsthand why grounding is what makes a small model genuinely useful... I came away with a real, portfolio-worthy project rather than just notes.

    Testimonial author image

    Sharath Kumar

    Bounteous · Vizuara SLM bootcamp alum
  • Huge credit to Sreedath Panat - rare combo of research-grade depth + crystal-clear teaching. The long-form, “code-along like a real class” style made the ideas stick.

    Testimonial author image

    Sri Aditya Deevi

    Scientist, Indian Space Research Organisation (ISRO)
  • I am especially grateful to the trainer, Dr. Sreedath Panat, for his exceptional teaching style. He put in extraordinary effort to ensure every concept was clearly explained, often going beyond the planned syllabus and adding additional sessions to provide completeness and clarity.

    Testimonial author image

    Vishnu Gillella

    Senior Software Engineer
  • One of the biggest highlights for me was going from just reading about transformers to actually implementing them from scratch. That hands-on process gave me insights I could never get from theory alone. The course didn't just show what works, it explained why it works.

    Testimonial author image

    Koti Reddy

    R&D Engineer, Staff Engineer at Synopsys
  • I've always appreciated Sreedath's teaching style, he has a great ability to break down complex concepts into simple, easy to understand explanations. The hands on coding sessions that followed the theory were particularly helpful in strengthening my understanding and applying the concepts practically.

    Testimonial author image

    Lalatendu Sahu

    Lead AI Engineer at TheMathCompany

Why small language models, and why now

Your data stays inside your network. Many enterprises will not send proprietary data to a closed model provider. In a16z's 2024 enterprise survey, over a quarter of respondents already host their own model, and control of proprietary data ranked above cost.

Fine-tuned small models close the gap. Nearly 60% of the AI leaders a16z interviewed said they would use more open models once fine-tuned ones roughly match closed ones. One company found fine-tuned Mistral and Llama almost as good as OpenAI, at much lower cost.

The split is moving. a16z estimates enterprise usage was about 80% closed and 20% open in 2023, and some enterprises now target an even split.

Builders are betting on small. "My bet is that we'll see models that 'think' very well and reliably that are very very small." Andrej Karpathy, 2024

What changes when the model runs on hardware you control

The 8 lectures, and what you keep from each

One model you trained, running in four places

Hear it from a quant researcher at JP Morgan

Aman Kesarwani, quantitative researcher at JP Morgan, New York

And from an engineer at Navy Federal Credit Union

Kiran Bandhakavi, Navy Federal Credit Union

Watch Sreedath code a small language model from scratch

A full lecture: a GPT-style SLM built live from an empty Colab notebook

And build LoRA from a grid of numbers up

What rank really means, and why LoRA makes fine-tuning affordable

Courses our team has taught

Before this course, Sreedath, Raj and Rajat built and taught live cohorts on:

  • Generative AI Fundamentals

  • Machine Learning and Deep Learning Mastery

  • Build LLMs from Scratch

  • AI Agents Bootcamp

  • Transformers for Vision and Multimodal LLMs

  • Hands-on Computer Vision Bootcamp

  • 5D Parallelism

  • Production-grade RAG

  • Scientific Machine Learning

  • Inference Engineering

  • vLLM and SGLang Engineering

  • Build a Mini ClawdBot from Scratch

  • VLA and World Models for Robotics

  • AI Context Engineering

  • NLP and Computer Vision Mastery

  • Hands-on Reinforcement Learning

  • Mathematical Foundations for ML

  • Modern Robot Learning from Scratch

  • Kernel Engineering

  • Neural Network from Scratch

Frequently asked questions

Maven for Teams

Reimbursement

Get your company to pay

Everything L&D needs: email template, receipts, and certificate of completion.

Get reimbursed

Team discount

Learn with your teammates

Save 20%+ when 2 or more teammates enroll in the same cohort.

Save 20%+ with a team

Private cohort

Run a cohort for your org

A dedicated cohort with a custom schedule and curriculum, tailored to your team.

Book a private cohort

$1,500

USD

Jan 3—Jan 26
Enroll