Skip to content

fix: keep every task's responses when reloading them from details - #1350

Open
tonycoder-hub wants to merge 1 commit into
huggingface:mainfrom
tonycoder-hub:cursor/fix-details-reload-multi-task-responses-3037
Open

fix: keep every task's responses when reloading them from details#1350
tonycoder-hub wants to merge 1 commit into
huggingface:mainfrom
tonycoder-hub:cursor/fix-details-reload-multi-task-responses-3037

Conversation

@tonycoder-hub

Copy link
Copy Markdown

Summary

_load_responses_from_details reassigned model_responses[sampling_method] on every task, so only the last task's responses survived. Those were then zipped with the documents of all tasks when computing metrics.

Concatenate every task's responses instead, in the same order used to build self.sampling_docs.

Does not overlap #1345 (evaluation_tracker.py file-name matching). Distinct from #1336#1345.

Test plan

  • New test_responses_of_all_tasks_are_loaded fails on current main (only the last task kept) and passes after
  • New test_responses_follow_the_document_order realigns details to pipeline task order regardless of load order

_load_responses_from_details reassigned model_responses[sampling_method]
for each task, so only the last task's responses survived and were then
zipped with the documents of all tasks. Concatenate them instead, in the
task order used to build sampling_docs.

Co-authored-by: Tony Coder <407243179@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants