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

Use a temporary directory for downloading finetuning dataset files #1608

Merged
merged 15 commits into from
Oct 24, 2024

Conversation

irenedea
Copy link
Contributor

@irenedea irenedea commented Oct 22, 2024

Uses a temporary directory to download finetuning files to. Similar to mosaicml/composer#3673

This avoids issues where the working directory has limits on file sizes or permission restrictions. This also enables more configurability because we can set the default temp dir if needed.

Manual Tests

jsonl file test-tempdir-finetuning-jsonl-file-Jh9IH6
jsonl file on 16 gpus test-tempdir-finetuning-jsonl-file-16-gpus-Lxmfdv
hf dataset + safeload test-tempdir-finetuning-hf-dataset-DxwRw9
hf dataset + safeload on 16 gpus test-tempdir-finetuning-hf-dataset-16-gpus-OkPHge

@irenedea irenedea changed the title Tempdir finetuning Use a temporary directory for downloading finetuning dataset files Oct 23, 2024
@irenedea irenedea marked this pull request as ready for review October 23, 2024 06:11
@irenedea irenedea requested a review from a team as a code owner October 23, 2024 06:11
llmfoundry/data/finetuning/dataloader.py Outdated Show resolved Hide resolved
llmfoundry/data/finetuning/dataloader.py Outdated Show resolved Hide resolved
llmfoundry/utils/file_utils.py Outdated Show resolved Hide resolved
@irenedea irenedea requested a review from dakinggg October 23, 2024 18:22
@irenedea irenedea requested a review from mvpatel2000 October 24, 2024 19:00
@irenedea irenedea enabled auto-merge (squash) October 24, 2024 22:34
@irenedea irenedea merged commit ed6b72b into mosaicml:main Oct 24, 2024
9 checks passed
dakinggg added a commit to dakinggg/llm-foundry that referenced this pull request Nov 4, 2024
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

Successfully merging this pull request may close these issues.

2 participants