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

save_state() and load_state() do not work correctly with multi-gpu with shuffle=True in dataloader #3158

Open
2 of 4 tasks
isayoften opened this issue Oct 11, 2024 · 0 comments

Comments

@isayoften
Copy link

System Info

- `Accelerate` version: 1.0.0
- Platform: Linux-5.15.154+-x86_64-with-glibc2.35
- `accelerate` bash location: /opt/conda/bin/accelerate
- Python version: 3.10.14
- Numpy version: 1.26.4
- PyTorch version (GPU?): 2.4.0 (True)
- PyTorch XPU available: False
- PyTorch NPU available: False
- PyTorch MLU available: False
- PyTorch MUSA available: False
- System RAM: 31.36 GB
- GPU type: Tesla T4
- `Accelerate` default config:
	Not found

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • One of the scripts in the examples/ folder of Accelerate or an officially supported no_trainer script in the examples folder of the transformers repo (such as run_no_trainer_glue.py)
  • My own task or dataset (give details below)

Reproduction

https://www.kaggle.com/code/amanattheedge/demonstration

Expected behavior

Maybe I'm doing something wrong, but save_state() and load_state() should memorize the RNG states so that the previous shuffling of data within the new epoch can be restored.

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

No branches or pull requests

1 participant