Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
567 changes: 517 additions & 50 deletions scripts/hf_publisher/dataset_template/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://huggingface.co/datasets/OpenChainBench/benchmarks/blob/main/schemas/chain_leaders.schema.json",
"title": "OCB chain_leaders row",
"description": "One row per (bench, chain, snapshot_date). Per-chain leader and worst provider for benches whose spec declares a chain dimension. Empty until /api/citable or /api/stat exposes bestPerChain / worstPerChain.",
"type": "object",
"required": [
"snapshot_date",
"captured_at",
"bench_slug",
"chain",
"schema_version"
],
"properties": {
"snapshot_date": { "type": "string", "format": "date" },
"captured_at": { "type": "string", "format": "date-time" },
"bench_slug": { "type": "string" },
"chain": { "type": "string" },
"leader_name": { "type": ["string", "null"] },
"leader_slug": { "type": ["string", "null"] },
"leader_value": { "type": ["number", "null"] },
"worst_name": { "type": ["string", "null"] },
"worst_slug": { "type": ["string", "null"] },
"worst_value": { "type": ["number", "null"] },
"schema_version": { "type": "integer", "minimum": 1 }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,25 @@
"schema_version"
],
"properties": {
"snapshot_date": { "type": "string", "format": "date" },
"captured_at": { "type": "string", "format": "date-time" },
"slug": { "type": "string" },
"title": { "type": "string" },
"category": { "type": "string" },
"metric": { "type": "string" },
"unit": { "type": "string" },
"status": { "type": "string", "enum": ["live", "draft", "insufficient"] },
"value": { "type": ["number", "null"] },
"leader_name": { "type": ["string", "null"] },
"leader_slug": { "type": ["string", "null"] },
"leader_value": { "type": ["number", "null"] },
"sample_size": { "type": ["number", "null"] },
"as_of": { "type": ["string", "null"], "format": "date-time" },
"citation_url": { "type": "string", "format": "uri" },
"stat_api_url": { "type": "string", "format": "uri" },
"source_url": { "type": ["string", "null"], "format": "uri" },
"license": { "type": "string", "const": "CC-BY-4.0" },
"schema_version": { "type": "integer", "minimum": 1 }
"snapshot_date": { "type": "string", "format": "date" },
"captured_at": { "type": "string", "format": "date-time" },
"slug": { "type": "string" },
"title": { "type": "string" },
"category": { "type": "string" },
"metric": { "type": "string" },
"unit": { "type": "string" },
"status": { "type": "string", "enum": ["live", "draft", "insufficient"] },
"value": { "type": ["number", "null"] },
"higher_is_better": { "type": ["boolean", "null"] },
"leader_name": { "type": ["string", "null"] },
"leader_slug": { "type": ["string", "null"] },
"leader_value": { "type": ["number", "null"] },
"bench_sample_size": { "type": ["number", "null"] },
"as_of": { "type": ["string", "null"], "format": "date-time" },
"citation_url": { "type": "string", "format": "uri" },
"stat_api_url": { "type": "string", "format": "uri" },
"source_url": { "type": ["string", "null"], "format": "uri" },
"license": { "type": "string", "const": "CC-BY-4.0" },
"schema_version": { "type": "integer", "minimum": 1 }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://huggingface.co/datasets/OpenChainBench/benchmarks/blob/main/schemas/providers.schema.json",
"title": "OCB providers row",
"description": "One row per (bench, provider, snapshot_date). Detailed ranking with percentiles.",
"description": "One row per (bench, provider, snapshot_date). Detailed ranking with percentiles plus provider type / layer / tag classification.",
"type": "object",
"required": [
"snapshot_date",
Expand All @@ -12,18 +12,21 @@
"schema_version"
],
"properties": {
"snapshot_date": { "type": "string", "format": "date" },
"captured_at": { "type": "string", "format": "date-time" },
"bench_slug": { "type": "string" },
"provider_name": { "type": "string" },
"provider_slug": { "type": "string" },
"p50": { "type": ["number", "null"] },
"p90": { "type": ["number", "null"] },
"p99": { "type": ["number", "null"] },
"mean": { "type": ["number", "null"] },
"success_rate": { "type": ["number", "null"] },
"sample_size": { "type": ["number", "null"] },
"is_leader": { "type": "boolean" },
"schema_version": { "type": "integer", "minimum": 1 }
"snapshot_date": { "type": "string", "format": "date" },
"captured_at": { "type": "string", "format": "date-time" },
"bench_slug": { "type": "string" },
"provider_name": { "type": "string" },
"provider_slug": { "type": "string" },
"provider_type": { "type": ["string", "null"] },
"provider_layer": { "type": ["string", "null"] },
"provider_tag": { "type": ["string", "null"] },
"p50": { "type": ["number", "null"] },
"p90": { "type": ["number", "null"] },
"p99": { "type": ["number", "null"] },
"mean": { "type": ["number", "null"] },
"success_rate": { "type": ["number", "null"] },
"provider_sample_size": { "type": ["number", "null"] },
"is_leader": { "type": "boolean" },
"schema_version": { "type": "integer", "minimum": 1 }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://huggingface.co/datasets/OpenChainBench/benchmarks/blob/main/schemas/timeseries.schema.json",
"title": "OCB timeseries row",
"description": "One row per (bench, point_index, snapshot_date). 24h sparkline series.",
"description": "One row per (bench, provider, window, point_index, snapshot_date). 24h / 7d / 30d trajectories sourced from /api/series.",
"type": "object",
"required": [
"snapshot_date",
Expand All @@ -17,6 +17,7 @@
"snapshot_date": { "type": "string", "format": "date" },
"captured_at": { "type": "string", "format": "date-time" },
"bench_slug": { "type": "string" },
"provider_slug": { "type": ["string", "null"] },
"point_index": { "type": "integer", "minimum": 0 },
"value": { "type": "number" },
"window": { "type": "string", "enum": ["24h", "7d", "30d"] },
Expand Down
Loading
Loading