Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deterministic permutation function #11

Closed
jettjaniak opened this issue Jan 26, 2024 · 0 comments · Fixed by #23
Closed

deterministic permutation function #11

jettjaniak opened this issue Jan 26, 2024 · 0 comments · Fixed by #23
Assignees
Labels
feature New feature or request train

Comments

@jettjaniak
Copy link
Contributor

  • context
    • we want reproducible training
    • one of the elements of that is ensuring model is seeing samples in the same order in every run
    • we need to shuffle samples in each epoch
  • we will go with a deterministic function in Python
    • permute(input_output: list, seed: int) -> None
      • it returns nothing, but permutes the list in-place
      • permutation doesn't depend on the elements
      • but only on the seed and length of the input
      • put it in train/permute.py
  • we don't want to use any libraries, as RNG engines in these can change over time
  • here's a (buggy) idea how to do it https://chat.openai.com/c/b4c2a457-1fb3-4f20-8016-6bdf71a0a2d3
    • use some reasonable LCG parameters (ideally from an old classic implementation)
@jettjaniak jettjaniak added feature New feature or request train labels Jan 26, 2024
@SrGonao SrGonao linked a pull request Feb 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request train
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants