Home » Mistral AI Unveils Mixtral 8x7B Mixture-of-Experts Language Model System

Mistral AI Unveils Mixtral 8x7B Mixture-of-Experts Language Model System

By

–

Mistral AI's Mixtral 8x7B mixture-of-experts model architecture diagram showing specialized sub-models routing inputs

Mixtral has 46.7B parameters in total, yet it runs at the cost of a 12.9B model. That gap is the pitch behind Mixtral 8x7B, the open-weight language model Mistral AI of Paris put out in December 2023.

The company calls it a sparse mixture-of-experts model and released it under the Apache 2.0 license. Mistral said it beats Llama 2 70B on most benchmarks while delivering 6x faster inference, and that it matches or outperforms GPT3.5 on most standard tests. “It is the strongest open-weight model with a permissive license,” the company said, and the best overall on the cost and performance trade-off.

How the routing works

Mixtral is a decoder-only network. In each feedforward block it can choose from 8 distinct groups of parameters. For every token at every layer, a router picks two of those groups, the “experts,” and adds their outputs together. Only a fraction of the parameters is used per token, which is why total size can grow without a matching rise in cost or delay.

The model was pre-trained on data from the open web, with experts and routers trained at the same time.

Superannotate’s technical write-up added a caution on hardware. The saving applies to compute, not memory. Mixtral’s memory needs follow its full sparse parameter count, which it put at 48B, still below Llama 2 70B. Each device may also hold more than one expert, so the design suits batched workloads better than single requests.

Languages, code and bias

The model handles a context of 32k tokens and works in English, French, Italian, German and Spanish. Mistral said it performs strongly at code generation. Superannotate reported that Mixtral significantly outperforms Llama 2 70B in French, German, Spanish and Italian, and that code and mathematics were where it pulled furthest ahead.

Mistral also tested for bias. On the BBQ benchmark Mixtral showed less bias than Llama 2, and on BOLD it displayed more positive sentiment, with similar variance within each dimension.

A companion release, Mixtral 8x7B Instruct, was tuned through supervised fine-tuning and direct preference optimisation to follow instructions closely. It scored 8.30 on MT-Bench, which Mistral described as the best result among open-source models and comparable to GPT3.5. One warning came with it: without a moderation prompt, the model “will just follow whatever instructions are given.”

Access and money

To let others run Mixtral on a fully open-source stack, Mistral submitted changes to the vLLM project, which uses Megablocks CUDA kernels. Skypilot can deploy vLLM endpoints on any cloud instance. Mistral itself serves Mixtral 8x7B behind its mistral-small endpoint, in beta, and thanked CoreWeave and Scaleway for technical support during training.

Superannotate later reported that Mistral closed a Series A round of €400 million, led by Andreessen Horowitz with Lightspeed Venture Partners, Salesforce and BNP Paribas also taking part, at a valuation of $2 billion. It described the company as co-founded by alumni of Google’s DeepMind and Meta.

Sources

Get breaking stories first on our Telegram channel.

More stories by

Most read

AI Tools

Artificial Intelligence

Business

World News