Views
No views yet
Welcome to try OpenCompass for model evaluation, performance of Mixtral will be updated soon.
This repo is an experimental implementation of inference code, which is not officially released by Mistral AI.
Performances generated from different evaluation toolkits are different due to the prompts, settings and implementation details.
| Datasets | Mode | Mistral-7B-v0.1 | Mixtral-8x7B | Llama2-70B | DeepSeek-67B-Base | Qwen-72B |
|---|---|---|---|---|---|---|
| MMLU | PPL | 64.1 | 71.3 | 69.7 | 71.9 | 77.3 |
| BIG-Bench-Hard | GEN | 56.7 | 67.1 | 64.9 | 71.7 | 63.7 |
| GSM-8K | GEN | 47.5 | 65.7 | 63.4 | 66.5 | 77.6 |
| MATH | GEN | 11.3 | 22.7 | 12.0 | 15.9 | 35.1 |
| HumanEval | GEN | 27.4 | 32.3 | 26.2 | 40.9 | 33.5 |
| MBPP | GEN | 38.6 | 47.8 | 39.6 | 55.2 | 51.6 |
| ARC-c | PPL | 74.2 | 85.1 | 78.3 | 86.8 | 92.2 |
| ARC-e | PPL | 83.6 | 91.4 | 85.9 | 93.7 | 96.8 |
| CommonSenseQA | PPL | 67.4 | 70.4 | 78.3 | 70.7 | 73.9 |
| NaturalQuestion | GEN | 24.6 | 29.4 | 34.2 | 29.9 | 27.1 |
| TrivialQA | GEN | 56.5 | 66.1 | 70.7 | 67.4 | 60.1 |
| HellaSwag | PPL | 78.9 | 82.0 | 82.3 | 82.3 | 85.4 |
| PIQA | PPL | 81.6 | 82.9 | 82.5 | 82.6 | 85.2 |
| SIQA | GEN | 60.2 | 64.3 | 64.8 | 62.6 | 78.2 |
1dataset version metric mode mixtral-8x7b-32k
2-------------------------------------- --------- ------------- ------ ------------------
3mmlu - naive_average ppl 71.34
4ARC-c 2ef631 accuracy ppl 85.08
5ARC-e 2ef631 accuracy ppl 91.36
6BoolQ 314797 accuracy ppl 86.27
7commonsense_qa 5545e2 accuracy ppl 70.43
8triviaqa 2121ce score gen 66.05
9nq 2121ce score gen 29.36
10openbookqa_fact 6aac9e accuracy ppl 85.40
11AX_b 6db806 accuracy ppl 48.28
12AX_g 66caf3 accuracy ppl 48.60
13hellaswag a6e128 accuracy ppl 82.01
14piqa 0cfff2 accuracy ppl 82.86
15siqa e8d8c5 accuracy ppl 64.28
16math 265cce accuracy gen 22.74
17gsm8k 1d7fe4 accuracy gen 65.66
18openai_humaneval a82cae humaneval_pass@1 gen 32.32
19mbpp 1e1056 score gen 47.80
20bbh - naive_average gen 67.14If you are unable to access huggingface, please try hf-mirror
1# Download the huggingface
2git lfs install
3git clone https://huggingface.co/someone13574/mixtral-8x7b-32kseqlen
4magnet:?xt=urn:btih:5546272da9065eddeb6fcd7ffddeef5b75be79a7&dn=mixtral-8x7b-32kseqlen&tr=udp%3A%2F%http://2Fopentracker.i2p.rocks%3A6969%2Fannounce&tr=http%3A%2F%http://2Ftracker.openbittorrent.com%3A80%2Fannounce1
2cd mixtral-8x7b-32kseqlen/
3
4# Merge the checkpoints
5cat consolidated.00.pth-split0 consolidated.00.pth-split1 consolidated.00.pth-split2 consolidated.00.pth-split3 consolidated.00.pth-split4 consolidated.00.pth-split5 consolidated.00.pth-split6 consolidated.00.pth-split7 consolidated.00.pth-split8 consolidated.00.pth-split9 consolidated.00.pth-split10 > consolidated.00.pth1md5sum consolidated.00.pth
2md5sum tokenizer.model
3
4# Once verified, you can delete the splited files.
5rm consolidated.00.pth-split*1 ╓────────────────────────────────────────────────────────────────────────────╖
2 ║ ║
3 ║ ·· md5sum ·· ║
4 ║ ║
5 ║ 1faa9bc9b20fcfe81fcd4eb7166a79e6 consolidated.00.pth ║
6 ║ 37974873eb68a7ab30c4912fc36264ae tokenizer.model ║
7 ╙────────────────────────────────────────────────────────────────────────────╜1conda create --name mixtralkit python=3.10 pytorch torchvision pytorch-cuda -c nvidia -c pytorch -y
2conda activate mixtralkit
3
4git clone https://github.com/open-compass/MixtralKit
5cd MixtralKit/
6pip install -r requirements.txt
7pip install -e .
8
9ln -s path/to/checkpoints_folder/ ckptspython tools/example.py -m ./ckpts -t ckpts/tokenizer.model --num-gpus 21==============================Example START==============================
2
3[Prompt]:
4Who are you?
5
6[Response]:
7I am a designer and theorist; a lecturer at the University of Malta and a partner in the firm Barbagallo and Baressi Design, which won the prestig
8ious Compasso d’Oro award in 2004. I was educated in industrial and interior design in the United States
9
10==============================Example END==============================
11
12==============================Example START==============================
13
14[Prompt]:
151 + 1 -> 3
162 + 2 -> 5
173 + 3 -> 7
184 + 4 ->
19
20[Response]:
219
225 + 5 -> 11
236 + 6 -> 13
24
25#include <iostream>
26
27using namespace std;
28
29int addNumbers(int x, int y)
30{
31 return x + y;
32}
33
34int main()
35{
36
37==============================Example END==============================
381# assume you have already create the conda env named mixtralkit
2conda activate mixtralkit
3
4git clone https://github.com/open-compass/opencompass opencompass
5cd opencompass
6
7pip install -e .1# Download dataset to data/ folder
2wget https://github.com/open-compass/opencompass/releases/download/0.1.8.rc1/OpenCompassData-core-20231110.zip
3unzip OpenCompassData-core-20231110.zipIf you need to evaluate the humaneval, please go to Installation Guide for more information
1cd opencompass/
2# link the example config into opencompass
3ln -s path/to/MixtralKit/playground playground
4
5# link the model weights into opencompass
6mkdir -p ./models/mixtral/
7ln -s path/to/checkpoints_folder/ ./models/mixtral/mixtral-8x7b-32kseqlen1
2opencompass/
3├── configs
4│ ├── .....
5│ └── .....
6├── models
7│ └── mixtral
8│ └── mixtral-8x7b-32kseqlen
9├── data/
10├── playground
11│ └── eval_mixtral.py
12│── ......HF_EVALUATE_OFFLINE=1 HF_DATASETS_OFFLINE=1 TRANSFORMERS_OFFLINE=1 python run.py playground/eval_mixtral.py