Download source/schema/model.schema.json from DDDDD-433/open-model-registry: direct link, hf CLI and curl.
- Browser
- Download file 3.89 kB
-
https://huggingface.co/datasets/DDDDD-433/open-model-registry/resolve/main/source/schema/model.schema.json
- Command line
-
hf download hf://datasets/DDDDD-433/open-model-registry/source/schema/model.schema.json
-
curl -L -o model.schema.json https://huggingface.co/datasets/DDDDD-433/open-model-registry/resolve/main/source/schema/model.schema.json
3.89 kB
| { | |
| "$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, "maximum": 12}, | |
| "active_b": {"type": ["number", "null"], "exclusiveMinimum": 0}, | |
| "effective_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", "string"]}, | |
| "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"}}, | |
| "evidence": { | |
| "type": "object", | |
| "properties": { | |
| "parameters": {"$ref": "#/$defs/evidence_item"}, | |
| "license": {"$ref": "#/$defs/evidence_item"}, | |
| "release_date": {"$ref": "#/$defs/evidence_item"}, | |
| "architecture": {"$ref": "#/$defs/evidence_item"}, | |
| "modalities": {"$ref": "#/$defs/evidence_item"}, | |
| "deployment": {"$ref": "#/$defs/evidence_item"} | |
| } | |
| }, | |
| "notes": {"type": "string"} | |
| } | |
| }, | |
| "evidence_item": { | |
| "type": "object", | |
| "required": ["type", "url", "supports"], | |
| "properties": { | |
| "type": {"enum": ["model_card", "safetensors_metadata", "release_announcement", "repository", "paper", "runtime_test"]}, | |
| "url": {"type": "string", "format": "uri"}, | |
| "revision": {"type": ["string", "null"]}, | |
| "supports": {"type": "array", "minItems": 1, "items": {"type": "string"}} | |
| } | |
| } | |
| } | |
| } | |