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

Encoder only / decoder only models #58

Open
TimotheeMickus opened this issue Mar 1, 2024 · 0 comments
Open

Encoder only / decoder only models #58

TimotheeMickus opened this issue Mar 1, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@TimotheeMickus
Copy link
Collaborator

Currently, we only support training encoder-decoder models.

We might want to support encoder-only (e.g. BERT) and decoder-only models (e.g. GPTs). This could be inferred automatically from the types of sharing groups defined per task:

  • if the dec_sharing_groups key is absent then we do not instantiate a layer stack decoder, and directly route the encoder's output to the generator
  • if the enc_sharing_groups key is absent from all tasks, then we need to instantiate an encoder stack and systematically add an autoregressive mask at every forward pass.

Batched data already distinguishes between target-side and source-side inputs and target outputs (labels).

@TimotheeMickus TimotheeMickus added enhancement New feature or request good first issue Good for newcomers labels Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant