mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
24 lines
644 B
Python
24 lines
644 B
Python
from mmengine.config import read_base
|
|
|
|
with read_base():
|
|
from .datasets.piqa.piqa_ppl import piqa_datasets
|
|
from .datasets.siqa.siqa_gen import siqa_datasets
|
|
|
|
|
|
datasets = [*piqa_datasets, *siqa_datasets]
|
|
|
|
from opencompass.models import HuggingFaceCausalLM
|
|
|
|
models = [
|
|
dict(
|
|
type=HuggingFaceCausalLM,
|
|
path='huggyllama/llama-7b',
|
|
tokenizer_path='huggyllama/llama-7b',
|
|
tokenizer_kwargs=dict(padding_side='left', truncation_side='left'),
|
|
max_seq_len=2048,
|
|
abbr='llama-7b',
|
|
max_out_len=100,
|
|
batch_size=16,
|
|
run_cfg=dict(num_gpus=1),
|
|
)
|
|
] |