mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
26 lines
848 B
Python
26 lines
848 B
Python
![]() |
from opencompass.openicl.icl_prompt_template import PromptTemplate
|
||
|
from opencompass.openicl.icl_retriever import ZeroRetriever
|
||
|
from opencompass.openicl.icl_inferencer import GenInferencer
|
||
|
from opencompass.datasets import HFDataset
|
||
|
|
||
|
z_bench_reader_cfg = dict(
|
||
|
input_columns=['text'], output_column='category', train_split='test')
|
||
|
|
||
|
z_bench_infer_cfg = dict(
|
||
|
prompt_template=dict(
|
||
|
type=PromptTemplate,
|
||
|
template='{text}',
|
||
|
),
|
||
|
retriever=dict(type=ZeroRetriever),
|
||
|
inferencer=dict(type=GenInferencer))
|
||
|
|
||
|
z_bench_dataset = dict(
|
||
|
type=HFDataset,
|
||
|
path=
|
||
|
'/mnt/petrelfs/gaotong/llm_eval/openagieval_dataset/eval_datasets/z_bench',
|
||
|
data_dir=
|
||
|
'/mnt/petrelfs/gaotong/llm_eval/openagieval_dataset/eval_datasets/z_bench',
|
||
|
name='question',
|
||
|
reader_cfg=z_bench_reader_cfg,
|
||
|
infer_cfg=z_bench_infer_cfg)
|