2023-07-06 16:02:39 +08:00
|
|
|
from opencompass.models import HuggingFaceCausalLM
|
|
|
|
|
|
|
|
models = [
|
|
|
|
dict(
|
|
|
|
type=HuggingFaceCausalLM,
|
2023-09-08 15:41:20 +08:00
|
|
|
abbr='baichuan2-7b-base-hf',
|
|
|
|
path="baichuan-inc/Baichuan2-7B-Base",
|
|
|
|
tokenizer_path='baichuan-inc/Baichuan2-7B-Base',
|
2023-07-06 16:02:39 +08:00
|
|
|
tokenizer_kwargs=dict(
|
|
|
|
padding_side='left',
|
|
|
|
truncation_side='left',
|
2023-07-11 10:51:49 +08:00
|
|
|
trust_remote_code=True,
|
2023-09-08 15:41:20 +08:00
|
|
|
use_fast=False,
|
2023-07-06 16:02:39 +08:00
|
|
|
),
|
|
|
|
max_out_len=100,
|
|
|
|
max_seq_len=2048,
|
|
|
|
batch_size=8,
|
2023-09-08 15:41:20 +08:00
|
|
|
model_kwargs=dict(device_map='auto', trust_remote_code=True),
|
2023-07-06 16:02:39 +08:00
|
|
|
run_cfg=dict(num_gpus=1, num_procs=1),
|
|
|
|
)
|
|
|
|
]
|