-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[World logging] Fix world logging for dynamic batching #3867
Conversation
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.
Thx seems reasonable
tests/test_dynamicbatching.py
Outdated
dict( | ||
model_file='zoo:unittest/transformer_generator2/model', | ||
task='integration_tests:RepeatTeacher:2000', | ||
world_logs=save_report, |
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.
nit: world_logs = save_report + '.jsonl'
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.
Are you sure about that?
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.
https://github.com/facebookresearch/ParlAI/blob/master/tests/test_eval_model.py#L214-L215
is it here that world_logs
and report_filename
share the same path?
Patch description
Episodes were not properly being flushed during world logging since world.acts always returns
[None, None]
-- acts are only tracked at the DynamicBatchWorld level. Added a manual check in world logging for a parley to see if the episode is done.Testing steps
Added a test that broke before the change and passes after.