mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00

* Add support for Rendu API * fix lint issue * fix lint issue * fix lint issue * Update --------- Co-authored-by: 13190 <zeyu.yan@transn.com> Co-authored-by: tonysy <sy.zhangbuaa@gmail.com>
40 lines
1006 B
Python
40 lines
1006 B
Python
from mmengine.config import read_base
|
|
from opencompass.models import Rendu
|
|
from opencompass.partitioners import NaivePartitioner
|
|
from opencompass.runners.local_api import LocalAPIRunner
|
|
from opencompass.tasks import OpenICLInferTask
|
|
|
|
with read_base():
|
|
from ..summarizers.medium import summarizer
|
|
from ..datasets.ceval.ceval_gen import ceval_datasets
|
|
|
|
datasets = [
|
|
*ceval_datasets
|
|
]
|
|
|
|
models = [
|
|
dict(
|
|
abbr='Rendu',
|
|
type=Rendu,
|
|
path='rendu',
|
|
key='xxxxxx',
|
|
url='xxxxxx',
|
|
generation_kwargs={
|
|
'temperature': 0.1,
|
|
'top_p': 0.9,
|
|
},
|
|
query_per_second=10,
|
|
max_out_len=2048,
|
|
max_seq_len=2048,
|
|
batch_size=8),
|
|
]
|
|
|
|
infer = dict(partitioner=dict(type=NaivePartitioner),
|
|
runner=dict(
|
|
type=LocalAPIRunner,
|
|
max_num_workers=1,
|
|
concurrent_users=1,
|
|
task=dict(type=OpenICLInferTask)), )
|
|
|
|
work_dir = 'outputs/api_rendu/'
|