forked from OpenGenerativeAI/llm-colosseum
-
Notifications
You must be signed in to change notification settings - Fork 1
/
script.py
55 lines (48 loc) · 1.31 KB
/
script.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import sys
from dotenv import load_dotenv
from eval.game import Game, Player1, Player2
from loguru import logger
logger.remove()
logger.add(sys.stdout, level="INFO")
load_dotenv()
# List of models Tested for the leaderboards
li_models = [
"anthropic:claude-3-sonnet-20240229",
"mistral:pixtral-large-latest",
"mistral:pixtral-12b-2409",
"anthropic:claude-3-haiku-20240307",
"openai:gpt-4o",
"openai:gpt-4o-mini",
"anthropic:claude-3-sonnet-20240229",
]
# Starting with vision tournamennt
def main(
model_1: str = "openai:gpt-4o-mini",
model_2: str = "anthropic:claude-3-haiku-20240307",
type_1: str = "vision",
type_2: str = "vision",
):
# Environment Settings
game = Game(
render=True,
player_1=Player1(
nickname="Daddy",
model="openai:gpt-4o-mini",
robot_type="vision", # "vision" or "text"
temperature=0.7,
),
player_2=Player2(
nickname="Baby",
model="anthropic:claude-3-haiku-20240307",
robot_type="vision",
temperature=0.7,
),
)
return game.run()
if __name__ == "__main__":
main(
model_1="openai:gpt-4o-mini",
model_2="anthropic:claude-3-haiku-20240307",
type_1="vision",
type_2="vision",
)