OpenCompass/configs/models/pulse/hf_pulse_7b.py
QXY fea11b1d20
[Feature] add support for hf_pulse_7b (#1255)
* add support for hf_pulse_7b

* Update hf_pulse_7b.py
2024-07-29 19:01:52 +08:00

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),
)
]