eval_api_minimax.py 955 Bytes
Newer Older
1
from mmengine.config import read_base
Hubert's avatar
Hubert committed
2
from opencompass.models import MiniMax
3
4
5
6
7
from opencompass.partitioners import NaivePartitioner
from opencompass.runners.local_api import LocalAPIRunner
from opencompass.tasks import OpenICLInferTask

with read_base():
Songyang Zhang's avatar
Songyang Zhang committed
8
9
    from ..summarizers.medium import summarizer
    from ..datasets.ceval.ceval_gen import ceval_datasets
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

datasets = [
    *ceval_datasets,
]

models = [
    dict(
        abbr='minimax_abab5.5-chat',
        type=MiniMax,
        path='abab5.5-chat',
        key='xxxxxxx', # please give you key
        group_id='xxxxxxxx', # please give your group_id
        query_per_second=1,
        max_out_len=2048,
        max_seq_len=2048,
        batch_size=8),
]

infer = dict(
    partitioner=dict(type=NaivePartitioner),
    runner=dict(
        type=LocalAPIRunner,
        max_num_workers=4,
        concurrent_users=4,
        task=dict(type=OpenICLInferTask)),
Songyang Zhang's avatar
Songyang Zhang committed
35
36
)

37
work_dir = 'outputs/api_minimax/'