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
16 lines
342 B
Python
16 lines
342 B
Python
from opencompass.models import HuggingFaceBaseModel
|
|
|
|
models = [
|
|
dict(
|
|
type=HuggingFaceBaseModel,
|
|
abbr='gemma2-2b-hf',
|
|
path='google/gemma-2-2b',
|
|
max_out_len=1024,
|
|
batch_size=4,
|
|
run_cfg=dict(num_gpus=1),
|
|
model_kwargs=dict(
|
|
torch_dtype='torch.bfloat16',
|
|
),
|
|
)
|
|
]
|