Run Mixtral 8x7B MoE in Google Colab

3 Jan 2024 · 9 min
9:21

LARRUZ shows how to run Mixtral 8x7B on free Google Colab by offloading layers to RAM and using mixed quantization. The model uses sparse mixture-of-experts, activating only two expert layers per token. The tutorial walks through setup, tokenizer, and generation with performance benchmarks.

Questions this video answers

Around 45 gigabytes of VRAM.

T4 GPU with 16 GB of VRAM (Colab free tier).

Set offload_per_layer to 4 for Colab T4; increase to 5 if you have only 12 GB VRAM (e.g., 3060).

Approximately 16 GB of VRAM and around 11–16 GB of system RAM (video suggests ~11 GB RAM minimum; 12–16 GB recommended).

Attention layers: 4-bit HQQ quantization with group size 64. Experts: 2-bit HQQ quantization with group size 16 (alternative experts at 3-bit is also available).

Chapters

More from LARRUZ

8:49
youtube.com

OpenAI’s New AI Is Doing Things We Barely Understand

2d ago
5:38
youtube.com

DeepSeek Solved AI’s Memory Problem

4d ago
33:17
youtube.com

DeepMind's New AI Just Cracked The Code Of Life

1w ago
3:43
youtube.com

The Billion Dollar AI Advantage Is Disappearing

1w ago
5:14
youtube.com

Claude Opus 5.5 AI: An Incredible Leap Forward

3w ago
5:16
youtube.com

Yes, Jev Is Insane, But There's A Catch

3w ago
5:11
youtube.com

DeepSeek’s Insane New Architecture

3w ago
4:16
youtube.com

Claude Is Now Leaving Invisible Fingerprints In Its Text

1mo ago
9:18
youtube.com

I Never Thought I’d See This Happen

1mo ago
5:22
youtube.com

GPT-6 Astra Changes Everything

1mo ago
4:55
youtube.com

Claude Fable AI Is Much Stranger Than The Headlines Suggest

1mo ago
See all content