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

Support key padding masks for Perceiver AR #25

Merged
merged 1 commit into from
Dec 23, 2022

Conversation

krasserm
Copy link
Owner

  • tokenizers must be configured to padding_side="left" in order to be compatible with Perceiver AR
  • support configuration of padding_side on base class of text data modules (TextDataModule).
  • implement random sequence truncation in data module instead of model
  • sequences in a batch are individually truncated to different lengths.
  • enable random_train_shift by default which increases regularization.

- tokenizers must be configured to `padding_side="left"` in order to be compatible with Perceiver AR
- support configuration of `padding_side` on base class of text data modules (`TextDataModule`).
- implement random sequence truncation in data module instead of model
- sequences in a batch are individually truncated to different lengths.
- enable `random_train_shift` by default which increases regularization.
@krasserm krasserm requested a review from cstub December 20, 2022 05:41
@krasserm krasserm self-assigned this Dec 20, 2022
@krasserm krasserm added this to the 0.7.1 milestone Dec 20, 2022
@krasserm krasserm removed the request for review from cstub December 23, 2022 13:39
@krasserm krasserm merged commit 689a405 into main Dec 23, 2022
@krasserm krasserm deleted the wip-perceiver-ar-padding branch December 23, 2022 13:43
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.

1 participant