OpenCompass/configs/models/gemma/hf_gemma2_9b_it.py

17 lines
399 B
Python
Raw Normal View History

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