variant string | field string | var string | step null | path string | dtype string | shape list | file_shape list | component null | transpose list | bytes int64 | sha256 string |
|---|---|---|---|---|---|---|---|---|---|---|---|
preconditioned | einspline | einspline | null | 115x69x69x288/einspline_115_69_69_288.f32 | <f4 | [
288,
115,
69,
69
] | [
115,
69,
69,
288
] | null | [
3,
0,
1,
2
] | 630,737,280 | 25aa8668b5e6ee24ffe6beb25187822b0f197f9b6c815cecd4550c7c5d9c4b4f |
original | null | null | null | 115x69x69x288/SDRBENCH-QMCPACK-115x69x69x288-property.txt | null | null | null | null | null | 466 | 76a0812d0e8208b3250440c0edb2be758a24db6e33c6b34794682c62a3b05985 |
original | einspline | einspline | null | 115x69x69x288/einspline_115_69_69_288.f32 | <f4 | [
115,
69,
69,
288
] | [
115,
69,
69,
288
] | null | null | 630,737,280 | 25aa8668b5e6ee24ffe6beb25187822b0f197f9b6c815cecd4550c7c5d9c4b4f |
original | null | null | null | 115x69x69x288/template_data.txt | null | null | null | null | null | 936 | cd612435daec2ee07449680a62bc2ecaaeb8b876e81f9a91d736bbe626e7466f |
SDRBench — QMCPACK
Many-body ab initio Quantum Monte Carlo (QMCPACK): 288 einspline orbitals on a 115 x 69 x 69 grid, single precision, little-endian.
Raw binary arrays, not an Arrow/Parquet dataset.
datasets.load_dataset("sdrbench/qmcpack")returns the table of files (files.jsonl: path, dtype, shape, sha256). Read the arrays with thesdrbenchpackage orhf_hub_download+ numpy as shown below.
This repository is an unmodified mirror of the QMCPACK data of SDRBench, the
Scientific Data Reduction Benchmark. The originals are hosted by Argonne National Laboratory on Globus;
every archive was unpacked and its files uploaded byte-for-byte (sha256 verified) (revision 1518533bae). metadata/ holds
the original SDRBench property and template files. Kept in sync automatically by
szcompressor/sdrbench.
- Data provider: QMCPACK performance test; contact Ye Luo (yeluo@anl.gov)
- Size: 630.7 MB in 2 variant(s)
- Format: raw little-endian binary, C order (slowest dimension first); dtype and shape per field below
Usage
pip install "sdrbench[sz3]" # sdrbench + pysz (SZ3)
import numpy as np
import sdrbench
from pysz import sz, szConfig, szErrorBoundMode
ds = sdrbench.dataset("qmcpack") # default variant "preconditioned"
print(ds.fields)
x = ds["einspline"] # numpy array, dtype <f4, shape (288, 115, 69, 69)
# compress with SZ3 (pysz) at a 1e-3 value-range-relative error bound
conf = szConfig()
conf.errorBoundMode = szErrorBoundMode.REL
conf.relErrorBound = 1e-3
compressed, ratio = sz.compress(np.ascontiguousarray(x), conf)
y, _ = sz.decompress(compressed, x.dtype.type, x.shape)
max_err, psnr, nrmse = sz.verify(np.asarray(x), y)
print(f"ratio {ratio:.1f}x, PSNR {psnr:.1f} dB, max error {max_err:.3g}")
Files are fetched on first use (in parallel with ds.download("data/")) and cached, pinned to the revision
of the installed sdrbench release; if Hugging Face is unreachable the package falls back to the original
archive on Globus. Existing local SDRBench copies can be used with sdrbench.dataset("qmcpack", root="/path").
Without the package, with huggingface_hub and numpy only:
from huggingface_hub import hf_hub_download
import numpy as np
p = hf_hub_download("sdrbench/qmcpack", "115x69x69x288/einspline_115_69_69_288.f32", repo_type="dataset", revision="1518533baeeffa9dad33910ff639029bfac91f88")
x = np.fromfile(p, dtype="<f4").reshape((115, 69, 69, 288)).transpose(3, 0, 1, 2) # -> (288, 115, 69, 69)
Variants and fields
preconditioned (default)
sdrbench.dataset("qmcpack", "preconditioned") — derived from 115x69x69x288/, no extra files.
(orbital, x, y, z) = (288, 115, 69, 69): each orbital is a contiguous, smooth 3D block. This is the layout of the SDRBench command examples (einspline_288_115_69_69.pre.f32); computed on load from the stored file.
| Field | dtype | Shape (C order) | File |
|---|---|---|---|
einspline |
<f4 |
288 x 115 x 69 x 69 | 115x69x69x288/einspline_115_69_69_288.f32 |
original
sdrbench.dataset("qmcpack", "original") — folder 115x69x69x288/ — 3 files, 630.7 MB, from SDRBENCH-QMCPack.tar.gz.
The layout QMCPACK uses in memory: (x, y, z, orbital) = (115, 69, 69, 288), orbital index fastest.
| Field | dtype | Shape (C order) | File |
|---|---|---|---|
einspline |
<f4 |
115 x 69 x 69 x 288 | 115x69x69x288/einspline_115_69_69_288.f32 |
Other files: 115x69x69x288/SDRBENCH-QMCPACK-115x69x69x288-property.txt, 115x69x69x288/template_data.txt
Citation
Please cite SDRBench; sdrbench cite qmcpack prints it:
@inproceedings{zhao2020sdrbench,
title = {{SDRBench}: Scientific Data Reduction Benchmark for Lossy Compressors},
author = {Zhao, Kai and Di, Sheng and Liang, Xin and Li, Sihuan and Tao, Dingwen and Chen, Zizhong and Cappello, Franck},
booktitle = {2020 IEEE International Conference on Big Data (Big Data)},
pages = {2716--2724},
year = {2020}
}
License and terms
The data are distributed by the SDRBench team for research use under the terms of the original data providers listed above (see the SDRBench website); please acknowledge them as requested. Rights remain with the data providers.
- Downloads last month
- -