DataLoader: make per-epoch reshuffle the framework default (design Part C item 1)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- documentation, machine-learning, testing-qa
Research direction
Start with initDataLoader and the trainers and PyTorch twins named in the issue, then inspect compare_memory.py, examples/_shared/DETERMINISM.md, and the HAR README caveat. Trace the existing reshuffle configuration and parity checks before updating all listed examples. Done means defaults, logs, compatibility checks, regenerated references, documentation, and parity tolerances are consistent across the C and PyTorch paths.
Written by the indexing model from the issue text.
Description
Design follow-up from the batch-size scheduler port (#445, design spec Part C item 1). Leo: "we need to make it the default at some point in time."
Today: initDataLoader defaults reshufflePerEpoch = false (#381 opt-in). Since #445 only the HAR float32 trainer opts in by default (RESHUFFLE=1); train_c_sym.c, train_c_adamw.c, the finetune/continual trainers and the other five examples stay shuffle-once, and only the HAR PyTorch twin mirrors the reshuffle.
Consequence right now: the packed-SYM memory study compares a reshuffling float reference against shuffle-once SYM/AdamW arms (compare_memory.py's "keeps up with FLOAT32" gate, ACC_TOL = 0.01), and a stored float reference re-run with defaults no longer reproduces — see the caveat in examples/har_classifier/README.md. compare_memory._BUDGET_DEFAULTS has no reshuffle key, so the config-compatibility check cannot flag the asymmetry.
Work:
- Flip the default in
initDataLoader(reshufflePerEpoch = truewhenshuffleis set); keepdataLoaderSetReshufflePerEpochas the opt-out. - Add the
RESHUFFLEenv knob (default 1) to the remaining HAR trainers and the other examples; recordreshufflein every run log. - Make all six PyTorch twins continue the xorshift state per epoch (
shuffle_indices_with_state/reshuffle_indicesfrom #445). Noteexamples/_shared/DETERMINISM.md: the mirror is bit-exact only when nothing else draws from the C global RNG between the shuffles — examples with Dropout or seeded-SR write-back rounding cannot be bit-exact, so their parity tolerances must be re-validated (≥ 10 seeds). - Add
"reshuffle": 1tocompare_memory._BUDGET_DEFAULTSand treat a mismatch as code drift; regenerate the memory-study float reference. - Update
DETERMINISM.mdand the README caveat.
Refs: #381 (opt-in reshuffle), #445 (float trainer default + twin mirror).
- Dominant language
- C
- Stars
- 2
- Forks
- 3
- Avg merge
- 13h 6m
- Merged PRs (30d)
- 9
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from es-ude/OnDeviceTraining
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
es-ude/OnDeviceTraining#549 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
es-ude/OnDeviceTraining#547 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
es-ude/OnDeviceTraining#536 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
es-ude/OnDeviceTraining#478 ·
Maintainers usually reply within 1 day
-
bug documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
es-ude/OnDeviceTraining#459 ·
Maintainers usually reply within 1 day
All issues in es-ude/OnDeviceTraining
Similar issues
-
issue: bug report
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 2 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
BasedHardware/omi#26486 ·
Maintainers usually reply within 1 day
-
The LLVM object can build before collection_config.h is generatedPossibly taken @Vonng claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
aws/pgcollection#51 ·
-
area/docdb kind/failing-test priority/medium status/awaiting-triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
yugabyte/yugabyte-db#39462 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
libreswan/libreswan#3185 · 1 comment ·
Maintainers usually reply within 1 day