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

WIP: Feature/OPT #19

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

WIP: Feature/OPT #19

wants to merge 4 commits into from

Conversation

dpressel
Copy link
Owner

Add support for OPT. It is:

  • a decoder-only model with learned-positional embeddings up to 2k
  • same checkpoint structure as BART without encoder
  • GPT2 byte-level tokenizer with a different vocabulary
  • ReLU activations instead of GeLU

The HuggingFace Tokenizers library cannot use the tokenizer_config.json provided in the repo, so I created a tokenizers.json using the GPT2 one as an example and adding a post-processor to the tokenizer. My tokenizer.json is available from https://www.dropbox.com/s/ut8qj4nynhkq4cd/tokenizer.json?dl=1 which, once saved as tokenizer.json locally, can be used with the opt_completer example.

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.

None yet

1 participant