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

Axolotl test suite fills up /tmp and does not clear space once completed #830

Closed
6 of 8 tasks
fpreiss opened this issue Nov 5, 2023 · 2 comments · Fixed by #831
Closed
6 of 8 tasks

Axolotl test suite fills up /tmp and does not clear space once completed #830

fpreiss opened this issue Nov 5, 2023 · 2 comments · Fixed by #831
Labels
bug Something isn't working

Comments

@fpreiss
Copy link
Contributor

fpreiss commented Nov 5, 2023

Please check that this issue hasn't been reported before.

  • I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

Running pytest axolotl/tests multiple times on the same machine should consistently give the same output.

Current behaviour

As files are left behind in /tmp, at some point (for me running pytest axolotl/tests twice). The system runs out of storage in /tmp and multiple tests fail with OSError: [Errno 28] No space left on device. See the following directory overview:

$ dust /tmp
Did not have permissions for all directories
1.4G     ┌── checkpoint-10      │                ░█ │   4%
1.4G     ├── checkpoint-20      │                ░█ │   4%
2.8G   ┌─┴ tmptprwyfva          │                ██ │   9%
3.2G   ├── tmpg_r4o387          │                ██ │  10%
1.4G   │ ┌── checkpoint-10      │                ░█ │   4%
1.4G   │ ├── checkpoint-20      │                ░█ │   4%
3.2G   ├─┴ tmpi9lgife8          │                ██ │  10%
1.4G   │ ┌── checkpoint-10      │                ░█ │   4%
1.4G   │ ├── checkpoint-20      │                ░█ │   4%
3.2G   ├─┴ tmpxtjofffg          │                ██ │  10%
2.6G   │ ┌── pytorch_model.bin  │             ░░░██ │   8%
2.6G   │ │ ┌── pytorch_model.bin│             ░▒▒██ │   8%
2.6G   │ │ ├── optimizer.pt     │             ░▒▒██ │   8%
5.3G   │ ├─┴ checkpoint-79      │             ░████ │  17%
7.9G   ├─┴ tmpu3z6b6u7          │             █████ │  25%
2.6G   │ ┌── pytorch_model.bin  │             ░░░██ │   8%
2.6G   │ │ ┌── pytorch_model.bin│             ░▒▒██ │   8%
2.6G   │ │ ├── optimizer.pt     │             ░▒▒██ │   8%
5.3G   │ ├─┴ checkpoint-177     │             ░████ │  17%
7.9G   ├─┴ tmp3_8rxmvb          │             █████ │  25%
 31G ┌─┴ tmp                    │██████████████████ │ 100%

Steps to reproduce

pytest axolotl/tests
pytest axolotl/tests

Config yaml

No response

Possible solution

No response

Which Operating Systems are you using?

  • Linux
  • macOS
  • Windows

Python Version

3.10

axolotl branch-commit

6459ac7

Acknowledgements

  • My issue title is concise, descriptive, and in title casing.
  • I have searched the existing issues to make sure this bug has not been reported yet.
  • I am using the latest version of axolotl.
  • I have provided enough information for the maintainers to reproduce and diagnose the issue.
@fpreiss fpreiss added the bug Something isn't working label Nov 5, 2023
@winglian
Copy link
Collaborator

winglian commented Nov 5, 2023

My hunch is we need to cleanuo the output dir after each e2e test. https://github.com/OpenAccess-AI-Collective/axolotl/blob/main/tests/e2e/test_fused_llama.py

@winglian
Copy link
Collaborator

winglian commented Nov 5, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants