mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
24 lines
580 B
Python
24 lines
580 B
Python
![]() |
from opencompass.models import HuggingFaceCausalLM
|
||
|
import torch
|
||
|
|
||
|
models = [
|
||
|
dict(
|
||
|
type=HuggingFaceCausalLM,
|
||
|
abbr='PULSE-7bv5',
|
||
|
path='OpenMEDLab/PULSE-7bv5',
|
||
|
tokenizer_path='OpenMEDLab/PULSE-7bv5',
|
||
|
model_kwargs=dict(
|
||
|
trust_remote_code=True,
|
||
|
torch_dtype=torch.bfloat16,
|
||
|
## load_in_4bit=True,
|
||
|
device_map='auto',
|
||
|
),
|
||
|
tokenizer_kwargs=dict(
|
||
|
trust_remote_code=True,
|
||
|
),
|
||
|
max_out_len=1024,
|
||
|
batch_size=1,
|
||
|
run_cfg=dict(num_gpus=2),
|
||
|
)
|
||
|
]
|