The Kaitchup – AI on a Budget

The Kaitchup – AI on a Budget

Share this post

The Kaitchup – AI on a Budget
The Kaitchup – AI on a Budget
Maixtchup: Make Your Own Mixture of Experts with Mergekit

Maixtchup: Make Your Own Mixture of Experts with Mergekit

The rise of the MoEs

Benjamin Marie's avatar
Benjamin Marie
Jan 18, 2024
∙ Paid
14

Share this post

The Kaitchup – AI on a Budget
The Kaitchup – AI on a Budget
Maixtchup: Make Your Own Mixture of Experts with Mergekit
4
1
Share
Make your own mixture

Since the release of Mixtral-8x7B by Mistral AI, there has been a renewed interest in the mixture of expert (MoE) models. This architecture exploits expert sub-networks among which only some of them are selected and activated by a router network during inference.

Mixtral-8x7B: Understanding and Running the Sparse Mixture of Experts by Mistral AI

Mixtral-8x7B: Understanding and Running the Sparse Mixture of Experts by Mistral AI

Benjamin Marie
·
December 12, 2023
Read full story

MoEs are so simple and flexible that it is easy to make a custom MoE. On the Hugging Face Hub, we can now find several trending LLMs that are custom MoEs, such as mlabonne/phixtral-4x2_8.

However, most of them are not traditional MoEs made from scratch, they simply use a combination of already fine-tuned LLMs as experts. Their creation was made easy with mergekit. For instance, Phixtral LLMs have been made with mergekit by combining several Phi-2 models.

The Kaitchup – AI on a Budget is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.

In this article, we will see how Phixtral was created. We will apply the same process to create our own mixture of experts, Maixtchup, using several Mistral 7B models.

I have implemented a notebook to reproduce the fabrication of Maixtchup. It is available here:

Get the notebook (#39)

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 The Kaitchup
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share