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

* [Feature] Support model-bound text postprocessor, add claude as an example * update * update * minor fix --------- Co-authored-by: zhoufengzhe <zhoufengzhe@pjlab.org.cn>
20 lines
602 B
Python
20 lines
602 B
Python
from mmengine.config import read_base
|
|
from opencompass.partitioners import NaivePartitioner
|
|
from opencompass.runners import LocalRunner
|
|
from opencompass.tasks import OpenICLInferTask
|
|
|
|
with read_base():
|
|
# choose a list of datasets
|
|
from .datasets.collections.chat_medium import datasets
|
|
# and output the results in a choosen format
|
|
from .summarizers.medium import summarizer
|
|
from .models.claude import models
|
|
|
|
infer = dict(
|
|
partitioner=dict(type=NaivePartitioner),
|
|
runner=dict(
|
|
type=LocalRunner,
|
|
max_num_workers=8,
|
|
task=dict(type=OpenICLInferTask)),
|
|
)
|