Datasets:
Restore dataset_info and configs alongside the card prose
Browse files8 unmodified lines9101112131439 unmodified lines5455568 unmodified lines- llm-routing- cascade- telecom---# TeleQnA-router39 unmodified lines## ProvenanceGenerated on 2x A100 SXM 80 GB at concurrency 32 with vLLM, 5 runs per question.8 unmodified lines91011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575839 unmodified lines98991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521538 unmodified lines- llm-routing- cascade- telecomdataset_info:features:- name: questiondtype: string- name: promptdtype: string- name: ground_truth_answerdtype: int64- name: full_outputdtype: string- name: answerdtype: float64- name: accuracydtype: float64- name: num_wordsdtype: int64- name: num_tokensdtype: int64- name: scoredtype: float64- name: decision_labeldtype: float64- name: decision_strdtype: string- name: clusterdtype: int64- name: rundtype: int64splits:- name: train_qwen3_4b_2507num_bytes: 49854539num_examples: 45000- name: test_qwen3_4b_2507num_bytes: 5607625num_examples: 5000download_size: 20139152dataset_size: 55462164configs:- config_name: defaultdata_files:- split: train_qwen3_4b_2507path: data/train_qwen3_4b_2507-*- split: test_qwen3_4b_2507path: data/test_qwen3_4b_2507-*---# TeleQnA-router39 unmodified lines## ProvenanceGenerated on 2x A100 SXM 80 GB at concurrency 32 with vLLM, 5 runs per question."""def main() -> None:ap = argparse.ArgumentParser(description=__doc__.split("\n", 1)[0])ap.add_argument("--dry-run", action="store_true", help="build and check, do not push")args = ap.parse_args()token = os.environ.get("HF_TOKEN")if not token and not args.dry_run:raise SystemExit("HF_TOKEN is not set")source = load_dataset(REPO, token=token)buckets: dict[str, list] = {"train": [], "test": []}for name in sorted(source):m = SPLIT.match(name)if not m:raise SystemExit(f"{name} is not a (cluster, run) split; repo already restructured?")which, cluster, run = m.group(1), int(m.group(2)), int(m.group(3))part = source[name]seen = set(part.unique("cluster"))if seen != {cluster}:raise SystemExit(f"{name}: cluster column {seen} disagrees with the split name")buckets[which].append(part.add_column("run", [run] * len(part)))out = DatasetDict({f"{k}_{TIER}": concatenate_datasets(v) for k, v in buckets.items()})before = sum(len(source[s]) for s in source)after = sum(len(s) for s in out.values())if before != after:raise SystemExit(f"row count changed: {before} -> {after}")for name, split in out.items():cells = {(c, r) for c, r in zip(split["cluster"], split["run"])}print(f" {name}: {len(split)} rows, {len(cells)} (cluster, run) cells, "f"{len(split.column_names)} columns")print(f" total {after} rows, unchanged")if args.dry_run:print("\ndry run, nothing pushed")returnout.push_to_hub(REPO, token=token)from huggingface_hub import HfApiHfApi(token=token).upload_file(path_or_fileobj=CARD.encode(), path_in_repo="README.md",repo_id=REPO, repo_type="dataset",commit_message="Describe the two-split layout with cluster and run as columns",)print(f"\npushed {REPO}")if __name__ == "__main__":main()
README.md+97