You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: trl/experimental/judges/judges.py
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -24,13 +24,6 @@
24
24
from ...import_utilsimportis_llm_blender_available
25
25
26
26
27
-
ifis_llm_blender_available():
28
-
importllm_blender
29
-
30
-
ifis_openai_available():
31
-
fromopenaiimportOpenAI
32
-
33
-
34
27
DEFAULT_PAIRWISE_SYSTEM_PROMPT='''I require a leaderboard for various large language models. I'll provide you with prompts given to these models and their corresponding outputs. Your task is to assess these responses, and select the model that produces the best output from a human perspective.
35
28
36
29
## Instruction
@@ -213,6 +206,8 @@ class PairRMJudge(BasePairwiseJudge):
213
206
def__init__(self):
214
207
ifnotis_llm_blender_available():
215
208
raiseValueError("llm-blender is not installed. Please install it with `pip install llm-blender`.")
0 commit comments