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

Integrate stateful dataset in tinyllama.py #797

Merged
merged 14 commits into from
Jan 23, 2024
Merged

Conversation

awaelchli
Copy link
Contributor

@awaelchli awaelchli commented Dec 7, 2023

Replaces the fast-forward resumption of streaming dataset in tinyllama.py with the state-dict approach for faster reloading of the dataset state.

Requires fixing of

@awaelchli awaelchli changed the title Integrate stateful dataset in tinyllama.py [WIP] Integrate stateful dataset in tinyllama.py Dec 7, 2023
@awaelchli awaelchli changed the title [WIP] Integrate stateful dataset in tinyllama.py Integrate stateful dataset in tinyllama.py Jan 23, 2024
@awaelchli awaelchli marked this pull request as ready for review January 23, 2024 19:54
Copy link
Contributor

@carmocca carmocca left a comment

Choose a reason for hiding this comment

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

Did you consider backward-compatibility with existing tinyllama checkpoints?

pretrain/tinyllama.py Outdated Show resolved Hide resolved
pretrain/tinyllama.py Show resolved Hide resolved
@awaelchli
Copy link
Contributor Author

Did you consider backward-compatibility with existing tinyllama checkpoints?

We would have to leave the for loop we have here and run it conditionally based on whether the checkpoint has a dataloader state saved or not. I don't think this is worth it.

@awaelchli awaelchli merged commit 93b0dc7 into main Jan 23, 2024
9 checks passed
@awaelchli awaelchli deleted the tinyllama/state-dict branch January 23, 2024 20:42
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