kylesayrs commited on
Commit
696498e
·
verified ·
1 Parent(s): e3d284a

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +172 -0
README.md CHANGED
@@ -1,4 +1,21 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
  features:
4
  - name: domain
@@ -51,3 +68,158 @@ configs:
51
  - split: train
52
  path: data/train-*
53
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: other
3
+ license_name: source-specific-terms
4
+ license_link: https://huggingface.co/datasets/inference-optimization/RazorCal/blob/main/LICENSE-DATA
5
+ language:
6
+ - en
7
+ - zh
8
+ size_categories:
9
+ - 1K<n<10K
10
+ task_categories:
11
+ - text-generation
12
+ tags:
13
+ - calibration
14
+ - model-compression
15
+ - pruning
16
+ - mixture-of-experts
17
+ - moe
18
+ - arxiv:2609.30465
19
  dataset_info:
20
  features:
21
  - name: domain
 
68
  - split: train
69
  path: data/train-*
70
  ---
71
+
72
+ # RazorCal
73
+
74
+ RazorCal is a general-purpose calibration corpus released with [RAZOR](https://arxiv.org/abs/2609.30465). It contains 2,048 samples across seven domains (about 8 MB). Each record includes input messages and source attribution. The records carry no architecture-specific fields, so the corpus also suits FFN or layer pruning, perplexity measurement and other calibration-based compression; RAZOR uses it to estimate per-expert statistics. Reasoning traces are omitted because the calibration loader does not consume them. Potential contact identifiers, home-directory usernames, private-network examples and literal password examples are replaced with placeholders.
75
+
76
+ This repository re-publishes the corpus in a row-oriented format: each of the 2,048 samples is one dataset row. It is converted from the original single-file release at [Nickyang/RazorCal](https://huggingface.co/datasets/Nickyang/RazorCal), which is also included unchanged at [source/RazorCal.json](source/RazorCal.json) so that the conversion can be verified against the original artifact.
77
+
78
+ ## Composition
79
+
80
+ | Domain | Samples |
81
+ |---|---:|
82
+ | Coding | 512 |
83
+ | Math | 256 |
84
+ | Science (STEM) | 256 |
85
+ | Chinese-STEM | 256 |
86
+ | Instruction Following | 256 |
87
+ | Tool Calling | 256 |
88
+ | World Knowledge | 256 |
89
+ | **Total** | **2,048** |
90
+
91
+ ## Format
92
+
93
+ Each row is one sample with the following columns:
94
+
95
+ | Column | Type | Description |
96
+ |---|---|---|
97
+ | `domain` | string | one of the seven domains above |
98
+ | `sub_source` | string | recorded upstream source attribution |
99
+ | `coding_subclass` | string, nullable | subclass label, present on Coding samples |
100
+ | `messages` | list of structs | chat messages with `role`, `content` and optional `tool_calls` (`id`, `type`, `index`, `function.name`, `function.arguments`) |
101
+ | `tools` | list of structs, nullable | tool definitions with `type` and `function` (`name`, `description`, `parameters`) |
102
+
103
+ The corpus defines a single `train` split holding all 2,048 samples; no train/validation/test semantics are implied.
104
+
105
+ Conversions applied to the original file, needed to keep a single valid arrow schema:
106
+
107
+ - `tool_calls[].function.arguments` and `tools[].function.parameters` are free-form JSON objects whose value types conflict across records (for example a string and a number under the same key path of different records). They are recorded as JSON strings; parse them with `json.loads` before use.
108
+ - The optional message fields `tool_call_id` and `name` are null for every record in the original file and are omitted here.
109
+ - Empty `tool_calls` and `tools` lists are recorded as null.
110
+
111
+ Everything else is preserved verbatim. The corpus metadata recorded in the original file's `meta` object:
112
+
113
+ ```json
114
+ {
115
+ "name": "RazorCal",
116
+ "total_samples": 2048,
117
+ "max_length_per_sample": 32000,
118
+ "domains": {
119
+ "Math": 256,
120
+ "Science (STEM)": 256,
121
+ "Chinese-STEM": 256,
122
+ "Instruction Following": 256,
123
+ "Tool Calling": 256,
124
+ "World Knowledge": 256,
125
+ "Coding": 512
126
+ },
127
+ "coding_subclass_distribution": {
128
+ "swe_issue_fix": 40,
129
+ "engineering_oop_api": 111,
130
+ "cp_python_stdin": 138,
131
+ "cp_cpp_stdin": 99,
132
+ "func_signature_completion": 100,
133
+ "leetcode_class_solution": 24
134
+ },
135
+ "homepage": "https://github.com/nick7nlp/RAZOR",
136
+ "description": "RazorCal is a multi-domain calibration corpus released with RAZOR. It is a general-purpose calibration mixture: the records carry no architecture-specific fields and can be used for expert, FFN or layer pruning as well as other calibration-based compression. Source labels record attribution; see the datasheet for provenance, privacy processing, and usage limitations.",
137
+ "license": "Source-specific terms apply; see LICENSE-DATA.",
138
+ "privacy_processing": "Reasoning traces are omitted. Contact identifiers, home-directory usernames, private-network examples, and literal password examples are replaced with placeholders."
139
+ }
140
+ ```
141
+
142
+ Loading the rows:
143
+
144
+ ```python
145
+ import json
146
+
147
+ from datasets import load_dataset
148
+
149
+ dataset = load_dataset("inference-optimization/RazorCal", split="train")
150
+
151
+ sample = dataset[0]
152
+ messages = sample["messages"]
153
+ for call in messages[-1]["tool_calls"] or []:
154
+ call["function"]["arguments"] = json.loads(call["function"]["arguments"])
155
+ ```
156
+
157
+ For the [RAZOR CLI](https://github.com/nick7nlp/RAZOR), use the unchanged original file:
158
+
159
+ ```bash
160
+ curl -L -o RazorCal.json \
161
+ https://huggingface.co/datasets/inference-optimization/RazorCal/resolve/main/source/RazorCal.json
162
+
163
+ razor saliency --model <model-path> --data RazorCal.json --out out/sal
164
+ ```
165
+
166
+ ## Recorded sources
167
+
168
+ A source label records attribution information; it is not, by itself, proof
169
+ of a record-level match to an upstream release.
170
+
171
+ | Domain | `sub_source` labels and counts | Recorded source description |
172
+ |---|---|---|
173
+ | Math | `nemotron-cascade2-math` (160); `nemotron-math-v2-high-aime-style` (96) | Nemotron-Cascade-2-SFT-Data math slice; Nemotron-Math-V2 |
174
+ | Science (STEM) | `Nemotron-Science-V1-RQA` (176); `Nemotron-Science-V1-MCQ` (80) | Nemotron-Science-V1 |
175
+ | World Knowledge | `OpenHermes-2.5` (256) | OpenHermes-2.5 via smoltalk2 |
176
+ | Coding | `Dolci-Python-Algorithms` (205); `competitive-programming-python` (141); `competitive-programming-cpp` (115); `Nemotron-SFT-SWE-V2-agentless` (40); `Nemotron-OpenCode-general` (11) | Dolci; competitive-programming, SWE and OpenCode corpora |
177
+ | Instruction Following | `Dolci-Precise-IF` (256) | Dolci instruction-following corpus |
178
+ | Tool Calling | `Nemotron-Agentic-tool-calling-v2` (256) | Nemotron agentic/tool-calling corpus |
179
+ | Chinese-STEM | `multilingual-chinese-math` (86); `multilingual-chinese-code` (85); `multilingual-chinese-stem` (85) | Multilingual Chinese categories |
180
+
181
+ The `nemotron-cascade2-math` records were taken as a whole domain slice rather
182
+ than sampled individually, so the label records the upstream dataset but not a
183
+ per-record identifier within it. Source labels alone do not establish
184
+ provenance. See [FIDELITY_AUDIT.md](FIDELITY_AUDIT.md) for provenance
185
+ boundaries and [LICENSE-DATA](LICENSE-DATA) for recorded license information.
186
+
187
+ ## Usage limitations
188
+
189
+ RazorCal is calibration data, not an independent evaluation benchmark.
190
+ Domain coverage does not guarantee preservation of model quality. Review
191
+ possible overlap with evaluation data for the intended use.
192
+
193
+ The original record array contains 587 tool messages without populated
194
+ `tool_call_id` links and 11 tool definitions with empty `parameters` objects;
195
+ in this repository the always-null `tool_call_id` and `name` fields are
196
+ omitted, as documented under [Format](#format). Tokenizer chat templates and
197
+ schema validators may require additional handling at load time.
198
+
199
+ Public source material can still contain personal references or unsuitable
200
+ content; source labels do not establish that records are free of such content.
201
+ See [DATASHEET.md](DATASHEET.md) for intended use and limitations.
202
+
203
+ ## Citation and licensing
204
+
205
+ Source-specific terms continue to apply; no single replacement license is
206
+ asserted for all RazorCal records. Retain applicable upstream attribution.
207
+ See [LICENSE-DATA](LICENSE-DATA) and [NOTICE](NOTICE) before use or
208
+ redistribution.
209
+
210
+ This repository contains no code; [LICENSE-CODE](LICENSE-CODE) is retained
211
+ from the upstream release for completeness. See [DATASHEET.md](DATASHEET.md)
212
+ for intended use and limitations and [FIDELITY_AUDIT.md](FIDELITY_AUDIT.md)
213
+ for the scope of available provenance evidence.
214
+
215
+ ```bibtex
216
+ @misc{song2026razorpruningreplaceableexperts,
217
+ title={RAZOR: Pruning Replaceable Experts in LLMs},
218
+ author={Mingyang Song and Mao Zheng},
219
+ year={2026},
220
+ eprint={2609.30465},
221
+ archivePrefix={arXiv},
222
+ primaryClass={cs.LG},
223
+ url={https://arxiv.org/abs/2609.30465},
224
+ }
225
+ ```