File size: 2,896 Bytes
99c1740
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://example.com/open-model-registry/model.schema.json",
  "title": "Open Model Registry",
  "type": "object",
  "required": ["schema_version", "generated_at", "models"],
  "properties": {
    "schema_version": {"type": "string"},
    "generated_at": {"type": "string", "format": "date"},
    "models": {"type": "array", "items": {"$ref": "#/$defs/model"}}
  },
  "$defs": {
    "model": {
      "type": "object",
      "required": ["model_id", "name", "family", "developer", "category", "modalities", "parameters", "variant", "openness", "deployment", "official_checkpoint", "sources"],
      "properties": {
        "model_id": {"type": "string", "minLength": 3},
        "name": {"type": "string", "minLength": 1},
        "family": {"type": "string", "minLength": 1},
        "developer": {"type": "string", "minLength": 1},
        "category": {"enum": ["llm", "vlm", "ocr-vision", "coding", "audio", "embedding", "other"]},
        "release_date": {"type": ["string", "null"], "format": "date"},
        "modalities": {
          "type": "object",
          "required": ["inputs", "outputs"],
          "properties": {"inputs": {"type": "array", "items": {"type": "string"}}, "outputs": {"type": "array", "items": {"type": "string"}}}
        },
        "parameters": {
          "type": "object",
          "required": ["total_b", "active_b", "architecture"],
          "properties": {
            "total_b": {"type": "number", "exclusiveMinimum": 0, "exclusiveMaximum": 12},
            "active_b": {"type": ["number", "null"], "exclusiveMinimum": 0},
            "architecture": {"type": "string"}
          }
        },
        "variant": {"type": "string"},
        "context_length": {"type": ["integer", "null"], "minimum": 1},
        "openness": {
          "type": "object",
          "required": ["license", "commercial_use", "weights_available", "inference_code_available", "training_code_available", "training_data_disclosed", "grade"],
          "properties": {
            "license": {"type": "string", "minLength": 1},
            "commercial_use": {"type": "boolean"},
            "weights_available": {"type": "boolean"},
            "inference_code_available": {"type": "boolean"},
            "training_code_available": {"type": "boolean"},
            "training_data_disclosed": {"enum": ["none", "limited", "partial", "substantial", "unknown"]},
            "grade": {"enum": ["A", "B", "C", "D", "U"]}
          }
        },
        "deployment": {"type": "object", "additionalProperties": {"type": "boolean"}},
        "official_checkpoint": {"type": "boolean"},
        "last_verified": {"type": ["string", "null"], "format": "date"},
        "sources": {"type": "array", "minItems": 1, "items": {"type": "string", "format": "uri"}},
        "notes": {"type": "string"}
      }
    }
  }
}