Skip to content

Commit

Permalink
Model Card for Preset Table for Keras-NLP (#1263)
Browse files Browse the repository at this point in the history
* Updated Dependencies and DockerFile

* Keras-NLP Autogenerate presets table

* Made backbone table autogenerated.

* Updated Requirements.txt

* Updated requirements.txt

* Updated render_nlp_tags and autogen.py

* Improved Comments in render_nlp_tags.py

* Updated render_nlp_tags.py

* Formatted code and made minor changes

* Update keras-nlp version and add a few simplifications

* Added Model Cards for Keras-NLP.

* Changed Disclaimer to Note

---------

Co-authored-by: Matt Watson <[email protected]>
  • Loading branch information
Cyber-Machine and mattdangerw committed Aug 1, 2023
1 parent 6f1fb07 commit bedf607
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/render_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,11 @@ def render_backbone_table(symbols):
f"{preset} | "
f"{format_path(metadata)} | "
f"{format_param_count(metadata)} | "
f"{metadata['description']} \n"
f"{metadata['description']}"
)
if "model_card" in metadata:
table += f" [Model Card]({metadata['model_card']})"
table += "\n"
return table


Expand Down
6 changes: 6 additions & 0 deletions templates/api/keras_nlp/models/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ preprocessor = keras_nlp.models.BertPreprocessor.from_preset("bert_tiny_en_uncas

{{backbone_presets_table}}

**Note**: The links provided will lead to the model card or to the official README,
if no model card has been provided by the author.

## Classification presets

The following preset names correspond to a configuration, weights and vocabulary
Expand All @@ -45,6 +48,9 @@ preprocessor = keras_nlp.models.BertPreprocessor.from_preset("bert_tiny_en_uncas

{{classifier_presets_table}}

**Note**: The links provided will lead to the model card or to the official README,
if no model card has been provided by the author.

## API Documentation

{{toc}}

0 comments on commit bedf607

Please sign in to comment.