mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00

* [Feature] Support import configs/models/summarizers from whl * Update * Update openai sdk * Update * Update gemma
17 lines
399 B
Python
17 lines
399 B
Python
from opencompass.models import HuggingFacewithChatTemplate
|
|
|
|
models = [
|
|
dict(
|
|
type=HuggingFacewithChatTemplate,
|
|
abbr='gemma2-2b-it-hf',
|
|
path='google/gemma-2-2b-it',
|
|
max_out_len=2048,
|
|
batch_size=4,
|
|
run_cfg=dict(num_gpus=1),
|
|
stop_words=['<end_of_turn>'],
|
|
model_kwargs=dict(
|
|
torch_dtype='torch.bfloat16',
|
|
)
|
|
)
|
|
]
|