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

* [Feature] Support 360API and FixKRetriever for CSQA dataset * Update API * Update API * [Feature] Support 360API and FixKRetriever for CSQA dataset * Update API * Update API * rm mathbench * fix_lint * Update opencompass/models/bytedance_api.py Co-authored-by: Hubert <42952108+yingfhu@users.noreply.github.com> * update * update * update --------- Co-authored-by: Hubert <42952108+yingfhu@users.noreply.github.com>
36 lines
872 B
Python
36 lines
872 B
Python
from mmengine.config import read_base
|
|
from opencompass.models import AI360GPT
|
|
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='360GPT_S2_V9',
|
|
type=AI360GPT,
|
|
path='360GPT_S2_V9',
|
|
key="xxxxxxxxxxxx",
|
|
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=2,
|
|
concurrent_users=2,
|
|
task=dict(type=OpenICLInferTask)),
|
|
)
|
|
|
|
work_dir ="./output/360GPT_S2_V9" |