File size: 1,705 Bytes
876458a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
62
63
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://huggingface.co/rootcastleengineering/sofia/raw/main/schemas/model.schema.json",
  "title": "SofiaModelManifest",
  "description": "Schema for Sofia Engine model artifacts, checkpoints, and parameter archives.",
  "type": "object",
  "properties": {
    "schema": {
      "type": "string",
      "enum": ["sofia.model-manifest.v1"]
    },
    "name": {
      "type": "string"
    },
    "publisher": {
      "type": "string"
    },
    "license": {
      "type": "string"
    },
    "source_repository": {
      "type": "string",
      "format": "uri"
    },
    "artifact_type": {
      "type": "string",
      "enum": ["scientific-edge-runtime", "neural-checkpoint", "linear-model"]
    },
    "version": {
      "type": "string"
    },
    "checkpoint": {
      "type": ["string", "null"]
    },
    "feature_schema": {
      "type": ["string", "null"]
    },
    "parameters_sha256": {
      "type": ["string", "null"],
      "pattern": "^[a-fA-F0-9]{64}$"
    },
    "training": {
      "type": "object",
      "properties": {
        "trained": { "type": "boolean" },
        "dataset": { "type": ["string", "null"] },
        "metrics": { "type": ["object", "null"] },
        "note": { "type": "string" }
      },
      "required": ["trained"]
    },
    "provenance": {
      "type": "object",
      "properties": {
        "git_commit": { "type": ["string", "null"] },
        "release": { "type": ["string", "null"] },
        "timestamp_utc": { "type": ["string", "null"] }
      }
    }
  },
  "required": ["schema", "name", "publisher", "license", "source_repository", "artifact_type", "version", "training"]
}