Maarten Grootendorst's Avatar

Maarten Grootendorst

@maartengr

πŸ§‘β€πŸ’» Data Scientist | Psychologist πŸ“– Author of "Hands-On LLMs" (http://LLM-book.com) πŸ§™β€β™‚οΈ Open Sourcerer (BERTopic, PolyFuzz, KeyBERT; github.com/MaartenGr) πŸ’‘ Demystifying LLMs (newsletter.maartengrootendorst.com)

226
Followers
2
Following
48
Posts
29.11.2023
Joined
Posts Following

Latest posts by Maarten Grootendorst @maartengr

Preview
Why is Reinforcement Learning Important for LLMs? Join this free masterclass to learn the methods for fine-tuning LLMs, and what are their strengths and weaknesses. You’ll also learn why in order to mitigate these weaknesses, reinforcement learning m...

βœ… Want in? Register here: www.ragpack.ai/masterclass

06.01.2026 16:26 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Announcing a free Masterclass on RL for LLMs!

This has been such a wonderful collaboration with some great people and personal heroes.

πŸ“… Jan 15, 2026 (live) starting at 9 am PT / 12 pm ET Led by *The RAG Pack*: Jay Alammar, Maarten Grootendorst, Chris McCormick, and Joshua Starmer.

06.01.2026 16:26 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
An Illustrated Guide to AI Agents Artificial intelligence is entering a new phase. No longer limited to answering prompts or completing simple writing tasks, AI agents can now reason, plan, and act with increasing... - Selection from ...

There are three chapters in Early Release on the O’Reilly Platform (Intro, Memory, and Tools): learning.oreilly.com/library/view...

24.11.2025 16:27 πŸ‘ 3 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Post image

And here you have it! The cover of our β€œAn Illustrated Guide to AI Agents” book!

Why a Dolphin? The process of choosing cover animals is a closely guarded secret held deep within the legendary halls of O'Reilly. @jayalammar.bsky.social and I do not get to choose it, but we love it!

24.11.2025 16:27 πŸ‘ 3 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0

And here you have it! The cover of our β€œAn Illustrated Guide to AI Agents” book!

Why a Dolphin? The process of choosing cover animals is a closely guarded secret held deep within the legendary halls of O'Reilly. @Jay and I do not get to choose it, but we love it!

24.11.2025 16:26 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
An Illustrated Guide to AI Agents Artificial intelligence is entering a new phase. No longer limited to answering prompts or completing simple writing tasks, AI agents can now reason, plan, and act with increasing... - Selection from ...

The first two chapters are in early release: learning.oreilly.com/library/view...

17.11.2025 16:20 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Contest Rules 2:
* 7 lucky winners will receive digital copies of the book.
* We will close the contest on Monday 24th of November and share the cover!
* TIP - You can find all existing O’Reilly animal covers here: www.oreilly.com/animals.csp

17.11.2025 16:18 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Contest Rules 1:
* Each participant is allowed two guesses
* 3 lucky winners will be randomly selected from those who guessed correctly to receive a free print copy of our book when it hits the shelves (note: we cannot ship to Russia or Ukraine)

17.11.2025 16:18 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

It’s time to guess the animal on the cover!

Our cover animal is here, and @jayalammar.bsky.social and I are thrilled to celebrate it with an exciting contest for our upcoming release, An Illustrated Guide to AI Agents!

Each person gets two guesses. Which animal do you think we got?

17.11.2025 16:18 πŸ‘ 0 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0

You should be able to access it through the platform. I believe even if you do not have a subscription, but I'm not sure πŸ˜…

28.10.2025 18:51 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
An Illustrated Guide to AI Agents Artificial intelligence is entering a new phase. No longer limited to answering prompts or completing simple writing tasks, AI agents can now reason, plan, and act with increasing... - Selection from ...

www.oreilly.com/library/view...

28.10.2025 16:58 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

@jayalammar.bsky.social and I cover memory (including context engineering) and tools (including MCP) in these chapters, along with many, many visuals. Every so often, we will release a new chapter and show you how they all fit within the framework(s) of AI Agent(s).

28.10.2025 16:58 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

Drafts of the first two chapters of "An Illustrated Guide to AI Agents" are now available in Early Release on the O'Reilly platform!

28.10.2025 16:58 πŸ‘ 3 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0
Post image

The Illustrated Guide to AI Agents

New book announcement!

Thrilled that together with @maartengr.bsky.social , we're writing a new book titled β€œAn Illustrated Guide to AI Agents” and published by @oreilly.bsky.social.

13.10.2025 15:13 πŸ‘ 10 πŸ” 2 πŸ’¬ 1 πŸ“Œ 1
Post image

Excited to share that @jayalammar.bsky.social and I are writing the book β€œAn Illustrated Guide to AI Agents” with @oreilly.bsky.social πŸ₯³

Our new book will contain chapters on the fundamentals of agents (memory, tools, and planning), alongside more advanced concepts like RL and reasoning LLMs.

13.10.2025 15:11 πŸ‘ 10 πŸ” 2 πŸ’¬ 2 πŸ“Œ 0
Preview
Hands-On-Large-Language-Models/bonus at main Β· HandsOnLLM/Hands-On-Large-Language-Models Official code repo for the O'Reilly Book - "Hands-On Large Language Models" - HandsOnLLM/Hands-On-Large-Language-Models

Building off the book's foundation, we created enough content to hopefully keep you busy for a while:

github.com/HandsOnLLM/H...

30.04.2025 15:37 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

We've made so much extra (free!) content it could be its own book πŸ˜…

I counted more than 300 visuals across our illustrated and visual guides!

30.04.2025 15:37 πŸ‘ 3 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Intuition behind Mamba and State Space Models | Enhancing LLMs!
Intuition behind Mamba and State Space Models | Enhancing LLMs! YouTube video by Maarten Grootendorst

www.youtube.com/watch?v=BDTV...

21.03.2025 15:40 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

Happy to introduce my video on this alternative LLM architecture, Mamba and State Space Models!

I wanted to do it for a while now and finally found the time to work on animating my visual guide. Expect to gain an intuitive understanding of this alternative LLM architecture.

Link below πŸ‘‡

21.03.2025 15:40 πŸ‘ 8 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0
Preview
Release v0.17.0 Β· MaartenGr/BERTopic Highlights: Light-weight installation without UMAP and HDBSCAN by @MaartenGr in #2289 Add Model2Vec as an embedding backend by @MaartenGr in #2245 Add LiteLLM as a representation model by @Maarten...

You can find the full changelog here: github.com/MaartenGr/BE...

19.03.2025 17:08 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

Announcing BERTopic v0.17 πŸ₯³

This is a feature-packed update that includes the amazing Model2Vec, more interactive DataMapPlot functionalities, a method for lightweight installation, and much more!

19.03.2025 17:08 πŸ‘ 7 πŸ” 3 πŸ’¬ 1 πŸ“Œ 0
Preview
A Visual Guide to LLM Agents Exploring the main components of Single- and Multi-Agents

I might have gone a little overboard with the number of visuals... but this is such an exciting topic! Here's the article: newsletter.maartengrootendorst.com/p/a-visual-g...

17.03.2025 15:57 πŸ‘ 4 πŸ” 2 πŸ’¬ 1 πŸ“Œ 0
Post image

Introducing "A Visual Guide to LLM Agents" πŸ€–

With over 60 (!) custom visuals, explore how Agents work, how they are created, their reasoning behavior, Model Context Protocol (MCP), Multi-Agent frameworks, and much more!

Link below πŸ‘‡

17.03.2025 15:57 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Can you guess which visual guide is coming?

14.03.2025 16:05 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

MCP is such an interesting protocol and a welcome addition to LLM-based frameworks.

14.03.2025 16:05 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Video thumbnail

I discuss Model Context Protocol (MCP) in an upcoming article and figured I would share a small video illustrating a simplified flow!

14.03.2025 16:05 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
GitHub - MaartenGr/KeyBERT: Minimal keyword extraction with BERT Minimal keyword extraction with BERT. Contribute to MaartenGr/KeyBERT development by creating an account on GitHub.

You can find the repo here: github.com/MaartenGr/Ke...

19.02.2025 15:36 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

As a bonus, I created a lightweight installation of KeyBERT using ONLY scikit-learn and Model2Vec! Installation is straightforward:

19.02.2025 15:36 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

Blazingly fast keyword generation with KeyBERT v0.9 and Model2Vec πŸ”₯

I have been a big fan of the amazing embedding models by The Minish Lab, so I had to integrate them with KeyBERT.

A release for the GPU-poor πŸ˜‰

19.02.2025 15:36 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

You can find everything at our repo: github.com/HandsOnLLM/H...

11.02.2025 16:23 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0