Datasets:
|
Download README.md from Zanehpn/MHRC-Bench: direct link, hf CLI and curl.
- Browser
- Download file 5.33 kB
-
https://huggingface.co/datasets/Zanehpn/MHRC-Bench/resolve/main/README.md
- Command line
-
hf download hf://datasets/Zanehpn/MHRC-Bench/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Zanehpn/MHRC-Bench/resolve/main/README.md
5.33 kB
| license: other | |
| license_name: mhrc-mixed-upstream-and-mit-annotations | |
| license_link: LICENSE.md | |
| task_categories: | |
| - text-generation | |
| language: | |
| - code | |
| tags: | |
| - hardware | |
| - verilog | |
| - systemverilog | |
| - vhdl | |
| - chisel | |
| - hls | |
| - code-completion | |
| size_categories: | |
| - 10K<n<100K | |
| configs: | |
| - config_name: chisel | |
| data_files: | |
| - split: train | |
| path: chisel/train_content.jsonl | |
| - split: validation | |
| path: chisel/valid_content.jsonl | |
| - split: test | |
| path: chisel/test_content.jsonl | |
| default: true | |
| - config_name: systemverilog | |
| data_files: | |
| - split: train | |
| path: systemverilog/train_content.jsonl | |
| - split: validation | |
| path: systemverilog/valid_content.jsonl | |
| - split: test | |
| path: systemverilog/test_content.jsonl | |
| - config_name: vhdl | |
| data_files: | |
| - split: train | |
| path: vhdl/train_content.jsonl | |
| - split: validation | |
| path: vhdl/valid_content.jsonl | |
| - split: test | |
| path: vhdl/test_content.jsonl | |
| - config_name: hls | |
| data_files: | |
| - split: train | |
| path: hls/train_content.jsonl | |
| - split: validation | |
| path: hls/valid_content.jsonl | |
| - split: test | |
| path: hls/test_content.jsonl | |
| # MHRC-Bench / HDL-RepoBench | |
| Multilingual hardware code completion data for Chisel, Verilog/SystemVerilog, | |
| VHDL, and HLS C/C++. The standard task files linked from this release contain the full training, validation, | |
| and test task splits: **47,200 examples** in total. | |
| ## Split sizes | |
| | Language | Train | Validation | Test | | |
| | --- | ---: | ---: | ---: | | |
| | Chisel | 2,573 | 119 | 323 | | |
| | Verilog / SystemVerilog | 25,586 | 107 | 508 | | |
| | VHDL | 13,039 | 104 | 496 | | |
| | HLS C/C++ | 3,766 | 123 | 456 | | |
| | **Total** | **44,964** | **453** | **1,783** | | |
| The raw and content files describe the same examples. The classified test file | |
| adds annotations to the test examples; it is not an additional split. | |
| Count examples once, rather than summing records across these representations. | |
| ## Load the data | |
| ```python | |
| from datasets import load_dataset | |
| data = load_dataset("Zanehpn/MHRC-Bench", "chisel") | |
| print(data["train"].num_rows) # 2573 | |
| print(data["validation"].num_rows) # 119 | |
| print(data["test"].num_rows) # 323 | |
| ``` | |
| Available configurations: `chisel`, `systemverilog`, `vhdl`, and `hls`. | |
| Each configuration loads the content representation of its three splits. | |
| ## Files and fields | |
| Each language directory contains: | |
| - `train.jsonl`, `valid.jsonl`, `test.jsonl`: source paths, target positions, | |
| syntax metadata, and target text. | |
| - `train_content.jsonl`, `valid_content.jsonl`, `test_content.jsonl`: completion | |
| examples with `task_id`, `path`, `left_context`, `right_context`, `groundtruth`, | |
| and `crossfile_context` fields. | |
| - `test_content_classfied.jsonl`: the same test examples with `category`, | |
| `subcategory`, `confidence`, and `category_reason` annotations. The existing | |
| filename spelling is retained for compatibility. | |
| For the content representation, the source text is reconstructed as | |
| `left_context + groundtruth + right_context`. The standard content files keep `crossfile_context` empty. For repository context, use the enriched validation/test variants documented below or download the original repository snapshot archive. | |
| `sample_manifest.json` lists the per-file record counts, sizes, and SHA-256 | |
| checksums. The repository URL and manifest filename are retained for compatibility. | |
| ## Repository context and functional resources | |
| See [DATA_ACCESS.md](DATA_ACCESS.md) for pinned source archive downloads, | |
| SHA-256 checksums, extraction paths, toolchains, and testbench commands. | |
| The enriched `valid_content_with_crossfile_context.jsonl` and | |
| `test_content_with_crossfile_context.jsonl` files preserve the original tasks | |
| and provide other-file context. They exclude the unmasked target file and | |
| whitespace-normalised exact copies of it. Do not count these as extra examples. | |
| [resources/resource_manifest.json](resources/resource_manifest.json) links | |
| the source archive, testbench bundle, and preserved license notices. | |
| [resources/functional_coverage.json](resources/functional_coverage.json) | |
| records available DUTs and testbenches, including missing assets. This is a | |
| partial legacy testbench collection, not verified full-test functional coverage. | |
| ## License and source attribution | |
| [LICENSE.md](LICENSE.md) explains the MIT terms for author-created annotations | |
| and documentation, and the separate upstream terms for source code. | |
| [provenance/repositories.json](provenance/repositories.json) lists all 583 | |
| source repositories, checkout revisions, and located root license notices. | |
| Some repositories have copyleft notices or no located root notice; no blanket | |
| permissive license is asserted for the upstream source collection. | |
| ## Croissant and Responsible AI documentation | |
| Download [croissant.json](croissant.json) for the release's Croissant metadata, | |
| including the NeurIPS 2026 E&D RAI fields and source provenance. Upload this | |
| manual file to OpenReview. Hugging Face's automatic Croissant endpoint is a | |
| separate generated document and may omit these RAI fields. | |
| The metadata documents intended uses, public-code and language biases, | |
| limitations, preserved public attribution identifiers, and potential misuse. | |
| The original completion tasks are drawn from source code rather than | |
| LLM-generated completions. The separate legacy testbench bundle is not part | |
| of that source-task claim. | |