Skip to content

Conversation

@ruiqi-zhong
Copy link
Contributor

Parallelize different evaluators during a RL training loop.

@ruiqi-zhong ruiqi-zhong requested review from joschu and kennyyu October 31, 2025 05:46

# Create tasks for all evaluators
tasks = [
run_single_evaluation(evaluator, cfg, i_batch, sampling_client) for evaluator in evaluators
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we use asyncio.create_task(..., name=f"evals_task_{ev_name}") to give these coroutines a name? This makes it easier to identify these workloads in traces!

Example: https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/rl/train.py#L347-L350

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch! just addressed.

@ruiqi-zhong ruiqi-zhong merged commit c0179eb into main Oct 31, 2025
2 checks passed
@ruiqi-zhong ruiqi-zhong deleted the parallel-eval branch November 1, 2025 15:56
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.

3 participants