robbiemu commited on
Commit
9bef408
·
verified ·
1 Parent(s): b650572
Files changed (1) hide show
  1. README.md +70 -64
README.md CHANGED
@@ -58,25 +58,25 @@ configs:
58
 
59
  # Leanstral Mathlib calibration corpora
60
 
61
- The sample data is derived from the pinned Apache-2.0-licensed Mathlib source
62
- tree. This repository contains data and curated methods documentation, not the
63
- separately developed builder package; that package should not be redistributed
64
- until its standalone license file is resolved.
65
 
66
- This dataset contains the calibration corpora used to select a static FP8
67
  activation profile for an MXFP4 W4A8 conversion of Leanstral 1.5 119B-A6B. It
68
- publishes all candidate corpora, their manifests, and the shared
69
  iterative-development pack, and the post-selection release-validation packs.
70
- Variant 1 is also exposed as the selected subset.
71
 
72
- The purpose is reproducibility: users can inspect the exact samples that shaped
73
- the activation profile, reproduce the corpus comparison, or test a different
74
- quantization method without reconstructing the data-selection pipeline.
75
 
76
  ## Loading with 🤗 Datasets
77
 
78
- Every corpus is a named Hugging Face configuration. `selected` is the default
79
- and is byte-identical to Variant 1:
80
 
81
  ```python
82
  from datasets import load_dataset
@@ -98,14 +98,14 @@ release_validation = load_dataset(
98
 
99
  The available configuration names are `selected`, `variant-1` through
100
  `variant-6`, `development`, `release-validation`, and
101
- `historical-validation`. They appear as separate subsets in the Hub Dataset
102
- Viewer and can be passed as the second argument to `load_dataset`.
103
 
104
  ## Contents
105
 
106
  Every calibration variant contains 512 source-grounded records. The original
107
- four candidates hold the model, quantization rule, sample count, and category
108
- vocabulary fixed while changing the data distribution.
109
 
110
  | Split | Role | Summary | Release status |
111
  | --- | --- | --- | --- |
@@ -121,9 +121,10 @@ vocabulary fixed while changing the data distribution.
121
  | `selected` | convenience alias/copy | exact Variant 1 records | **Selected** |
122
 
123
  V5 and V6 are complete calibration corpora, not mixtures of activation-scale
124
- values. Each was recalibrated as one coherent static FP8 profile.
 
125
 
126
- ## Suggested repository layout
127
 
128
  ```text
129
  README.md
@@ -155,13 +156,15 @@ schema.json
155
  SHA256SUMS
156
  ```
157
 
158
- The published manifest for each split should record its source revision,
159
- builder revision, tokenizer identity, sample count, token count, category and
160
- length distributions, deduplication inputs, leakage checks, and SHA-256.
 
 
161
 
162
  ## Record format
163
 
164
- The quantization input is JSON Lines. At minimum, publication should preserve:
165
 
166
  - a stable record identifier;
167
  - category and context-length stratum;
@@ -171,10 +174,9 @@ The quantization input is JSON Lines. At minimum, publication should preserve:
171
  - content/fingerprint fields used for deduplication; and
172
  - admission and leakage-check metadata needed to audit the split.
173
 
174
- The release preparation step should publish a generated schema from the actual
175
- JSONL files rather than relying on this prose alone. Private machine paths and
176
- internal operational metadata should be removed without changing sample text or
177
- stable identifiers.
178
 
179
  ## Construction method
180
 
@@ -200,38 +202,38 @@ F 42
200
  total 512
201
  ```
202
 
203
- The publication methods document should define A–F from the builder's frozen
204
- category specification and cite the exact pinned Mathlib revision. Those values
205
- must be copied from the machine manifests during release assembly.
206
 
207
  ## Why Variant 1 is selected
208
 
209
  The candidates were evaluated as frozen static per-tensor FP8 activation
210
- profiles on the same MXFP4 weights. After FlashInfer startup autotuning was
211
- identified as the source of small cross-restart numerical drift, V1–V5 were
212
- compared in five independent normally autotuned cold starts. Every profile used
213
- the same dynamic reference within each start.
214
-
215
- V1 won candidate NLL, signed NLL delta, mean absolute per-example NLL delta,
216
- top-1 agreement, and top-1 flip count in all five starts. V5 consistently
217
- improved mean and maximum KL and repaired recurring V1 tail failures, but it
218
- lost central NLL/top-1 quality in every start and introduced stable failures of
219
- its own.
220
-
221
- Variant 6 tested the strongest remaining simple-composite hypothesis. It kept
222
- 464 V1 records and made 48 targeted D/E substitutions, then was recalibrated as
223
- one complete profile. V6 improved mean KL in every start, but its V6-minus-V1
224
- candidate NLL averaged `+0.028728` and top-1 agreement averaged `-0.042`,
225
- outside the frozen `+0.01` and `-0.01` central-quality margins. The same
226
- decision holds using starts 2–5 alone.
227
-
228
- > Under normal FlashInfer startup variation, V1 consistently provides the best
229
- > ordinary predictive preservation. The available KL-tail improvements are
230
- > real, but neither V5 nor a targeted V1-centered composite achieves them
231
- > without an unacceptable central-quality cost.
232
-
233
- The experiment selects the exact frozen V1 corpus/profile pair. It does not
234
- claim that V1 is universally optimal for every model, quantizer, or future
235
  recalibration.
236
 
237
  ## Selected artifact receipt
@@ -268,11 +270,11 @@ Appropriate uses include:
268
  - benchmarking alternative activation quantizers; and
269
  - auditing category, length, expert-coverage, and tail behavior.
270
 
271
- This is calibration and iterative-development data. It is not a general
272
- instruction-tuning corpus or a general model-quality benchmark. The
273
- `release-validation` split was untouched during profile selection, but it is
274
- published as the completed release-gate evidence rather than advertised as a
275
- reusable hidden test.
276
 
277
  ## Limitations
278
 
@@ -285,15 +287,19 @@ reusable hidden test.
285
  worst teacher-forced token position.
286
  - Normally autotuned cold starts are the independent replication units.
287
  - Lower overflow-risk counts did not reliably predict better model behavior.
288
- - The Apache-2.0 declaration applies to the published Mathlib-derived data.
289
- Model weights and tokenizer assets are distributed separately in the model
290
- repository under the official source model's terms.
 
 
 
291
 
292
  ## Reproducibility documents
293
 
294
- The dataset repository should include a concise construction document. The
295
- model repository should carry the detailed evaluation receipts:
296
 
297
  - activation-profile selection;
298
  - replicated normally autotuned profile study; and
299
  - constrained V1-centered composite result.
 
 
58
 
59
  # Leanstral Mathlib calibration corpora
60
 
61
+ The sample data comes from the pinned Apache-2.0-licensed
62
+ [Mathlib source tree](https://github.com/leanprover-community/mathlib4). This
63
+ repository holds the data and curated methods documentation—but not the
64
+ separately developed builder package.
65
 
66
+ This dataset contains the calibration corpora used to pick a static FP8
67
  activation profile for an MXFP4 W4A8 conversion of Leanstral 1.5 119B-A6B. It
68
+ publishes every candidate corpus, their manifests, the shared
69
  iterative-development pack, and the post-selection release-validation packs.
70
+ Variant 1 also appears separately as the selected subset.
71
 
72
+ You can inspect the exact samples that shaped the activation profile, reproduce
73
+ the corpus comparison yourself, or try a different quantization method without
74
+ having to rebuild the data-selection pipeline from scratch.
75
 
76
  ## Loading with 🤗 Datasets
77
 
78
+ Every corpus is its own named Hugging Face configuration. `selected` is the
79
+ default, and it's byte-identical to Variant 1:
80
 
81
  ```python
82
  from datasets import load_dataset
 
98
 
99
  The available configuration names are `selected`, `variant-1` through
100
  `variant-6`, `development`, `release-validation`, and
101
+ `historical-validation`. Each shows up as a separate subset in the Hub Dataset
102
+ Viewer, and you can pass any of them as the second argument to `load_dataset`.
103
 
104
  ## Contents
105
 
106
  Every calibration variant contains 512 source-grounded records. The original
107
+ four candidates keep the model, quantization rule, sample count, and category
108
+ vocabulary fixed, and only vary the data distribution.
109
 
110
  | Split | Role | Summary | Release status |
111
  | --- | --- | --- | --- |
 
121
  | `selected` | convenience alias/copy | exact Variant 1 records | **Selected** |
122
 
123
  V5 and V6 are complete calibration corpora, not mixtures of activation-scale
124
+ values—each one was recalibrated from scratch as one coherent static FP8
125
+ profile.
126
 
127
+ ## Repository layout
128
 
129
  ```text
130
  README.md
 
156
  SHA256SUMS
157
  ```
158
 
159
+ Each published split manifest records its source revision, tokenizer identity,
160
+ sample count, token count, category and length distributions, provenance
161
+ completeness, deduplication counts, and SHA-256. The records contain the
162
+ original environment receipt, duplicate fingerprints, and leakage and
163
+ admission results.
164
 
165
  ## Record format
166
 
167
+ The quantization input is JSON Lines. Each published record preserves:
168
 
169
  - a stable record identifier;
170
  - category and context-length stratum;
 
174
  - content/fingerprint fields used for deduplication; and
175
  - admission and leakage-check metadata needed to audit the split.
176
 
177
+ The checked-in schema is generated from the actual JSONL files rather than from
178
+ this prose. Release preparation removed private machine paths and internal
179
+ operational metadata without changing sample text or stable identifiers.
 
180
 
181
  ## Construction method
182
 
 
202
  total 512
203
  ```
204
 
205
+ The category definitions and exact pinned revisions are recorded in
206
+ [`docs/corpus-construction.md`](docs/corpus-construction.md). Those values come
207
+ from the machine manifests rather than being retyped for this card.
208
 
209
  ## Why Variant 1 is selected
210
 
211
  The candidates were evaluated as frozen static per-tensor FP8 activation
212
+ profiles on the same MXFP4 weights. Once FlashInfer startup autotuning turned
213
+ out to be the source of small cross-restart numerical drift, I compared V1–V5
214
+ across five independent, normally autotuned cold starts. Every profile used the
215
+ same dynamic reference within each start.
216
+
217
+ V1 came out ahead on candidate NLL, signed NLL delta, mean absolute per-example
218
+ NLL delta, top-1 agreement, and top-1 flip count in all five starts. V5
219
+ consistently improved mean and maximum KL and fixed recurring V1 tail failures,
220
+ but it lost central NLL/top-1 quality in every start and brought its own stable
221
+ failures along with it.
222
+
223
+ Variant 6 tested the strongest remaining simple-composite hypothesis: keep 464
224
+ V1 records, make 48 targeted D/E substitutions, then recalibrate the whole
225
+ thing as one complete profile. V6 improved mean KL in every start, but its
226
+ V6-minus-V1 candidate NLL averaged `+0.028728` and top-1 agreement averaged
227
+ `-0.042`—both outside the frozen `+0.01` and `-0.01` central-quality margins.
228
+ Dropping the first start and using 2–5 alone doesn't change that decision.
229
+
230
+ > Under normal FlashInfer startup variation, V1 consistently gives the best
231
+ > ordinary predictive preservation. The KL-tail improvements on the table are
232
+ > real, but neither V5 nor a targeted V1-centered composite gets there without
233
+ > an unacceptable hit to central quality.
234
+
235
+ What this experiment selects is the exact frozen V1 corpus/profile pair—it's
236
+ not a claim that V1 is universally optimal for every model, quantizer, or future
237
  recalibration.
238
 
239
  ## Selected artifact receipt
 
270
  - benchmarking alternative activation quantizers; and
271
  - auditing category, length, expert-coverage, and tail behavior.
272
 
273
+ This is calibration and iterative-development datanot a general
274
+ instruction-tuning corpus, and not a general model-quality benchmark. The
275
+ `release-validation` split stayed untouched during profile selection. It is
276
+ published as the completed release-gate evidence, not advertised as a reusable
277
+ hidden test.
278
 
279
  ## Limitations
280
 
 
287
  worst teacher-forced token position.
288
  - Normally autotuned cold starts are the independent replication units.
289
  - Lower overflow-risk counts did not reliably predict better model behavior.
290
+ - The separately developed builder package is not included. This repository
291
+ supports artifact-level audit and reuse, not an exact source-level builder
292
+ rerun.
293
+ - The Apache-2.0 declaration covers the published Mathlib-derived data only.
294
+ Model weights and tokenizer assets are distributed separately, in the model
295
+ repository, under the official source model's terms.
296
 
297
  ## Reproducibility documents
298
 
299
+ This dataset repository includes the construction document, while the model
300
+ repository holds the detailed evaluation receipts:
301
 
302
  - activation-profile selection;
303
  - replicated normally autotuned profile study; and
304
  - constrained V1-centered composite result.
305
+