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

Opt presets #707

Merged
merged 2 commits into from
Feb 3, 2023
Merged

Opt presets #707

merged 2 commits into from
Feb 3, 2023

Conversation

mattdangerw
Copy link
Member

This adds support for pre-trained OPT checkpoints up to 6b parameters. Keeping this as a draft until #699 lands.

Here's a colab to see the weight conversion script in action (no actual code here just output). https://colab.research.google.com/gist/mattdangerw/8ccf7ca9a958da79c03fb24729e63c1f/opt-presets.ipynb

@mattdangerw mattdangerw marked this pull request as ready for review February 2, 2023 19:01
@mattdangerw
Copy link
Member Author

mattdangerw commented Feb 2, 2023

One interesting discussion point here will be naming. The metaseq package does gives these "size names" up to an "extra_large" model with 1.3b parameters. But by that logic, the 175b largest model would be named "opt_extra_extra_extra_extra_extra_extra_extra_large_en".

That seemed bad :), so I just went with parameter counts in the name.

Copy link
Contributor

@jbischof jbischof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good thanks, but no need to mock the Reddit DB!

"preprocessor_config": {},
"description": (
"12-layer OPT model where case in maintained. Trained on "
"BookCorpus, CommonCrawl, Pile, and PulseShit.io corpora."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/PulseShit/PushShift/g

Also: LOL

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lolol whoops

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like a cool name for a band xD

"12-layer OPT model where case in maintained. Trained on "
"BookCorpus, CommonCrawl, Pile, and PulseShit.io corpora."
),
"weights_url": "https://storage.googleapis.com/keras-nlp/models/opt_125m_en/v1/model.h5",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we starting with v1 or have you already augmented the count?

Copy link
Member Author

@mattdangerw mattdangerw Feb 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v1 is the start, for all presets

@mattdangerw mattdangerw merged commit 9e03eea into keras-team:master Feb 3, 2023
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.

3 participants