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

[Feature] DoReMi #54

Merged
merged 88 commits into from
Feb 22, 2024
Merged

[Feature] DoReMi #54

merged 88 commits into from
Feb 22, 2024

Conversation

xrsrke
Copy link
Member

@xrsrke xrsrke commented Feb 1, 2024

@xrsrke xrsrke marked this pull request as ready for review February 13, 2024 09:04
Copy link
Member

@NouamaneTazi NouamaneTazi left a comment

Choose a reason for hiding this comment

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

Amazing job 🚀🚀🚀 Can we move srx/nanotron/doremi folder to examples/doremi just like we did with moe? this way we're sure which features correspond to what example and we keep nanotron source code minimal

examples/doremi/README.md Outdated Show resolved Hide resolved
examples/doremi/config_280m_llama.yaml Outdated Show resolved Hide resolved
examples/doremi/train_doremi.py Show resolved Hide resolved
src/nanotron/doremi/utils.py Outdated Show resolved Hide resolved
src/nanotron/doremi/utils.py Outdated Show resolved Hide resolved
examples/doremi/train_doremi.py Outdated Show resolved Hide resolved
src/nanotron/doremi/trainer.py Outdated Show resolved Hide resolved
src/nanotron/doremi/trainer.py Outdated Show resolved Hide resolved
src/nanotron/doremi/trainer.py Outdated Show resolved Hide resolved
@xrsrke
Copy link
Member Author

xrsrke commented Feb 20, 2024

add codespell:
image

bring back isort:
image

src/nanotron/models/fast/llama.py Outdated Show resolved Hide resolved
src/nanotron/trainer.py Outdated Show resolved Hide resolved
src/nanotron/trainer.py Outdated Show resolved Hide resolved
src/nanotron/trainer.py Outdated Show resolved Hide resolved
.pre-commit-config.yaml Show resolved Hide resolved
tests/test_doremi_sampler.py Outdated Show resolved Hide resolved
tests/test_doremi_sampler.py Outdated Show resolved Hide resolved
tests/test_doremi_sampler.py Outdated Show resolved Hide resolved
Copy link
Member

@NouamaneTazi NouamaneTazi left a comment

Choose a reason for hiding this comment

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

Very nice integration with nanotron. Last batch of comments before merging this!

examples/doremi/README.md Outdated Show resolved Hide resolved
examples/doremi/README.md Show resolved Hide resolved
examples/doremi/README.md Show resolved Hide resolved
examples/doremi/doremi/utils.py Show resolved Hide resolved
examples/doremi/doremi/trainer.py Outdated Show resolved Hide resolved
examples/doremi/doremi/trainer.py Outdated Show resolved Hide resolved
examples/doremi/doremi/trainer.py Outdated Show resolved Hide resolved
examples/doremi/doremi/dataloader.py Show resolved Hide resolved
Copy link
Member

@NouamaneTazi NouamaneTazi left a comment

Choose a reason for hiding this comment

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

LGTM 🚀 🚀 🚀 🚀
Some minor comments left

examples/doremi/configs/config_2.8b_llama.yaml Outdated Show resolved Hide resolved
examples/doremi/doremi/doremi_context.py Outdated Show resolved Hide resolved
examples/doremi/doremi/trainer.py Show resolved Hide resolved
examples/doremi/train_reference.py Outdated Show resolved Hide resolved
@xrsrke xrsrke merged commit 9f9af42 into main Feb 22, 2024
2 of 3 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