OpenCompass/opencompass/configs/models/gemini/gemini_1_5_pro.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

23 lines
573 B
Python

from opencompass.models import Gemini
api_meta_template = dict(round=[
dict(role='HUMAN', api_role='HUMAN'),
dict(role='BOT', api_role='BOT', generate=True),
], )
models = [
dict(
abbr='gemini-1.5-pro',
type=Gemini,
path='gemini-1.5-pro',
key=
'ENV', # The key will be obtained from $GEMINI_API_KEY, but you can write down your key here as well
meta_template=api_meta_template,
query_per_second=2,
max_out_len=100,
max_seq_len=2048,
batch_size=1,
temperature=1,
)
]