The Dataset Viewer has been disabled on this dataset.

stablekl benchmark data

Frozen inputs, certified reference values and official PyTorch outputs for measuring the numerical error of

  • interface A: torch.distributions.kl_divergence, 18 same-family pairs (33 configurations, float16 and float32, 7.5 million samples), and
  • interface B: torch.nn.functional.kl_div (20 configurations, 942,200 batches, 5.69e8 certified values).

Every reference value is the exact real KL (or gradient component) at the stored floating-point inputs, enclosed with interval arithmetic and rounded once to the target format. Floating-point numbers are stored as bit patterns, so nothing is lost to decimal conversion.

Code (the repaired functions as the stablekl package, the benchmark harness, the experiments and the figure scripts): https://github.com/xi-xiaoran/stablekl. File formats are documented in its docs/DATA.md, and docs/REPRODUCE.md maps every table and figure of the paper to a command.

Layout

interface_a/frozen/<config>/<fp16|fp32>/<group>__<region>.npz                 inputs + certified truth
interface_a/official_cpu/<config>/<fp16|fp32>/<group>__<region>__<A|B32|B64>.npz   official outputs (CPU)
interface_b/<config>/{inputs,truth,out}/<unit>.npz                            inputs, truth, official outputs
SHA256SUMS

Each .npz has a .npz.manifest.json with its SHA-256. Load with np.load(path, allow_pickle=False).

Download

pip install -U huggingface_hub
huggingface-cli download --repo-type dataset xi-xiaoran/stablekl-benchmark --local-dir data            # everything (10.8 GB)
huggingface-cli download --repo-type dataset xi-xiaoran/stablekl-benchmark --local-dir data --include "interface_a/*/normal/*"   # one configuration
cd data && sha256sum -c SHA256SUMS --ignore-missing

License

CC BY 4.0.

Downloads last month
90