LLM Engineering - Foundations to SLMs

4.6 (15)

·

6 Weeks

·

Cohort-based Course

Master language models and embedding models through training, fine-tuning, aligning, distilling, and merging transformer architectures!

Course overview

Understand LLMs from first principles; build custom Small Language Models (SLMs)

🧑‍💻 Language Model Engineering refers to the evolving set of best practices for training, fine-tuning, and aligning LLMs to optimize their use and function to balance performance with efficiency.


These best practices have formed the basis for the LLMs, or Large Language Models (a.k.a. Foundation Models) and Small Language Models (SLMs) of today.


🤖 Whether you’re looking at OpenAI’s GPT series, Anthropic Claude, Grok, Google Gemini, Mistral, or any other model provider, the core underlying transformer architectures are similar, as are the training and tuning methods.


When chasing after high scores on LLM benchmarks or creating state-of-the-art SLMs, techniques like Model Merging and Distillation are important as well.


🏫 This course will provide you with the foundational concepts and code to train, fine-tune, and align state-of-the-art SLMs and LLMs using industry-standard and emerging approaches from the open-source edge heading into 2025.


🤓 Become the expert in your organization on all things training (pretraining, post-training), fine-tuning (supervised fine-tuning, instruction tuning, chat tuning, etc.), alignment (PPO, DPO, etc.), Small Language Models (SLMs), Model Merging, Distillation, and more!

Who is this course for

01

Data scientists, researchers, or engineers experienced with classic Machine Learning who want to build custom Small Language Models (SLMs).

02

Product managers who need to understand the core concepts and code behind custom SLMs to effectively lead their product teams.

03

Stakeholders who aim to train, fine-tune, or align proprietary SLMs for their customers in 2025.

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

🦾 Build, train, and evaluate Language Models using transformer variants (GPT, BERT, BART)


🧐 Calculate self-attention and understand the latest implementations (Flash Attention, FA2)

🔠 Demystify embedding layers, embedding representations, pre-trained vs. learned embeddings, ROPE, and more!

🪙 Decode embedding space representations for optimal next-token prediction

🔡 Build, train, and evaluate embedding models (like those in 🤗 Sentence Transformers)

🚇 Complete unsupervised and continued pretraining of LLMs and SLMs from scratch

🚉 Fine-tune pre-trained LMs for instruction-following, chat, and more via parameter-efficient methods

🛤️ Align LMs to balance helpfulness with harmlessness and other criteria (RLXF, DPO)

🚀 Explore frontiers of Language Models (Mixture-of- approaches, Model Merging, alternative fine-tuning, and more!)

This course includes

10 interactive live sessions

Lifetime access to course materials

79 in-depth lessons

Direct access to instructor

8 projects to apply learnings

Guided feedback & reflection

Private community of peers

Course certificate upon completion

Maven Satisfaction Guarantee

This course is backed by Maven’s guarantee. You can receive a full refund within 14 days after the course ends, provided you meet the completion criteria in our refund policy.

Course syllabus

Week 1

Nov 14—Nov 17

    🏈 Cohort Kick-Off!

    • Nov

      15

      Session 1: Cohort Kickoff!

      Fri 11/1512:00 AM—2:00 AM (UTC)
    6 more items

Week 2

Nov 18—Nov 24

    🤖 The Transformer Paper: Attention is All You Need

    • Nov

      20

      Session 2: Transformers

      Wed 11/2012:00 AM—2:00 AM (UTC)
    8 more items

    🧐 Attention

    • Nov

      22

      Session 3: Attention

      Fri 11/2212:00 AM—2:00 AM (UTC)
    6 more items

Week 3

Nov 25—Dec 1

    🔠 Embeddings

    • Nov

      27

      Session 4: Embeddings

      Wed 11/2712:00 AM—2:00 AM (UTC)
    10 more items

    🦃 Thanksgiving

    1 item

Week 4

Dec 2—Dec 8

    🪙 Next-Token Prediction

    • Dec

      4

      Session 5: Next-Token Prediction

      Wed 12/412:00 AM—2:00 AM (UTC)
    9 more items

    🔡 Embedding Models

    • Dec

      6

      Session 6: Embedding Models

      Fri 12/612:00 AM—2:00 AM (UTC)
    9 more items

Week 5

Dec 9—Dec 15

    🚇 Pretraining

    • Dec

      11

      Session 7: Pretraining

      Wed 12/1112:00 AM—2:00 AM (UTC)
    10 more items

    🚉 Fine Tuning

    • Dec

      13

      Session 8: Fine-Tuning

      Fri 12/1312:00 AM—2:00 AM (UTC)
    11 more items

Week 6

Dec 16—Dec 19

    🛤️ Alignment

    • Dec

      18

      Session 9: Alignment

      Wed 12/1812:00 AM—2:00 AM (UTC)
    10 more items

    🌌 LLM Engineering Frontiers

    • Dec

      20

      Session 10: Frontiers

      Fri 12/2012:00 AM—2:00 AM (UTC)
    7 more items

4.6 (15 ratings)

What students are saying

LLM Engineering vs. AI Engineering: What's the Difference?

Prerequisites

A background in fundamental Machine Learning and Deep Learning

Understanding supervised learning, unsupervised learning, and neural network architectures is required. Introductory NLP and Computer Vision knowledge is encouraged. Not sure where to start? Read this.

A ability to program in Python within a Jupyter Notebook Environment

Understand basic Python syntax and constructs. You should be comfortable training and evaluating simple ML & DL models using test, train, and dev sets. Not sure where to start? Look here.

Free resource

The LLM Engineering Onramp

You’ll find brief introductions to core concepts we’ll cover in more depth in the class - this is meant to get the learning juices flowing with bite-sized training materials from Dr. Greg and The Wiz.

Start learning for free now!

Free resource

📅 Detailed Schedule!

Understand how everything comes together in the course to provide a holistic overview of the how LLMs are engineered.


Get all the details about the assignments, associated papers, and key concepts you'll learn!

Send me the deets ✌️

Meet your instructors

"Dr. Greg" Loughnane

"Dr. Greg" Loughnane

Co-Founder & CEO @ AI Makerspace

In 2023, "The Wiz 🪄" a.k.a. "The LLM Wizard 🪄" and I created the LLM Engineering: The Foundations and LLM Ops: LLMs in Production courses. In 2024, we launched The AI Engineering Bootcamp.


From 2021-2023 I led the product & curriculum team at FourthBrain (Backed by Andrew Ng's AI Fund) to build industry-leading online bootcamps in ML Engineering and ML Operations (MLOps).


Previously, I worked as an AI product manager, university professor, data science consultant, AI startup advisor, and ML researcher; TEDx & keynote speaker, lecturing since 2013.


👨‍🏫 Learn with us free on YouTube!

👨‍💼 Connect with me on LinkedIn!

Chris "The Wiz 🪄" Alexiuk

Chris "The Wiz 🪄" Alexiuk

Co-Founder & CTO @ AI Makerspace

During the day, I work as a Developer Advocate for NVIDIA. Previously, I worked with Greg at FourthBrain (Backed by Andrew Ng's AI Fund) on MLE and MLOps courses, and on a few Deeplearning.ai events!


A former founding MLE and data scientist, these days you can find me cranking out Machine Learning and LLM content!


My motto is "Build, build, build!", and I'm excited to get building with all of you!


👨‍🏫 YouTube: AI Makerspace OfficialMy Personal

👨‍💼 Connect with me on LinkedIn!

A pattern of wavy dots

Be the first to know about upcoming cohorts

LLM Engineering - Foundations to SLMs

Course schedule

4-6 hours per week

  • Class!

    Tuesdays & Thursdays, 4:00-6:00pm PT

    • Feb 11th, 13th
    • Feb 18th, 20th
    • Feb 25th, 27th
    • Mar 4th, 6th
    • Mar 11th, 13th
    • Mar 18th, 20th
  • Weekly Programming Projects

    2-4 hours per week

    Each class period, we will get hands-on with Python coding homework!

  • Office Hours

    Tuesdays and Fridays

    Dr. Greg: Thursdays @ 8 AM PT

    The Wiz 🪄: Fridays @ 3 PM PT

  • Peer Support Sessions

    Varies

    Peers supporters are here to serve as your destination group; they're available for homework help, concept deep dives, and to hang out with!


    Find them live in class, on Discord, and even in their own dedicated weekly sessions!

Build 🏗️, ship 🚢, and share 🚀 like a legend.

Build 🏗️, ship 🚢, and share 🚀 like a legend.

Hands-on learning at the LLM edge

We teach concepts AND code. Never one or the other. AI has accelerated so quickly that anyone who's been a manager the last few years has not yet seen the code for themselves.

Pair programming made fun and easy

Grow your network. Build, ship, and share with a community! Build relationships with peers and instructional staff to unlock opportunities in the years ahead.

Find fellow travelers for your journey

Join a community of like-minded AI practitioners who are all in on Generative AI, and who are heading down the same career path as you are.

Frequently Asked Questions

A pattern of wavy dots

Be the first to know about upcoming cohorts

LLM Engineering - Foundations to SLMs