Files
light-heart-labs--dreamserver/ods/config/gpu-database.schema.json
T
wehub-resource-sync 9e8f1bbeed
Dashboard / frontend (push) Failing after 0s
Dashboard / api (push) Failing after 0s
Lint PowerShell / powershell-lint (ubuntu-latest) (push) Failing after 1s
Python Lint / Lint Python with Ruff (push) Failing after 1s
ShellCheck / Lint shell scripts (push) Failing after 1s
Matrix Smoke / linux-smoke (push) Failing after 1s
Matrix Smoke / distro: cachyos (push) Failing after 15s
Matrix Smoke / distro: linux-mint-21.3 (push) Failing after 15s
Matrix Smoke / distro: debian-12 (push) Failing after 5m21s
Matrix Smoke / distro: fedora-41 (push) Failing after 4m56s
Matrix Smoke / distro: ubuntu-24.04 (push) Failing after 2m13s
Matrix Smoke / distro: rocky-9 (push) Failing after 10m39s
Matrix Smoke / distro: manjaro (push) Failing after 12m11s
Matrix Smoke / distro: opensuse-tw (push) Failing after 11m53s
Matrix Smoke / distro: archlinux (push) Failing after 20m3s
Matrix Smoke / distro: ubuntu-22.04 (push) Failing after 13m49s
Validate .env Schema / tier-1-env-validation (push) Successful in 52s
Validate .env Schema / tier-2-env-validation (push) Successful in 44s
Validate .env Schema / tier-3-env-validation (push) Successful in 52s
Validate .env Schema / tier-4-env-validation (push) Successful in 51s
Validate Extensions Catalog / Check catalog is up-to-date (push) Failing after 9m47s
Secret Scan / Scan for secrets (push) Failing after 21m4s
Validate Docker Compose / Validate Docker Compose files (push) Has been cancelled
Python Type Check / Type check with mypy (push) Has been cancelled
Validate .env Schema / tier-0-env-validation (push) Has been cancelled
Test Linux / integration-smoke (push) Has been cancelled
Lint PowerShell / powershell-lint (windows-latest) (push) Has been cancelled
Matrix Smoke / macos-smoke (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:31:33 +08:00

140 lines
4.5 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "ods.hardware.v1",
"title": "ODS GPU Database",
"description": "GPU knowledge base for hardware classification. Known GPUs with specs, bandwidth lookup table, and heuristic fallback classes.",
"type": "object",
"required": ["schema_version", "known_gpus", "known_gpu_bandwidth", "heuristic_classes", "defaults"],
"properties": {
"schema_version": {
"type": "string",
"const": "ods.hardware.v1"
},
"_attribution": {
"type": "object",
"properties": {
"gpu_bandwidth_data": { "type": "string" },
"note": { "type": "string" }
}
},
"known_gpus": {
"type": "array",
"items": { "$ref": "#/$defs/known_gpu" }
},
"known_gpu_bandwidth": {
"type": "object",
"properties": {
"nvidia": { "$ref": "#/$defs/bandwidth_map" },
"amd": { "$ref": "#/$defs/bandwidth_map" },
"apple": { "$ref": "#/$defs/bandwidth_map" }
},
"additionalProperties": { "$ref": "#/$defs/bandwidth_map" }
},
"heuristic_classes": {
"type": "array",
"items": { "$ref": "#/$defs/heuristic_class" }
},
"defaults": {
"type": "object",
"required": ["bandwidth_gbps"],
"properties": {
"bandwidth_gbps": {
"type": "object",
"additionalProperties": { "type": "number", "minimum": 0 }
}
}
}
},
"$defs": {
"known_gpu": {
"type": "object",
"required": ["id", "match", "specs", "recommended"],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z0-9_]+$",
"description": "Unique identifier for this known GPU entry"
},
"match": {
"type": "object",
"properties": {
"device_ids": {
"type": "array",
"items": { "type": "string", "pattern": "^0x[0-9a-fA-F]{4}$" },
"description": "PCI device IDs to match (exact)"
},
"name_patterns": {
"type": "array",
"items": { "type": "string" },
"description": "Substring patterns to match against GPU name (case-insensitive)"
}
},
"anyOf": [
{ "required": ["device_ids"] },
{ "required": ["name_patterns"] }
]
},
"specs": {
"type": "object",
"required": ["label", "vendor", "architecture", "memory_type", "memory_mb", "bandwidth_gbps"],
"properties": {
"label": { "type": "string" },
"vendor": { "enum": ["nvidia", "amd", "apple", "intel"] },
"architecture": { "type": "string" },
"memory_type": { "enum": ["discrete", "unified"] },
"memory_mb": { "type": "integer", "minimum": 0 },
"memory_source": {
"enum": ["vram", "ram"],
"description": "Where to read actual memory from. 'ram' = use system RAM (for unified memory GPUs where reported VRAM is unreliable)"
},
"bandwidth_gbps": { "type": "number", "minimum": 0 },
"compute_units": { "type": "integer", "minimum": 0 }
}
},
"recommended": {
"$ref": "#/$defs/recommendation"
}
}
},
"heuristic_class": {
"type": "object",
"required": ["id", "match", "recommended"],
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z0-9_]+$"
},
"match": {
"type": "object",
"properties": {
"vendor": { "enum": ["nvidia", "amd", "apple", "intel", "none"] },
"memory_type": { "enum": ["discrete", "unified", "none"] },
"min_vram_mb": { "type": "integer", "minimum": 0 },
"max_vram_mb": { "type": "integer", "minimum": 0 },
"min_ram_mb": { "type": "integer", "minimum": 0 }
}
},
"recommended": {
"$ref": "#/$defs/recommendation"
}
}
},
"recommendation": {
"type": "object",
"required": ["backend", "tier"],
"properties": {
"backend": { "enum": ["nvidia", "amd", "apple", "cpu"] },
"tier": {
"type": "string",
"pattern": "^(T[0-4]|SH_LARGE|SH_COMPACT|NV_ULTRA)$"
}
}
},
"bandwidth_map": {
"type": "object",
"additionalProperties": { "type": "number", "minimum": 0 },
"description": "Map of GPU model name to bandwidth in GB/s"
}
}
}