Skip to content

Commit 7632056

Browse files
authored
Reduce the metadata we track per presets (#1991)
We can grab the class name from the keras.io, and we don't need to add a model card anymore, given that our kaggle pages are now linked and act as a much better model card.
1 parent 8b44ade commit 7632056

33 files changed

+0
-359
lines changed

keras_hub/src/models/albert/albert_presets.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
"Trained on English Wikipedia + BooksCorpus."
99
),
1010
"params": 11683584,
11-
"official_name": "ALBERT",
1211
"path": "albert",
13-
"model_card": "https://github.com/google-research/albert/blob/master/README.md",
1412
},
1513
"kaggle_handle": "kaggle://keras/albert/keras/albert_base_en_uncased/2",
1614
},
@@ -21,9 +19,7 @@
2119
"Trained on English Wikipedia + BooksCorpus."
2220
),
2321
"params": 17683968,
24-
"official_name": "ALBERT",
2522
"path": "albert",
26-
"model_card": "https://github.com/google-research/albert/blob/master/README.md",
2723
},
2824
"kaggle_handle": "kaggle://keras/albert/keras/albert_large_en_uncased/2",
2925
},
@@ -34,9 +30,7 @@
3430
"Trained on English Wikipedia + BooksCorpus."
3531
),
3632
"params": 58724864,
37-
"official_name": "ALBERT",
3833
"path": "albert",
39-
"model_card": "https://github.com/google-research/albert/blob/master/README.md",
4034
},
4135
"kaggle_handle": "kaggle://keras/albert/keras/albert_extra_large_en_uncased/2",
4236
},
@@ -47,9 +41,7 @@
4741
"Trained on English Wikipedia + BooksCorpus."
4842
),
4943
"params": 222595584,
50-
"official_name": "ALBERT",
5144
"path": "albert",
52-
"model_card": "https://github.com/google-research/albert/blob/master/README.md",
5345
},
5446
"kaggle_handle": "kaggle://keras/albert/keras/albert_extra_extra_large_en_uncased/2",
5547
},

keras_hub/src/models/bart/bart_presets.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
"Trained on BookCorpus, English Wikipedia and CommonCrawl."
99
),
1010
"params": 139417344,
11-
"official_name": "BART",
1211
"path": "bart",
13-
"model_card": "https://github.com/facebookresearch/fairseq/blob/main/examples/bart/README.md",
1412
},
1513
"kaggle_handle": "kaggle://keras/bart/keras/bart_base_en/2",
1614
},
@@ -21,9 +19,7 @@
2119
"Trained on BookCorpus, English Wikipedia and CommonCrawl."
2220
),
2321
"params": 406287360,
24-
"official_name": "BART",
2522
"path": "bart",
26-
"model_card": "https://github.com/facebookresearch/fairseq/blob/main/examples/bart/README.md",
2723
},
2824
"config": {
2925
"vocabulary_size": 50265,
@@ -43,9 +39,7 @@
4339
"summarization dataset."
4440
),
4541
"params": 406287360,
46-
"official_name": "BART",
4742
"path": "bart",
48-
"model_card": "https://github.com/facebookresearch/fairseq/blob/main/examples/bart/README.md",
4943
},
5044
"config": {
5145
"vocabulary_size": 50264,

keras_hub/src/models/bert/bert_presets.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
"Trained on English Wikipedia + BooksCorpus."
99
),
1010
"params": 4385920,
11-
"official_name": "BERT",
1211
"path": "bert",
13-
"model_card": "https://github.com/google-research/bert/blob/master/README.md",
1412
},
1513
"kaggle_handle": "kaggle://keras/bert/keras/bert_tiny_en_uncased/2",
1614
},
@@ -21,9 +19,7 @@
2119
"Trained on English Wikipedia + BooksCorpus."
2220
),
2321
"params": 28763648,
24-
"official_name": "BERT",
2522
"path": "bert",
26-
"model_card": "https://github.com/google-research/bert/blob/master/README.md",
2723
},
2824
"kaggle_handle": "kaggle://keras/bert/keras/bert_small_en_uncased/2",
2925
},
@@ -34,9 +30,7 @@
3430
"Trained on English Wikipedia + BooksCorpus."
3531
),
3632
"params": 41373184,
37-
"official_name": "BERT",
3833
"path": "bert",
39-
"model_card": "https://github.com/google-research/bert/blob/master/README.md",
4034
},
4135
"kaggle_handle": "kaggle://keras/bert/keras/bert_medium_en_uncased/2",
4236
},
@@ -47,9 +41,7 @@
4741
"Trained on English Wikipedia + BooksCorpus."
4842
),
4943
"params": 109482240,
50-
"official_name": "BERT",
5144
"path": "bert",
52-
"model_card": "https://github.com/google-research/bert/blob/master/README.md",
5345
},
5446
"kaggle_handle": "kaggle://keras/bert/keras/bert_base_en_uncased/2",
5547
},
@@ -60,9 +52,7 @@
6052
"Trained on English Wikipedia + BooksCorpus."
6153
),
6254
"params": 108310272,
63-
"official_name": "BERT",
6455
"path": "bert",
65-
"model_card": "https://github.com/google-research/bert/blob/master/README.md",
6656
},
6757
"kaggle_handle": "kaggle://keras/bert/keras/bert_base_en/2",
6858
},
@@ -72,9 +62,7 @@
7262
"12-layer BERT model. Trained on Chinese Wikipedia."
7363
),
7464
"params": 102267648,
75-
"official_name": "BERT",
7665
"path": "bert",
77-
"model_card": "https://github.com/google-research/bert/blob/master/README.md",
7866
},
7967
"kaggle_handle": "kaggle://keras/bert/keras/bert_base_zh/2",
8068
},
@@ -84,9 +72,7 @@
8472
"12-layer BERT model where case is maintained. Trained on trained on Wikipedias of 104 languages"
8573
),
8674
"params": 177853440,
87-
"official_name": "BERT",
8875
"path": "bert",
89-
"model_card": "https://github.com/google-research/bert/blob/master/README.md",
9076
},
9177
"kaggle_handle": "kaggle://keras/bert/keras/bert_base_multi/2",
9278
},
@@ -97,9 +83,7 @@
9783
"Trained on English Wikipedia + BooksCorpus."
9884
),
9985
"params": 335141888,
100-
"official_name": "BERT",
10186
"path": "bert",
102-
"model_card": "https://github.com/google-research/bert/blob/master/README.md",
10387
},
10488
"kaggle_handle": "kaggle://keras/bert/keras/bert_large_en_uncased/2",
10589
},
@@ -110,9 +94,7 @@
11094
"Trained on English Wikipedia + BooksCorpus."
11195
),
11296
"params": 333579264,
113-
"official_name": "BERT",
11497
"path": "bert",
115-
"model_card": "https://github.com/google-research/bert/blob/master/README.md",
11698
},
11799
"kaggle_handle": "kaggle://keras/bert/keras/bert_large_en/2",
118100
},
@@ -122,9 +104,7 @@
122104
"The bert_tiny_en_uncased backbone model fine-tuned on the SST-2 sentiment analysis dataset."
123105
),
124106
"params": 4385920,
125-
"official_name": "BERT",
126107
"path": "bert",
127-
"model_card": "https://github.com/google-research/bert/blob/master/README.md",
128108
},
129109
"kaggle_handle": "kaggle://keras/bert/keras/bert_tiny_en_uncased_sst2/4",
130110
},

keras_hub/src/models/bloom/bloom_presets.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
"trained on 45 natural languages and 12 programming languages."
99
),
1010
"params": 559214592,
11-
"official_name": "BLOOM",
1211
"path": "bloom",
13-
"model_card": "https://huggingface.co/bigscience/bloom-560m",
1412
},
1513
"kaggle_handle": "kaggle://keras/bloom/keras/bloom_560m_multi/3",
1614
},
@@ -21,9 +19,7 @@
2119
"trained on 45 natural languages and 12 programming languages."
2220
),
2321
"params": 1065314304,
24-
"official_name": "BLOOM",
2522
"path": "bloom",
26-
"model_card": "https://huggingface.co/bigscience/bloom-1b1",
2723
},
2824
"kaggle_handle": "kaggle://keras/bloom/keras/bloom_1.1b_multi/1",
2925
},
@@ -34,9 +30,7 @@
3430
"trained on 45 natural languages and 12 programming languages."
3531
),
3632
"params": 1722408960,
37-
"official_name": "BLOOM",
3833
"path": "bloom",
39-
"model_card": "https://huggingface.co/bigscience/bloom-1b7",
4034
},
4135
"kaggle_handle": "kaggle://keras/bloom/keras/bloom_1.7b_multi/1",
4236
},
@@ -47,9 +41,7 @@
4741
"trained on 45 natural languages and 12 programming languages."
4842
),
4943
"params": 3002557440,
50-
"official_name": "BLOOM",
5144
"path": "bloom",
52-
"model_card": "https://huggingface.co/bigscience/bloom-3b",
5345
},
5446
"kaggle_handle": "kaggle://keras/bloom/keras/bloom_3b_multi/1",
5547
},
@@ -60,9 +52,7 @@
6052
"finetuned on crosslingual task mixture (xP3) dataset."
6153
),
6254
"params": 559214592,
63-
"official_name": "BLOOMZ",
6455
"path": "bloom",
65-
"model_card": "https://huggingface.co/bigscience/bloomz-560m",
6656
},
6757
"kaggle_handle": "kaggle://keras/bloom/keras/bloomz_560m_multi/1",
6858
},
@@ -73,9 +63,7 @@
7363
"finetuned on crosslingual task mixture (xP3) dataset."
7464
),
7565
"params": 1065314304,
76-
"official_name": "BLOOMZ",
7766
"path": "bloom",
78-
"model_card": "https://huggingface.co/bigscience/bloomz-1b1",
7967
},
8068
"kaggle_handle": "kaggle://keras/bloom/keras/bloomz_1.1b_multi/1",
8169
},
@@ -86,9 +74,7 @@
8674
"finetuned on crosslingual task mixture (xP3) dataset."
8775
),
8876
"params": 1722408960,
89-
"official_name": "BLOOMZ",
9077
"path": "bloom",
91-
"model_card": "https://huggingface.co/bigscience/bloomz-1b7",
9278
},
9379
"kaggle_handle": "kaggle://keras/bloom/keras/bloomz_1.7b_multi/1",
9480
},
@@ -99,9 +85,7 @@
9985
"finetuned on crosslingual task mixture (xP3) dataset."
10086
),
10187
"params": 3002557440,
102-
"official_name": "BLOOMZ",
10388
"path": "bloom",
104-
"model_card": "https://huggingface.co/bigscience/bloomz-3b",
10589
},
10690
"kaggle_handle": "kaggle://keras/bloom/keras/bloomz_3b_multi/1",
10791
},

keras_hub/src/models/clip/clip_presets.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
"text, patch size of 16, CLIP model."
1010
),
1111
"params": 149620934,
12-
"official_name": "CLIP",
1312
"path": "clip",
14-
"model_card": "https://github.com/openai/CLIP/blob/main/model-card.md",
1513
},
1614
"kaggle_handle": "kaggle://keras/clip/keras/clip_vit_base_patch16/1",
1715
},
@@ -22,9 +20,7 @@
2220
"text, patch size of 32, CLIP model."
2321
),
2422
"params": 151277363,
25-
"official_name": "CLIP",
2623
"path": "clip",
27-
"model_card": "https://github.com/openai/CLIP/blob/main/model-card.md",
2824
},
2925
"kaggle_handle": "kaggle://keras/clip/keras/clip_vit_base_patch32/1",
3026
},
@@ -35,9 +31,7 @@
3531
"text, patch size of 14, CLIP model."
3632
),
3733
"params": 427616770,
38-
"official_name": "CLIP",
3934
"path": "clip",
40-
"model_card": "https://github.com/openai/CLIP/blob/main/model-card.md",
4135
},
4236
"kaggle_handle": "kaggle://keras/clip/keras/clip_vit_large_patch14/1",
4337
},
@@ -48,9 +42,7 @@
4842
"text, patch size of 14, image size of 336, CLIP model."
4943
),
5044
"params": 427944770,
51-
"official_name": "CLIP",
5245
"path": "clip",
53-
"model_card": "https://github.com/openai/CLIP/blob/main/model-card.md",
5446
},
5547
"kaggle_handle": "kaggle://keras/clip/keras/clip_vit_large_patch14_336/1",
5648
},
@@ -61,9 +53,7 @@
6153
"text, patch size of 32, Open CLIP model."
6254
),
6355
"params": 151277363,
64-
"official_name": "Open CLIP",
6556
"path": "clip",
66-
"model_card": "https://github.com/mlfoundations/open_clip",
6757
},
6858
"kaggle_handle": "kaggle://keras/clip/keras/clip_vit_b_32_laion2b_s34b_b79k/1",
6959
},
@@ -74,9 +64,7 @@
7464
"text, patch size of 14, Open CLIP model."
7565
),
7666
"params": 986109698,
77-
"official_name": "Open CLIP",
7867
"path": "clip",
79-
"model_card": "https://github.com/mlfoundations/open_clip",
8068
},
8169
"kaggle_handle": "kaggle://keras/clip/keras/clip_vit_h_14_laion2b_s32b_b79k/1",
8270
},
@@ -87,9 +75,7 @@
8775
"text, patch size of 14, Open CLIP model."
8876
),
8977
"params": 1366678530,
90-
"official_name": "Open CLIP",
9178
"path": "clip",
92-
"model_card": "https://github.com/mlfoundations/open_clip",
9379
},
9480
"kaggle_handle": "kaggle://keras/clip/keras/clip_vit_g_14_laion2b_s12b_b42k/1",
9581
},
@@ -100,9 +86,7 @@
10086
"text, patch size of 14, Open CLIP model."
10187
),
10288
"params": 2539567362,
103-
"official_name": "Open CLIP",
10489
"path": "clip",
105-
"model_card": "https://github.com/mlfoundations/open_clip",
10690
},
10791
"kaggle_handle": "kaggle://keras/clip/keras/clip_vit_bigg_14_laion2b_39b_b160k/1",
10892
},

keras_hub/src/models/deberta_v3/deberta_v3_presets.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
"Trained on English Wikipedia, BookCorpus and OpenWebText."
99
),
1010
"params": 70682112,
11-
"official_name": "DeBERTaV3",
1211
"path": "deberta_v3",
13-
"model_card": "https://huggingface.co/microsoft/deberta-v3-xsmall",
1412
},
1513
"kaggle_handle": "kaggle://keras/deberta_v3/keras/deberta_v3_extra_small_en/2",
1614
},
@@ -21,9 +19,7 @@
2119
"Trained on English Wikipedia, BookCorpus and OpenWebText."
2220
),
2321
"params": 141304320,
24-
"official_name": "DeBERTaV3",
2522
"path": "deberta_v3",
26-
"model_card": "https://huggingface.co/microsoft/deberta-v3-small",
2723
},
2824
"kaggle_handle": "kaggle://keras/deberta_v3/keras/deberta_v3_small_en/2",
2925
},
@@ -34,9 +30,7 @@
3430
"Trained on English Wikipedia, BookCorpus and OpenWebText."
3531
),
3632
"params": 183831552,
37-
"official_name": "DeBERTaV3",
3833
"path": "deberta_v3",
39-
"model_card": "https://huggingface.co/microsoft/deberta-v3-base",
4034
},
4135
"kaggle_handle": "kaggle://keras/deberta_v3/keras/deberta_v3_base_en/2",
4236
},
@@ -47,9 +41,7 @@
4741
"Trained on English Wikipedia, BookCorpus and OpenWebText."
4842
),
4943
"params": 434012160,
50-
"official_name": "DeBERTaV3",
5144
"path": "deberta_v3",
52-
"model_card": "https://huggingface.co/microsoft/deberta-v3-large",
5345
},
5446
"kaggle_handle": "kaggle://keras/deberta_v3/keras/deberta_v3_large_en/2",
5547
},
@@ -60,9 +52,7 @@
6052
"Trained on the 2.5TB multilingual CC100 dataset."
6153
),
6254
"params": 278218752,
63-
"official_name": "DeBERTaV3",
6455
"path": "deberta_v3",
65-
"model_card": "https://huggingface.co/microsoft/mdeberta-v3-base",
6656
},
6757
"kaggle_handle": "kaggle://keras/deberta_v3/keras/deberta_v3_base_multi/2",
6858
},

keras_hub/src/models/deeplab_v3/deeplab_v3_presets.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
"which is having categorical accuracy of 90.01 and 0.63 Mean IoU."
1010
),
1111
"params": 39190656,
12-
"official_name": "DeepLabV3",
1312
"path": "deeplab_v3",
14-
"model_card": "https://arxiv.org/abs/1802.02611",
1513
},
1614
"kaggle_handle": "kaggle://keras/deeplabv3plus/keras/deeplab_v3_plus_resnet50_pascalvoc/3",
1715
},

0 commit comments

Comments
 (0)