binding.schema.json
artificial-intelligence/large-language-models/parametry/binding.schema.json · 30 line(s) · json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://sleela.dev/ai/llm/parametry/binding-1.0.json",
"title": "SLeeLa parametry binding (version 1.0)",
"description": "A user-owned binding of a SLeeLa LLM or neural net to EITHER a known/supported model (by name) OR a local model (by path). Exactly one source should be given; if a name is unknown and a local_path is present, parametry falls back to the local model.",
"type": "object",
"additionalProperties": false,
"required": ["schema_version", "kind"],
"properties": {
"schema_version": { "const": "1.0" },
"kind": { "type": "string", "enum": ["llm", "neural-net"] },
"name": { "type": "string", "description": "A known model name from known-models.json." },
"local_path": { "type": "string", "description": "A path to the user's local model." },
"weight_bytes": { "type": "integer", "minimum": 0, "description": "LLM: declared size (2..16 GB envelope advisory)." },
"context_tokens": { "type": "integer", "minimum": 0 },
"weight_format": { "type": "string" },
"layer_sizes": {
"type": "array",
"minItems": 2,
"items": { "type": "integer", "minimum": 1 },
"description": "Neural net: fully-connected layer shape, input through output. Required for a LOCAL neural net."
},
"note": { "type": "string" }
},
"anyOf": [
{ "required": ["name"] },
{ "required": ["local_path"] }
]
}