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

Rename preset IDs for consistency #612

Merged
merged 1 commit into from
Dec 27, 2022

Conversation

mattdangerw
Copy link
Member

And start to add rules we would like to follow to our style guide.

@mattdangerw
Copy link
Member Author

Full list of preset names after the rename...

bert_tiny_en_uncased
bert_tiny_en_uncased_sst2
bert_small_en_uncased
bert_medium_en_uncased
bert_base_en_uncased
bert_base_en
bert_base_zh
bert_base_multi
bert_large_en_uncased
bert_large_en
distil_bert_base_en_uncased
distil_bert_base_en
distil_bert_base_multi
roberta_base_en
roberta_large_en
xlm_roberta_base_multi
xlm_roberta_large_multi

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.

Great! May this be the last preset naming PR!

STYLE_GUIDE.md Outdated
- All preset names should include the language of the pretraining data. If three
or more language are supported, the preset name should include `"multi"` (not
the single letter "m").
- If a preset lowercases input for cased based language, the preset name should
Copy link
Contributor

Choose a reason for hiding this comment

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

cased-based

STYLE_GUIDE.md Outdated
- No configuration in names. E.g. use "bert_base" instead of
"bert_L-12_H-768_A-12".

When in doubt, readability and usability of names should win out!
Copy link
Contributor

Choose a reason for hiding this comment

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

"When in doubt, readability should win out!" is catchier. Just saying.

@mattdangerw mattdangerw force-pushed the preset-rename branch 2 times, most recently from 677d51b to 9820d1d Compare December 27, 2022 22:44
@mattdangerw mattdangerw marked this pull request as ready for review December 27, 2022 22:44
And start to add rules we would like to follow to our style guide.
@mattdangerw mattdangerw merged commit 729815b into keras-team:master Dec 27, 2022
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.

2 participants