Update dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: sdrbench
|
| 4 |
+
license_link: https://sdrbench.github.io/
|
| 5 |
+
pretty_name: "SDRBench: QMCPACK"
|
| 6 |
+
tags:
|
| 7 |
+
- scientific-data
|
| 8 |
+
- lossy-compression
|
| 9 |
+
- sdrbench
|
| 10 |
+
- hpc
|
| 11 |
+
- sz3
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# SDRBench — QMCPACK
|
| 15 |
+
|
| 16 |
+
Many-body ab initio Quantum Monte Carlo (electronic structure of atoms, molecules and solids): einspline orbitals, single precision, little-endian. The archive holds the original layout (115, 69, 69, 288) with the orbital index fastest; variant 288x115x69x69 gives the preconditioned layout (288 orbitals x 115 x 69 x 69).
|
| 17 |
+
|
| 18 |
+
This repository is an **unmodified mirror** of the QMCPACK dataset from
|
| 19 |
+
[SDRBench](https://sdrbench.github.io/datasets.html), the Scientific Data Reduction Benchmark. The originals are hosted by
|
| 20 |
+
Argonne National Laboratory on Globus; every archive was unpacked and its files uploaded
|
| 21 |
+
byte-for-byte (sha256 verified). `metadata/` holds the original SDRBench property and template
|
| 22 |
+
files. The mirror is kept in sync automatically by
|
| 23 |
+
[szcompressor/sdrbench](https://github.com/szcompressor/sdrbench).
|
| 24 |
+
|
| 25 |
+
- **Data source:** QMCPACK performance test; contact Ye Luo (yeluo@anl.gov)
|
| 26 |
+
- **Total size:** 630.7 MB
|
| 27 |
+
- **Format:** raw little-endian binary, C order (slowest dimension first)
|
| 28 |
+
|
| 29 |
+
## Usage
|
| 30 |
+
|
| 31 |
+
```bash
|
| 32 |
+
pip install "sdrbench[sz3]" # sdrbench + pysz (SZ3)
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
```python
|
| 36 |
+
import numpy as np
|
| 37 |
+
import sdrbench
|
| 38 |
+
from pysz import sz, szConfig, szErrorBoundMode
|
| 39 |
+
|
| 40 |
+
ds = sdrbench.dataset("qmcpack") # default variant: 115x69x69x288
|
| 41 |
+
print(ds.fields)
|
| 42 |
+
x = ds["einspline"] # numpy array, dtype <f4, shape (115, 69, 69, 288)
|
| 43 |
+
|
| 44 |
+
# compress with SZ3 (pysz) at a 1e-3 value-range-relative error bound
|
| 45 |
+
conf = szConfig()
|
| 46 |
+
conf.errorBoundMode = szErrorBoundMode.REL
|
| 47 |
+
conf.relErrorBound = 1e-3
|
| 48 |
+
compressed, ratio = sz.compress(np.ascontiguousarray(x), conf)
|
| 49 |
+
y, _ = sz.decompress(compressed, x.dtype.type, x.shape)
|
| 50 |
+
max_err, psnr, nrmse = sz.verify(np.asarray(x), y)
|
| 51 |
+
print(f"ratio {ratio:.1f}x, PSNR {psnr:.1f} dB, max error {max_err:.3g}")
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
Other variants: `sdrbench.dataset("qmcpack", "288x115x69x69")`.
|
| 55 |
+
|
| 56 |
+
Files are downloaded on first use and cached; if Hugging Face is unreachable the package falls
|
| 57 |
+
back to the original archive on Globus.
|
| 58 |
+
|
| 59 |
+
Without the package, any file can be read with `huggingface_hub` and numpy:
|
| 60 |
+
|
| 61 |
+
```python
|
| 62 |
+
from huggingface_hub import hf_hub_download
|
| 63 |
+
import numpy as np
|
| 64 |
+
p = hf_hub_download("sdrbench/qmcpack", "115x69x69x288/einspline_115_69_69_288.f32", repo_type="dataset")
|
| 65 |
+
x = np.fromfile(p, dtype="<f4").reshape((115, 69, 69, 288))
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
## Contents
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
### `115x69x69x288` (default)
|
| 72 |
+
|
| 73 |
+
3 files, 630.7 MB, from [SDRBENCH-QMCPack.tar.gz](https://g-d0cd3f.fd635.8443.data.globus.org/raw-data/QMCPACK/SDRBENCH-QMCPack.tar.gz).
|
| 74 |
+
|
| 75 |
+
| Field | dtype | Shape (C order) | File |
|
| 76 |
+
|---|---|---|---|
|
| 77 |
+
| `einspline` | `<f4` | 115 x 69 x 69 x 288 | `115x69x69x288/einspline_115_69_69_288.f32` |
|
| 78 |
+
|
| 79 |
+
Other files: `115x69x69x288/SDRBENCH-QMCPACK-115x69x69x288-property.txt`, `115x69x69x288/template_data.txt`
|
| 80 |
+
|
| 81 |
+
### `288x115x69x69`
|
| 82 |
+
|
| 83 |
+
Preconditioned layout (orbital, z, y, x) recommended by the QMCPACK users and used in the SDRBench command examples (einspline_288_115_69_69.pre.f32). Not stored separately: computed on load by transposing the original file.
|
| 84 |
+
|
| 85 |
+
Derived layout: no extra files; computed on load from `115x69x69x288/`.
|
| 86 |
+
|
| 87 |
+
| Field | dtype | Shape (C order) | File |
|
| 88 |
+
|---|---|---|---|
|
| 89 |
+
| `einspline` | `<f4` | 288 x 115 x 69 x 69 | `115x69x69x288/einspline_115_69_69_288.f32` |
|
| 90 |
+
|
| 91 |
+
## Citation
|
| 92 |
+
|
| 93 |
+
If you use this dataset, please cite SDRBench:
|
| 94 |
+
|
| 95 |
+
```bibtex
|
| 96 |
+
@inproceedings{zhao2020sdrbench,
|
| 97 |
+
title = {{SDRBench}: Scientific Data Reduction Benchmark for Lossy Compressors},
|
| 98 |
+
author = {Zhao, Kai and Di, Sheng and Liang, Xin and Li, Sihuan and Tao, Dingwen and Chen, Zizhong and Cappello, Franck},
|
| 99 |
+
booktitle = {2020 IEEE International Conference on Big Data (Big Data)},
|
| 100 |
+
pages = {2716--2724},
|
| 101 |
+
year = {2020}
|
| 102 |
+
}
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
## License and terms
|
| 106 |
+
|
| 107 |
+
The data are distributed under the same terms as on the [SDRBench website](https://sdrbench.github.io/datasets.html).
|
| 108 |
+
Rights remain with the original data providers listed above.
|