Skip to content

Commit

Permalink
switch to run directory when running multiple tasks with the same run…
Browse files Browse the repository at this point in the history
… directory (#708)

Co-authored-by: aisi-inspect <166920645+aisi-inspect@users.noreply.github.com>
  • Loading branch information
jjallaire-aisi and aisi-inspect authored Oct 16, 2024
1 parent a1ea3da commit c99e224
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Requirements: require semver>=3.0.0
- Open log files in binary mode when reading headers (fixes ijson deprecation warning).
- Bugfix: strip protocol prefix when resolving eval event content
- Bugfix: switch to run directory when running multiple tasks with the same run directory.

## v0.3.41 (11 October 2024)

Expand Down
3 changes: 2 additions & 1 deletion src/inspect_ai/_eval/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ async def eval_run(
with task_run_dir_switching():
return await run_multiple(task_run_options, parallel)
else:
return await run_multiple(task_run_options, parallel)
with chdir(run_dir):
return await run_multiple(task_run_options, parallel)

# single mode is for a single task definitions (which
# could in turn be executed for multiple models)
Expand Down

0 comments on commit c99e224

Please sign in to comment.