{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://local-frontier.invalid/schemas/local_frontier_model.schema.json", "title": "Local Frontier Model Data", "type": "object", "required": ["generated_at", "assumptions", "models"], "additionalProperties": false, "properties": { "generated_at": { "type": "string" }, "schema_version": { "type": "string" }, "assumptions": { "type": "object", "required": [ "default_overhead_gb", "default_l_alloc_tokens", "default_l_read_tokens", "default_r_star_toks", "default_rho", "unit" ], "additionalProperties": true, "properties": { "default_overhead_gb": { "type": "number", "minimum": 0 }, "default_l_alloc_tokens": { "type": "integer", "minimum": 1 }, "default_l_read_tokens": { "type": "integer", "minimum": 1 }, "default_r_star_toks": { "type": "number", "minimum": 0 }, "default_rho": { "type": "number", "exclusiveMinimum": 0 }, "unit": { "type": "string" } } }, "models": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/model" } } }, "$defs": { "model": { "type": "object", "required": [ "id", "name", "short_name", "license", "hf_pipeline_tag", "hf_downloads", "architecture", "adapter", "sources" ], "additionalProperties": false, "properties": { "id": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$" }, "aliases": { "type": "array", "items": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" } }, "name": { "type": "string", "minLength": 1 }, "short_name": { "type": "string", "minLength": 1 }, "license": { "type": "string", "minLength": 1 }, "hf_pipeline_tag": { "type": "string", "minLength": 1 }, "hf_downloads": { "type": "integer", "minimum": 100000 }, "tags": { "type": "array", "items": { "type": "string" } }, "architecture": { "type": "object", "required": [ "type", "detail", "total_params_b", "active_params_b", "layers", "max_context_tokens" ], "additionalProperties": true, "properties": { "type": { "type": "string", "minLength": 1 }, "detail": { "type": "string" }, "total_params_b": { "type": "number", "exclusiveMinimum": 0 }, "active_params_b": { "type": "number", "exclusiveMinimum": 0 }, "layers": { "type": ["integer", "null"], "minimum": 0 }, "attention_heads": { "type": ["integer", "null"], "minimum": 0 }, "kv_heads": { "type": ["integer", "null"], "minimum": 0 }, "head_dim": { "type": ["integer", "null"], "minimum": 0 }, "max_context_tokens": { "type": "integer", "minimum": 1 }, "routed_experts": { "type": ["integer", "null"], "minimum": 0 }, "routed_experts_per_token": { "type": ["integer", "null"], "minimum": 0 }, "shared_experts_per_token": { "type": ["integer", "null"], "minimum": 0 } } }, "adapter": { "type": "object", "required": [ "kind", "weight_precision", "weight_bytes_per_param", "resident_weight_gb", "active_weight_gb", "notes" ], "additionalProperties": true, "properties": { "kind": { "enum": ["dense", "moe", "recurrent", "hybrid"] }, "weight_precision": { "type": "string", "minLength": 1 }, "weight_bytes_per_param": { "type": "number", "exclusiveMinimum": 0 }, "resident_weight_gb": { "type": "number", "exclusiveMinimum": 0 }, "active_weight_gb": { "type": "number", "exclusiveMinimum": 0 }, "kv_alloc_gb_per_1k_tokens": { "type": "number", "minimum": 0 }, "kv_read_gb_per_1k_tokens": { "type": "number", "minimum": 0 }, "kv_alloc_fixed_gb": { "type": "number", "minimum": 0 }, "kv_read_fixed_gb": { "type": "number", "minimum": 0 }, "expert_param_b": { "type": "number", "exclusiveMinimum": 0 }, "fixed_param_b": { "type": "number", "minimum": 0 }, "notes": { "type": "string" } } }, "sources": { "type": "array", "minItems": 1, "items": { "type": "object", "required": ["label", "url"], "additionalProperties": false, "properties": { "label": { "type": "string", "minLength": 1 }, "url": { "type": "string", "format": "uri" } } } } } } } }