---
title: "Welcome Mixtral - a SOTA Mixture of Experts on Hugging Face"
description: "Mixtral 8x7B is Mistral's sparse Mixture-of-Experts LLM. It replaces feed-forward layers with MoE layers that route each token to 2 of 8 experts, so it has about 45B total parameters but decodes at roughly the speed of a 12B dense model."
url: "https://swe.quest/articles/welcome-mixtral-a-sota-mixture-of-experts-on-hugging-face-8678082efd21a0bd"
canonical: "https://huggingface.co/blog/mixtral"
source: "Hugging Face"
published: "2023-12-11"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 11
tags: ["llms","inference","model-training","machine-learning"]
---

# Welcome Mixtral - a SOTA Mixture of Experts on Hugging Face

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2023-12-11, 11 min read, Announcement. Original: [https://huggingface.co/blog/mixtral](https://huggingface.co/blog/mixtral)

## Summary

Mixtral 8x7B is Mistral's sparse Mixture-of-Experts LLM. It replaces feed-forward layers with MoE layers that route each token to 2 of 8 experts, so it has about 45B total parameters but decodes at roughly the speed of a 12B dense model. On release it beat Llama 2 70B on the Open LLM Leaderboard and matched GPT-3.5 on MT-Bench (8.30), under an Apache 2.0 license. Hugging Face shipped integrations for running it with Transformers and Text Generation Inference, plus QLoRA fine-tuning with TRL on one A100 (attention projections only, since sparse MLP layers interact poorly with PEFT). For quantization, VRAM needs are about 90 GB in fp16 and about 23 GB in 4-bit, and GPTQ performs better when the expert gating layers are left unquantized (perplexity 4.40 vs 4.25 in fp16).

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)

## Prerequisites

- transformer architecture basics ([easy posts on System design](https://swe.quest/tags/system-design.md?difficulty=easy))
- Hugging Face Transformers
- LLM quantization ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

Mixtral 8x7B, Mixture of Experts, Hugging Face Transformers, Text Generation Inference, TRL, QLoRA, GPTQ, bitsandbytes

## Related posts

- [Mixture of Experts Explained](https://swe.quest/articles/mixture-of-experts-explained-5efff8fe17f2e9ca.md): Hugging Face · 2023-12-11 · Hard · 21 min read · LLMs, Model training, Inference & serving, Machine learning
  Mixture of Experts (MoE) transformers replace dense feed-forward layers with sparse expert layers and a learned router that sends each token to only a few experts.
- [Welcome Le Chonk: Mistral Large 4 on Hugging Face](https://swe.quest/articles/welcome-le-chonk-mistral-large-4-on-hugging-face-e6a20ff7676f092a.md): Hugging Face · 2026-10-29 · Medium · 11 min read · LLMs, Inference & serving, Model training, Evaluation
  Mistral Large 4 is a multimodal, multilingual Mixture-of-Experts model with about 1T total and 49B active parameters and a 1M-token context window.
- [Mixtral 8x7B: What you need to know about Mistral AI’s latest model](https://swe.quest/articles/mixtral-8x7b-what-you-need-to-know-about-mistral-ai-s-latest-model-a28151710dbf752c.md): Neon · 2023-12-11 · Easy · 5 min read · LLMs, Inference & serving, RAG & retrieval
  Mixtral 8x7B, Mistral AI's new open model, supports 32k-token context, improves code generation and matches or beats Llama 2 70B and GPT-3.5 on benchmarks such as MMLU, MBPP and GSM-8K.
- [Mixture of Experts (MoEs) in Transformers](https://swe.quest/articles/mixture-of-experts-moes-in-transformers-670e279baa41a80a.md): Hugging Face · 2026-02-26 · Hard · 10 min read · Inference & serving, LLMs, Model training, Performance engineering, Python
  Hugging Face transformers v5 reworks its internals to treat Mixture of Experts models as first-class: a WeightConverter pipeline packs per-expert checkpoint tensors into contiguous runtime tensors with async, lazy materialization, cutting Qwen1.5-110B load time from ~66s to ~21s (10s with tensor parallelism) on an A100.
- [Welcome Llama 4 Maverick & Scout on Hugging Face](https://swe.quest/articles/welcome-llama-4-maverick-scout-on-hugging-face-5f3bdf5bb62f71eb.md): Hugging Face · 2025-04-05 · Medium · 10 min read · LLMs, Inference & serving, Machine learning
  Meta's Llama 4 Maverick (~400B total, 128 experts) and Scout (~109B total, 16 experts) are Mixture-of-Experts multimodal models with 17B active parameters each, now on the Hugging Face Hub with day-one transformers v4.51.0 and TGI support.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
