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 perf seed #254

Merged
merged 1 commit into from
Dec 19, 2024
Merged
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
1 change: 1 addition & 0 deletions evalscope/evaluator/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def __init__(self,
**kwargs)

# Get prompts from dataset
# TODO: support sampler
self.prompts = self.data_adapter.gen_prompts(data_dict=self.dataset)
del self.dataset

Expand Down
4 changes: 3 additions & 1 deletion evalscope/perf/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ def run_perf_benchmark(args):
args = Arguments(**args)
elif isinstance(args, Namespace):
args = Arguments.from_args(args)
seed_everything(args.seed)

if args.seed is not None:
seed_everything(args.seed)

# Setup logger and output
args.outputs_dir = get_output_path(args)
Expand Down
Loading