-
Notifications
You must be signed in to change notification settings - Fork 186
Expand file tree
/
Copy pathtest_mixtral.py
More file actions
26 lines (21 loc) · 938 Bytes
/
test_mixtral.py
File metadata and controls
26 lines (21 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# SPDX-FileCopyrightText: 2024-2025 ModelCloud.ai
# SPDX-FileCopyrightText: 2024-2025 qubitium@modelcloud.ai
# SPDX-License-Identifier: Apache-2.0
# Contact: qubitium@modelcloud.ai, x.com/qubitium
from model_test import ModelTest
from gptqmodel.utils.eval import EVAL
class TestMixtral(ModelTest):
NATIVE_MODEL_ID = "/monster/data/model/Mixtral-8x7B-Instruct-v0.1" # "mistralai/Mixtral-8x7B-Instruct-v0.1"
NATIVE_ARC_CHALLENGE_ACC = 0.5213
NATIVE_ARC_CHALLENGE_ACC_NORM = 0.5247
EVAL_BATCH_SIZE = 6
EVAL_TASKS = {
EVAL.LM_EVAL.ARC_CHALLENGE: {
"chat_template": True,
"acc": {"value": NATIVE_ARC_CHALLENGE_ACC},
"acc_norm": {"value": NATIVE_ARC_CHALLENGE_ACC_NORM},
},
}
OFFLOAD_TO_DISK = False # FIXME Currently, after defuser converted the model, OFFLOAD_TO_DISK must be False for quantization.
def test_mixtral(self):
self.quant_lm_eval()