Model comparison
GLM-4-9B vs Mixtral 8x7B
- Input
- Free
- Output
- Free
- Context
- 128K
- Released
- 2024-06-05
- Input
- $0.70 / 1M tokens
- Output
- $0.70 / 1M tokens
- Context
- 32K tokens
- Released
- 2023-12-09
GLM-4-9B scores higher on 4 of the 4 benchmarks both models report; GLM-4-9B has the larger context window (128K vs 32K).
Specs and pricing side by side
| Spec | GLM-4-9B | Mixtral 8x7B |
|---|---|---|
| Maker | Z.ai (Zhipu / GLM) | Mistral AI |
| Released | 2024-06-05 | 2023-12-09 |
| Context window | 128K | 32K tokens |
| Max output | Not publicly disclosed | Not officially specified; bounded by the… |
| Input price | Free | $0.70 / 1M tokens |
| Output price | Free | $0.70 / 1M tokens |
| Parameters | 9B | 46.7B total parameters, 12.9B active per token (8 experts, 2 routed per token) |
| License | GLM-4 License (custom open weights) | Apache 2.0 |
| Weights | Open weights | Open weightssame |
| Modalities | Text | Textsame |
| Knowledge cutoff | Not publicly disclosed | Not officially published by Mistral AI |
Benchmarks both models report
| Benchmark | GLM-4-9B | Mixtral 8x7B |
|---|---|---|
| MMLU | 72.4% | 70.6% |
| GSM8K | 79.6% | 74.4% |
| MATH | 50.6% | 28.4% |
| HumanEval | 71.8% | 40.2% |
Scores are as published by each maker or its cited source; harness, reasoning effort and date can differ between rows, so treat small gaps as ties. Sources are listed on each model page.
Which one should you pick?
Pick GLM-4-9B if…
- You care about MMLU, GSM8K, MATH (it scores higher on 4 shared benchmarks).
- You need the longer context (128K vs 32K).
- Your use case is: local and on-device chat assistants where a small open model is preferred.
Pick Mixtral 8x7B if…
- Your use case is: self-hosted chat assistants and RAG backends where Apache 2.0 licensing matters.
FAQ
Which is better, GLM-4-9B or Mixtral 8x7B?
GLM-4-9B scores higher on 4 of the 4 benchmarks both models report; GLM-4-9B has the larger context window (128K vs 32K). The better pick depends on whether you value benchmark scores, price per token, context length or openness for your workload.
What are the context windows of GLM-4-9B and Mixtral 8x7B?
GLM-4-9B offers 128K with up to Not publicly disclosed output; Mixtral 8x7B offers 32K tokens with up to Not officially specified; bounded by the 32K-token context window output.
Is GLM-4-9B newer than Mixtral 8x7B?
GLM-4-9B was released 2024-06-05; Mixtral 8x7B was released 2023-12-09.
