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

merge from magma #20

Merged
merged 10 commits into from
Jun 13, 2023
Prev Previous commit
Next Next commit
add pad token
  • Loading branch information
floatingsnake committed Jun 9, 2023
commit 29697ada3533427e2bf56cb77f84afc7d15e64d1
1 change: 1 addition & 0 deletions megatron/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ def get_batch_pipe_image_text(input,neox_args):

attention_mask, loss_mask, position_ids = get_ltor_masks_and_position_ids(
data=captions,
pad_token=neox_args.tokenizer.pad_id,
eod_token=neox_args.tokenizer.eod,
eod_mask_loss=neox_args.eod_mask_loss,
)
Expand Down