OpenCompass/configs/models/gemma/hf_gemma2_27b_it.py
Songyang Zhang c09fc79ba8
[Feature] Support OpenAI ChatCompletion (#1389)
* [Feature] Support import configs/models/summarizers from whl

* Update

* Update openai sdk

* Update

* Update gemma
2024-08-01 19:10:13 +08:00

17 lines
401 B
Python

from opencompass.models import HuggingFacewithChatTemplate
models = [
dict(
type=HuggingFacewithChatTemplate,
abbr='gemma2-27b-it-hf',
path='google/gemma-2-27b-it',
max_out_len=2048,
batch_size=2,
run_cfg=dict(num_gpus=2),
stop_words=['<end_of_turn>'],
model_kwargs=dict(
torch_dtype='torch.bfloat16',
)
)
]