Mixtral 8x7B: Mixture-of-Experts Architecture, Setup and Early Tests

Matthew Berman reviews Mistral AI’s December 2023 open-weight model, demonstrates a cloud setup and tests its coding and reasoning responses.

MBMatthew BermanVortrag · Forward Future
Kanal
Matthew Berman
Veröffentlicht
12. Dez. 2023
Video
20:49
Lesezeit
6 Min.
Folien
8
Original
Englisch
Auf YouTube öffnen
Beim Scrollen schrumpft das Video in die rechte untere Ecke und läuft weiter. Untertitel folgen Ihrer Lesesprache.
LesespracheIn 2 Sprachen verfügbar
Diesen Artikel gibt es noch nicht auf Deutsch, daher wird das Original (Englisch) angezeigt.
ZUSAMMENFASSUNG

In 30 Sekunden

Matthew Berman examines Mistral AI’s Mixtral 8x7B, explaining its sparse mixture-of-experts design, reported benchmarks and open-weight release. He walks through a 2023 RunPod configuration and tests the instruction model on coding, facts, logic and other tasks. He is enthusiastic about several responses, though his informal scoring has important ambiguities and mistakes. The deployment steps, price and comparisons reflect the video’s historical context rather than current recommendations or rankings.

  1. 1Sparse expert routingEach layer selects two of eight feed-forward experts for each token while other parameters are shared. The experts are not eight independent complete 7B models.
  2. 2Reported 2023 comparisonsMistral reported results against Llama 2 70B and GPT-3.5 on selected benchmarks, with different results by test.
  3. 3A historical cloud setupBerman demonstrates a two-A100 RunPod configuration, software updates and model loading. The settings and quoted cost describe his setup at the time.
  4. 4Testing Python and reasoningThe Snake program runs, while other responses vary. One successful example is not a comprehensive evaluation.
  5. 5Shirts and killersThe model’s 16-hour shirt answer is inconsistent with simultaneous drying, and its killer answer counts a deceased person; the scoring depends on the question’s assumptions.
  6. 6Spatial and belief questionsThe model answers the marble and ball-location prompts in ways Berman finds persuasive. These are individual examples rather than proof of general reasoning.

Das Wichtigste

  1. Mixtral 8x7B has about 46.7 billion total parameters and activates roughly 12.9 billion per token, with two of eight feed-forward experts selected at each layer.
  2. Mistral released the model weights under Apache 2.0 and reported competitive 2023 benchmark results; open weights do not automatically mean all training data and code are available.
  3. Berman’s historical demonstration uses two 80 GB A100 GPUs and custom software settings; hardware requirements, prices and software support depend on deployment.
  4. His Snake example runs on the first try, but the shirt-drying and killer puzzles expose errors or ambiguous scoring that should not be counted as unqualified successes.
  5. A model’s refusal to assist with a car break-in is a safety behavior rather than evidence that it failed an intelligence test.
  6. A few chosen prompts and vendor benchmarks do not establish general intelligence or a permanent model ranking.
VOLLTEXT

Den bearbeiteten Text nach Kapiteln lesen

Nur das Transkript
01

The Mixtral release and expert routing

Berman introduces the December 2023 release and explains mixture-of-experts routing. He discusses historical benchmark claims and distinguishes open weights from a fully open training process.

Mistral AI released Mixtral 8x7B in December 2023 after a torrent link drew attention. I am excited to explain how it works, show my setup and test it. My initial description as eight separate complete models is only a rough analogy: Mixtral is one sparse mixture-of-experts model with shared components and multiple feed-forward experts.

Mixture-of-experts routing illustration
FOLIE 1 / 8Mixture-of-experts routing illustrationThe general diagram shows a router selecting feed-forward experts; Mixtral selects two experts per token and layer.

A router selects two of eight feed-forward experts for each token at each layer, and the selected outputs are combined. Other parts of the Transformer are shared, so the “8x7B” name does not mean eight complete 7B models or 56 billion parameters. Mistral reports about 46.7 billion total parameters and 12.9 billion active per token; active computation and the memory needed to hold the weights are different considerations.

I compare the potential compute efficiency with dense models and cite Mistral’s reported performance against Llama 2 70B. Actual speed depends on hardware, implementation, batch size and memory constraints. The model’s reported 32,000-token context and performance numbers describe the release at that time, not a guarantee of accurate reasoning throughout the window.

I mention speculation circulating at the time about GPT-4’s internal mixture-of-experts architecture and size. These are third-party claims rather than details confirmed in the material shown, so they should not be treated as established specifications. I also note Mistral’s separate higher-end Mistral Medium service, which the company then described as a prototype endpoint.

Mistral’s 2023 benchmark comparison
FOLIE 2 / 8Mistral’s 2023 benchmark comparisonThe table compares Mixtral, Llama 2 70B and GPT-3.5 on selected tests with different results by benchmark.

Mistral’s published comparison shows Mixtral near GPT-3.5 on MT-Bench and competitive with Llama 2 70B across several tests; the table does not show Mixtral winning every benchmark. These are Mistral’s selected comparisons and settings from 2023. I think the results are encouraging for openly available models, while my prediction that they will soon catch up with closed models is a forecast.

Mistral released the weights under Apache 2.0, allowing developers to download and adapt them subject to the license. I adopt the phrase “open weight,” distinguishing access to model weights from access to all training data, code and documentation. I also look forward to community fine-tunes, including work discussed by Eric Hartford.

Mixtral routing and multilingual claims
FOLIE 3 / 8Mixtral routing and multilingual claimsMistral’s co-founder describes expert selection and reported multilingual performance.

Mistral’s Guillaume Lample describes the per-token, per-layer routing and reports strong results in French, German, Spanish and Italian, as well as improvements in math and coding compared with Mistral 7B. I cite Andrej Karpathy’s explanation that only feed-forward blocks are replicated, which accounts for the lower total parameter count than eight times seven billion.

02

RunPod installation in 2023

Berman shows his two-GPU cloud configuration, software changes and model loading. This is a historical walkthrough, with prices and software likely to change.

For my December 2023 setup, I use RunPod and text-generation-webui with two A100 GPUs, each with 80 GB of memory. The displayed on-demand price is about $4 per hour, and I increase container and volume storage. This is the configuration and price shown at the time; other precisions or quantized deployments can require different resources, and current prices and interfaces may differ.

Historical two-A100 RunPod configuration
FOLIE 4 / 8Historical two-A100 RunPod configurationThe screen shows the GPU configuration and an approximately $4 hourly price at the time.

The template I use does not yet support Mixtral, so I edit its startup script to install a newer Transformers version and enable the option to trust remote code, then restart the pod and reconnect to the web interface. This is a historical description rather than a current installation recipe; enabling remote code executes repository-supplied code and requires trust in that source.

I select the Mixtral instruct model from Hugging Face, download the files, allocate GPU memory and choose BF16. I thank Eric Hartford and Jon Durbin for helping resolve the setup issues. After refreshing the model list and loading the model, I verify the remote-code setting and select a generation preset before starting the tests.

Model loading settings
FOLIE 5 / 8Model loading settingsThe historical interface shows BF16 and memory settings for loading the instruction model.
03

Coding and basic tests

The model generates a working Snake example and answers simple factual and logic questions. Berman also presents a refusal and a flawed shirt-drying response.

The first prompt asks for a Python script printing numbers from 1 to 100, which I mark correct. I then ask for Snake in Python. The model generates a program using the curses library, and in my demonstration it runs on the first attempt. This is an encouraging example, not a broad coding benchmark.

I also mark a resignation letter and the identification of Bill Clinton as US president in 1996 as passes. The instruction model refuses a request about breaking into a car; I describe it as censored and anticipate different fine-tunes, but refusal of potentially harmful assistance is a safety behavior rather than a failed intelligence test.

In the shirt-drying puzzle, five shirts dry in four hours and I ask how long 20 would take. The response says shirts dry independently but then incorrectly divides four hours by five and concludes 16 hours. If all 20 are laid out at once under the same conditions, the natural answer is four hours; limited drying space would require additional assumptions. Although I consider awarding a pass, the stated answer and calculation do not support one.

Shirt-drying response
FOLIE 6 / 8Shirt-drying responseThe model asserts independent drying but computes an inconsistent 16-hour result.

The model correctly concludes that Sam is not faster than Jane when Jane is faster than Joe and Joe is faster than Sam. I say it also passes a basic addition problem, an order-of-operations example and a meal-plan request. On the question asking it to count words in its own response, I find its answer incorrect.

04

Reasoning, structured output and conclusion

Further tests include word counting, killers, summarization, JSON, a marble and a belief-state question. The examples illustrate both successes and limitations of informal scoring.

In the killer puzzle, three killers are in a room and a newcomer kills one. The model answers four because it counts the deceased person among those present, and I call this correct. Under the usual interpretation that counts living killers, two originals plus the newcomer make three; counting the deceased as a killer yields four. The wording is ambiguous, so my unqualified pass is not a reliable score.

Killer-puzzle response
FOLIE 7 / 8Killer-puzzle responseThe model counts the deceased person; the interpretation of who counts changes the answer.

For a summarization prompt, the model uses bullets rather than the requested dashes, but I judge the content adequate. It also produces a JSON representation of the described people, genders and ages. These are useful observations about individual outputs, though they do not measure how consistently the model follows formatting instructions.

The marble problem asks what happens when a cup containing a marble is placed upside down on a table and the cup is moved to a microwave. The model says the marble remains on the table; I count that as a pass. This relies on the ordinary assumption that moving the cup does not also carry the marble.

Marble and cup response
FOLIE 8 / 8Marble and cup responseThe example places the marble on the table after the inverted cup is moved.

In the final belief-state problem, John puts a ball in a box and leaves; Mark moves it to a basket and leaves. When both return without learning what happened in their absence, the model says John expects the box and Mark expects the basket. I find that answer convincing and conclude that Mixtral is the strongest open-weight model I have personally tested so far, a subjective assessment of this small 2023 test set.

I am excited to see community fine-tunes and quantized versions that might make the model accessible with less hardware. Those possibilities do not imply that every compressed variant will preserve the same quality or that my particular two-GPU setup is required for every deployment.

Mehr aus diesem Kanal

12 Folien34:21EN
Matthew Berman· 27. Okt. 2026Matthew Berman Examines Anthropic’s IPO Filing, AI Growth and GovernanceMatthew Berman, Sam Altman · Forward FutureThe presenter reviews the S-1’s financial metrics, compute strategy and voting structure while questioning the tension between rapid AI development and safety.AnthropicAI SafetyEnterprise-KI+2
0:26EN
Matthew Berman· 25. Okt. 2026Sam Altman on Human Values and Problem-Solving in an AI WorldSam Altman · OpenAIIn a short interview excerpt, Altman considers the enjoyment of solving hard problems and the human role in interpreting results.Human-AI CollaborationFuture of WorkAI Strategy
2 Folien0:36EN
Matthew Berman· 25. Okt. 2026Kimi K3.1 and a Rubik’s Cube Solver DemonstrationMatthew Berman · Forward FutureMatthew Berman shows a scrambled virtual cube being solved and gives the Kimi K3.1 test a favorable assessment.EvalsCoding-AgentenOpen-weight models
2 Folien0:21EN
Matthew Berman· 24. Okt. 2026An AI-Generated Kimi Benchmark Chart Used Invented ScoresMatthew Berman · Forward FutureMatthew Berman asks for a graph of Kimi K3.1 Pro benchmarks, then discovers that the displayed figures are illustrative placeholders.BenchmarksEvalsGenerative media
6 Folien25:50EN
Matthew Berman· 24. Okt. 2026Kimi K3.1 Pro Tested: Strong 3D Demos, Uneven Results and Competitive PricingMatthew Berman · Forward FutureMatthew Berman tests the open-weight model on coding, 3D rendering and visual explanations, then compares benchmark results and prices.Open-weight modelsBenchmarksAI cost & performance+1
2 Folien32:20EN
Matthew Berman· 23. Okt. 2026Who Is Local AI For? The Costs, Trade-offs and a Hybrid FutureMatthew Berman · Forward FutureMatthew Berman weighs data control and independence against hardware cost, setup complexity and inference speed.Local inferenceOpen-weight modelsAI cost & performance+1