OpenCompass/opencompass/configs/models/pulse/hf_pulse_7b.py
Songyang Zhang 46cc7894e1
[Feature] Support import configs/models/summarizers from whl (#1376)
* [Feature] Support import configs/models/summarizers from whl

* Update LCBench configs

* Update

* Update

* Update

* Update

* update

* Update

* Update

* Update

* Update

* Update
2024-08-01 00:42:48 +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),
)
]