-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[eval model] store world logs per task #3718
Conversation
Please add a test, and also merge the entire bits into the f-string, rather than using concatenation |
e672924
to
d79f19d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tyvm
return world_logs | ||
else: | ||
base_outfile, extension = os.path.splitext(world_logs) | ||
return f'{base_outfile}_{task}{extension}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be this?
return f'{base_outfile}_{task}.{extension}'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, splitext includes the . In the ext
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad, sorry!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the extension contains "."
Patch description
Currently when running
parlai em --world-logs .....
it only stores the world logs for the very last task if multitasking.This pr would fix this issue by adding the task name as suffix to the world log file path if it's multitasking.
Fixes #3648
Testing steps
Other information