Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix problematic sample in Schelling Point #1534

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion evals/elsuite/schelling_point/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from evals.elsuite.schelling_point.prompts import sys_prompts_ci, sys_prompts_no_ci
from evals.elsuite.schelling_point.utils import get_response
from evals.eval import Eval
from evals.solvers.solver import Solver


class SchellingPoint(Eval):
Expand All @@ -22,6 +23,9 @@ def __init__(
*args,
**kwargs,
):
if any([isinstance(completion_fn, Solver) for completion_fn in completion_fns]):
raise NotImplementedError("SchellingPoint does not currently support Solvers")

super().__init__(completion_fns, *args, **kwargs)

random.seed(seed)
Expand All @@ -34,7 +38,6 @@ def __init__(

self.temperature = temperature

self.completion_fns = completion_fns
if len(self.completion_fns) == 1:
self.completion_fns = self.completion_fns * n_copies
assert len(self.completion_fns) == n_copies, "Must provide n_copies completion_fns"
Expand Down
4 changes: 2 additions & 2 deletions evals/registry/data/schelling_point/mix.jsonl
Git LFS file not shown
4 changes: 2 additions & 2 deletions evals/registry/data/schelling_point/owt_5.jsonl
Git LFS file not shown
Loading