Skip to content

Conversation

@irar2
Copy link
Collaborator

@irar2 irar2 commented Oct 29, 2025

Fixes #226

The test failed because another test used random generator, and this made changed the pseudo random numbers generated for the seed test.

This PR makes rand a field in the simulator, this prevents the above collision. This fix is important not only for the tests, but also for DP, allowing to reproduce the responses of each rank.

This PR also changes the uuid initialization: it now creates its own rand (with the same seed), to prevent the collision with random numbers generation and ensure reproducible results.

@irar2 irar2 requested a review from mayabar October 29, 2025 06:47
@mayabar
Copy link
Collaborator

mayabar commented Oct 29, 2025

/lgtm
/approve

@github-actions github-actions bot added the lgtm label Oct 29, 2025
@github-actions github-actions bot merged commit 5ca355b into llm-d:main Oct 29, 2025
4 checks passed
@irar2 irar2 deleted the random branch October 29, 2025 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix occasional seed test failures

2 participants