Spaces:
Sleeping
Sleeping
File size: 958 Bytes
4e8e113 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | """
Model registry — defines which HuggingFace models are available
and their metadata surfaced to the frontend.
"""
MODEL_REGISTRY = [
{
"id": "bert-base-uncased",
"label": "BERT Base (Uncased)",
"description": "12 layers · 12 heads · bidirectional",
"n_layers": 12,
"n_heads": 12,
"type": "encoder",
"size_mb": 440,
},
{
"id": "distilbert-base-uncased",
"label": "DistilBERT Base (Uncased)",
"description": "6 layers · 12 heads · lightweight BERT distillation",
"n_layers": 6,
"n_heads": 12,
"type": "encoder",
"size_mb": 265,
},
{
"id": "gpt2",
"label": "GPT-2 (Small)",
"description": "12 layers · 12 heads · causal / autoregressive",
"n_layers": 12,
"n_heads": 12,
"type": "decoder",
"size_mb": 548,
},
]
MODEL_IDS = {m["id"] for m in MODEL_REGISTRY}
|