-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample_2.py
33 lines (27 loc) · 886 Bytes
/
example_2.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
from WYK.Judge import Judge
from pprint import pprint
if __name__ == "__main__":
LLMS = [
"unsloth/mistral-7b-instruct-v0.3-bnb-4bit",
"unsloth/Phi-3-mini-4k-instruct-bnb-4bit",
"unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit",
]
scores = []
for red_llm in LLMS:
for blue_llm in LLMS:
judge = Judge(
red_agent_model=red_llm,
blue_agent_model=blue_llm,
judge_model="unsloth/mistral-7b-instruct-v0.3-bnb-4bit",
debug=True,
)
score, rational, list_of_responses = judge.assess()
scores.append(
{
"red": red_llm,
"blue": blue_llm,
"score": score,
"conversation": list_of_responses,
}
)
pprint(scores)