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

Train with attention mask #1183

Open
germanjke opened this issue May 8, 2024 · 1 comment
Open

Train with attention mask #1183

germanjke opened this issue May 8, 2024 · 1 comment

Comments

@germanjke
Copy link

Hi,

Llama 3 trains like this

We trained the models on sequences of 8,192 tokens, using a mask to ensure self-attention does not cross document boundaries.

I see you have something like this in mpt_modeling.py here

Can you tell please, how we can define this in train config?

Thanks

@dakinggg
Copy link
Collaborator

Hey, we have not implemented the attention masking you are describing for models other than MPT variants.

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

No branches or pull requests

2 participants