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

litdata backed tinystories #1186

Merged
merged 6 commits into from
Mar 27, 2024
Merged

litdata backed tinystories #1186

merged 6 commits into from
Mar 27, 2024

Conversation

carmocca
Copy link
Contributor

@carmocca carmocca commented Mar 24, 2024

Fixes #995
Fixes #1085

The tokenization is slightly different, this would be a bug in Karpathy's implementation.

This implementation no longer requires a ton of memory per worker

@carmocca carmocca self-assigned this Mar 24, 2024
@carmocca carmocca marked this pull request as ready for review March 24, 2024 20:58
Copy link
Contributor

@lantiga lantiga left a comment

Choose a reason for hiding this comment

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

Looks great

@lantiga
Copy link
Contributor

lantiga commented Mar 25, 2024

Failures are legit though

@carmocca
Copy link
Contributor Author

Yes, the tests need Lightning-AI/litdata#77 to land and be released first

litgpt/data/tinystories.py Outdated Show resolved Hide resolved
@carmocca carmocca merged commit d653607 into main Mar 27, 2024
5 of 8 checks passed
@carmocca carmocca deleted the data/tiny-stories branch March 27, 2024 01:56
rasbt pushed a commit that referenced this pull request Apr 3, 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.

Issues with TinyStories Use litdata for TinyStories tokenization
3 participants