Skip to content

[Data] Always pin the seed when doing file-based random shuffle - #50924

Merged
raulchen merged 5 commits into
masterfrom
ak/rnd-fls-shfl-fx
Mar 11, 2025
Merged

raulchen merged 5 commits into
masterfrom
ak/rnd-fls-shfl-fx

Conversation

@alexeykudinkin

Copy link
Copy Markdown
Contributor

Why are these changes needed?

Right now we're not pinning seed unless it's provided which could lead to non-determinism when tasks are retried.

Instead we always pin the seed to either of

  • User-specified seed
  • time.time()

Related issue number

Checks

@alexeykudinkin
alexeykudinkin requested a review from a team as a code owner February 26, 2025 20:37

@raulchen raulchen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. but you seemed to put the wrong title for this PR

@raulchen
raulchen enabled auto-merge (squash) February 27, 2025 21:47
@github-actions github-actions Bot added the go add ONLY when ready to merge, run all tests label Feb 27, 2025
@github-actions
github-actions Bot disabled auto-merge February 28, 2025 00:30
Signed-off-by: Alexey Kudinkin <[email protected]>
Signed-off-by: Alexey Kudinkin <[email protected]>
Signed-off-by: Alexey Kudinkin <[email protected]>
@raulchen
raulchen merged commit 579fbcc into master Mar 11, 2025
@raulchen
raulchen deleted the ak/rnd-fls-shfl-fx branch March 11, 2025 17:09
qinyiyan pushed a commit to qinyiyan/ray that referenced this pull request Mar 13, 2025
…project#50924)

## Why are these changes needed?

Right now we're not pinning seed unless it's provided which could lead
to non-determinism when tasks are retried.

Instead we always pin the seed to either of 

  - User-specified seed
  - `time.time()`

---------

Signed-off-by: Alexey Kudinkin <[email protected]>
park12sj pushed a commit to park12sj/ray that referenced this pull request Mar 18, 2025
…project#50924)

## Why are these changes needed?

Right now we're not pinning seed unless it's provided which could lead
to non-determinism when tasks are retried.

Instead we always pin the seed to either of 

  - User-specified seed
  - `time.time()`

---------

Signed-off-by: Alexey Kudinkin <[email protected]>
dhakshin32 pushed a commit to dhakshin32/ray that referenced this pull request Mar 27, 2025
…project#50924)

## Why are these changes needed?

Right now we're not pinning seed unless it's provided which could lead
to non-determinism when tasks are retried.

Instead we always pin the seed to either of

  - User-specified seed
  - `time.time()`

---------

Signed-off-by: Alexey Kudinkin <[email protected]>
Signed-off-by: Dhakshin Suriakannu <[email protected]>
wingkitlee0 added a commit to wingkitlee0/ray that referenced this pull request Mar 17, 2026
We set use_timestamp_as_default=True to pin the seed at plan time
so that retried shuffle tasks produce the same output.
See ray-project#50924.

Signed-off-by: Kit Lee <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-backlog go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants