rewrite
Browse files
README.md
CHANGED
|
@@ -58,25 +58,25 @@ configs:
|
|
| 58 |
|
| 59 |
# Leanstral Mathlib calibration corpora
|
| 60 |
|
| 61 |
-
The sample data
|
| 62 |
-
tree. This
|
| 63 |
-
|
| 64 |
-
|
| 65 |
|
| 66 |
-
This dataset contains the calibration corpora used to
|
| 67 |
activation profile for an MXFP4 W4A8 conversion of Leanstral 1.5 119B-A6B. It
|
| 68 |
-
publishes
|
| 69 |
iterative-development pack, and the post-selection release-validation packs.
|
| 70 |
-
Variant 1
|
| 71 |
|
| 72 |
-
|
| 73 |
-
the
|
| 74 |
-
|
| 75 |
|
| 76 |
## Loading with 🤗 Datasets
|
| 77 |
|
| 78 |
-
Every corpus is
|
| 79 |
-
and
|
| 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`.
|
| 102 |
-
Viewer and can
|
| 103 |
|
| 104 |
## Contents
|
| 105 |
|
| 106 |
Every calibration variant contains 512 source-grounded records. The original
|
| 107 |
-
four candidates
|
| 108 |
-
vocabulary fixed
|
| 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
|
|
|
|
| 125 |
|
| 126 |
-
##
|
| 127 |
|
| 128 |
```text
|
| 129 |
README.md
|
|
@@ -155,13 +156,15 @@ schema.json
|
|
| 155 |
SHA256SUMS
|
| 156 |
```
|
| 157 |
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
|
|
|
|
|
|
| 161 |
|
| 162 |
## Record format
|
| 163 |
|
| 164 |
-
The quantization input is JSON Lines.
|
| 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
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
stable identifiers.
|
| 178 |
|
| 179 |
## Construction method
|
| 180 |
|
|
@@ -200,38 +202,38 @@ F 42
|
|
| 200 |
total 512
|
| 201 |
```
|
| 202 |
|
| 203 |
-
The
|
| 204 |
-
|
| 205 |
-
|
| 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.
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
V1
|
| 216 |
-
top-1 agreement, and top-1 flip count in all five starts. V5
|
| 217 |
-
improved mean and maximum KL and
|
| 218 |
-
lost central NLL/top-1 quality in every start and
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
Variant 6 tested the strongest remaining simple-composite hypothesis
|
| 222 |
-
|
| 223 |
-
one complete profile. V6 improved mean KL in every start, but its
|
| 224 |
-
candidate NLL averaged `+0.028728` and top-1 agreement averaged
|
| 225 |
-
outside the frozen `+0.01` and `-0.01` central-quality margins.
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
> Under normal FlashInfer startup variation, V1 consistently
|
| 229 |
-
> ordinary predictive preservation. The
|
| 230 |
-
> real, but neither V5 nor a targeted V1-centered composite
|
| 231 |
-
>
|
| 232 |
-
|
| 233 |
-
|
| 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
|
| 272 |
-
instruction-tuning corpus
|
| 273 |
-
`release-validation` split
|
| 274 |
-
published as the completed release-gate evidence
|
| 275 |
-
|
| 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
|
| 289 |
-
|
| 290 |
-
|
|
|
|
|
|
|
|
|
|
| 291 |
|
| 292 |
## Reproducibility documents
|
| 293 |
|
| 294 |
-
|
| 295 |
-
|
| 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 data—not 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 |
+
|