File size: 4,941 Bytes
be09d46 | 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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MLX Benchmark Result",
"description": "Structured result envelope for a single benchmark suite run",
"type": "object",
"required": [
"schema_version",
"timestamp",
"git_sha",
"trigger",
"suite",
"model",
"system",
"results"
],
"additionalProperties": false,
"properties": {
"schema_version": {
"type": "string",
"const": "1",
"description": "Schema version — bump when making breaking changes"
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 UTC timestamp of when the run started"
},
"git_sha": {
"type": "string",
"minLength": 7,
"description": "Full or short git commit SHA of the repo at run time"
},
"trigger": {
"type": "string",
"enum": ["schedule", "pr", "workflow_dispatch", "local"],
"description": "What triggered this benchmark run"
},
"pr_number": {
"type": ["integer", "null"],
"description": "Pull request number if trigger is 'pr', otherwise null"
},
"suite": {
"type": "string",
"enum": [
"throughput",
"ttft",
"tool-calling",
"code-accuracy",
"framework-eval",
"capability-comparison",
"coding",
"reasoning",
"knowledge",
"evalplus",
"math-hard"
],
"description": "Which benchmark suite was executed"
},
"model": {
"type": "string",
"description": "Model name/ID used for inference (e.g. Qwen3.5-122B-A10B-4bit)"
},
"skipped": {
"type": "boolean",
"description": "True when the suite was skipped (e.g. MLX server unavailable on standard runner)"
},
"system": {
"type": "object",
"required": ["os", "chip", "memory_gb"],
"additionalProperties": false,
"properties": {
"os": {
"type": "string",
"description": "Operating system and version (e.g. macOS 15.3.2)"
},
"chip": {
"type": "string",
"description": "CPU/chip model (e.g. Apple M4 Max)"
},
"memory_gb": {
"type": "integer",
"description": "Total system RAM in GB"
},
"vllm_mlx_version": {
"type": "string",
"description": "vllm-mlx package version if available"
},
"runner": {
"type": "string",
"description": "GitHub Actions runner label (e.g. macos-latest, self-hosted)"
}
}
},
"results": {
"type": "array",
"description": "Individual test/metric results",
"items": {
"type": "object",
"required": ["name", "metric", "value", "unit"],
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Test or measurement name (e.g. 'langgraph', 'tok_per_sec_512')"
},
"metric": {
"type": "string",
"description": "Metric type (e.g. 'latency', 'throughput', 'score', 'f1')"
},
"value": {
"type": "number",
"description": "Numeric metric value"
},
"unit": {
"type": "string",
"description": "Unit of measurement (e.g. 'seconds', 'tok/s', 'ratio', 'bool')"
},
"tags": {
"type": "object",
"description": "Arbitrary string key-value metadata (e.g. framework, output_tokens)",
"additionalProperties": {
"type": "string"
}
},
"raw": {
"description": "Original unmodified output from the underlying tool or script"
}
}
}
},
"memory_snapshots": {
"type": "array",
"description": "Memory usage measurements at different phases of the run",
"items": {
"type": "object",
"required": ["phase", "rss_gb"],
"additionalProperties": false,
"properties": {
"phase": {
"type": "string",
"description": "Run phase (e.g. 'before', 'loading', 'peak', 'after')"
},
"rss_gb": {
"type": "number",
"description": "Process RSS memory in GB"
},
"free_gb": {
"type": "number",
"description": "Free system memory in GB"
},
"wired_gb": {
"type": "number",
"description": "Wired (non-pageable) memory in GB"
},
"swap_mb": {
"type": "number",
"description": "Swap usage in MB"
}
}
}
},
"errors": {
"type": "array",
"description": "Non-fatal errors or warnings encountered during the run",
"items": {
"type": "string"
}
}
}
}
|