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

Handle long file names in convert text to mds #1579

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

irenedea
Copy link
Contributor

@irenedea irenedea commented Oct 8, 2024

Sometimes we get OSError: [Errno 36] File name too long because the downloaded file names are too long. To address this, we use temp files.

Manual tests

Behavior is unchanged for regular file names

test-handle-long-filenames-Q7wLA5 (Completed)
test-handle-long-filenames-baseline-joM8gO (Completed)

No error for long file names

test-handle-long-filenames-error-baseline-8iT6hK (Failure with OSError: [Errno 36] File name too long)
test-handle-long-filenames-error-QZbmPS (Completed)

@irenedea irenedea requested a review from a team as a code owner October 8, 2024 23:27
@irenedea irenedea marked this pull request as draft October 8, 2024 23:27
@irenedea irenedea marked this pull request as ready for review October 9, 2024 00:29
Copy link
Contributor

@snarayan21 snarayan21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just one comment for understanding

llmfoundry/utils/data_prep_utils.py Show resolved Hide resolved
@irenedea irenedea merged commit 813d50e into mosaicml:main Oct 9, 2024
9 checks passed
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