Add dataset README for LeMaterial/Atompack
Browse files
README.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LeMaterial/Atompack
|
| 2 |
+
|
| 3 |
+
Atompack is the Hugging Face Hub repository for public atomistic ML datasets distributed in the
|
| 4 |
+
Atompack format.
|
| 5 |
+
|
| 6 |
+
This repository is part of the broader [LeMaterial](https://lematerial.org) effort. Its role is
|
| 7 |
+
distribution and serving: it exposes packaged dataset paths that can be opened directly with the
|
| 8 |
+
`atompack` Python package.
|
| 9 |
+
|
| 10 |
+
The data hosted here comes from upstream public datasets such as LeMat-Bulk, MatPES, MP-ALOE,
|
| 11 |
+
MPtrj, and OMAT24. This repository is not the original source of those datasets.
|
| 12 |
+
|
| 13 |
+
## Install
|
| 14 |
+
|
| 15 |
+
```bash
|
| 16 |
+
pip install atompack-db
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
Import the package as `atompack` after installation.
|
| 20 |
+
|
| 21 |
+
## Open a Dataset
|
| 22 |
+
|
| 23 |
+
```python
|
| 24 |
+
import atompack
|
| 25 |
+
|
| 26 |
+
db = atompack.hub.open(
|
| 27 |
+
repo_id="LeMaterial/Atompack",
|
| 28 |
+
path_in_repo="omat/train",
|
| 29 |
+
)
|
| 30 |
+
print(len(db))
|
| 31 |
+
print(db[0].energy)
|
| 32 |
+
db.close()
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
You can also download a local copy first:
|
| 36 |
+
|
| 37 |
+
```python
|
| 38 |
+
import atompack
|
| 39 |
+
|
| 40 |
+
local_path = atompack.hub.download(
|
| 41 |
+
repo_id="LeMaterial/Atompack",
|
| 42 |
+
path_in_repo="omat/train",
|
| 43 |
+
)
|
| 44 |
+
db = atompack.hub.open_path(local_path)
|
| 45 |
+
print(len(db))
|
| 46 |
+
db.close()
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
## Available Dataset Paths
|
| 50 |
+
|
| 51 |
+
The main public dataset paths currently exposed in this repository include:
|
| 52 |
+
|
| 53 |
+
- `lematbulk/pbe`
|
| 54 |
+
- `matpes/pbe`
|
| 55 |
+
- `matpes/r2scan`
|
| 56 |
+
- `mp_aloe`
|
| 57 |
+
- `mptrj`
|
| 58 |
+
- `omat/train`
|
| 59 |
+
- `omat/val`
|
| 60 |
+
|
| 61 |
+
These paths may be stored as one `.atp` file or as a shard directory.
|
| 62 |
+
`atompack.hub.open(...)` handles both through the same read-only API.
|
| 63 |
+
|
| 64 |
+
## Upstream Dataset Sources
|
| 65 |
+
|
| 66 |
+
The packaged datasets in this repository come from the following upstream sources:
|
| 67 |
+
|
| 68 |
+
- `lematbulk/pbe`: [LeMat-Bulk](https://huggingface.co/datasets/LeMaterial/LeMat-Bulk). If you use this path, cite LeMat-Bulk.
|
| 69 |
+
- `matpes/pbe`, `matpes/r2scan`: [MatPES](https://docs.materialsproject.org/collaborations/matpes). If you use these paths, cite MatPES.
|
| 70 |
+
- `mp_aloe`: [MP-ALOE](https://www.nature.com/articles/s41524-025-01834-9). If you use this path, cite MP-ALOE.
|
| 71 |
+
- `mptrj`: [MPtrj](https://docs.materialsproject.org/services/ml-and-ai-applications/mptrj). If you use this path, cite MPtrj.
|
| 72 |
+
- `omat/train`, `omat/val`: [OMAT24](https://huggingface.co/datasets/facebook/OMAT24). If you use these paths, cite OMAT24.
|
| 73 |
+
|
| 74 |
+
If you use one of these dataset paths, please cite the corresponding upstream dataset.
|
| 75 |
+
|
| 76 |
+
## Why Atompack
|
| 77 |
+
|
| 78 |
+
Atompack is designed for the point where atomistic datasets stop behaving like small scientific
|
| 79 |
+
databases and start behaving like training corpora: repeated random reads, multiprocessing
|
| 80 |
+
workers, large immutable snapshots, and regular export and publish steps.
|
| 81 |
+
|
| 82 |
+
It provides:
|
| 83 |
+
|
| 84 |
+
- read-only mmap-backed access for static datasets
|
| 85 |
+
- direct indexed reads of full molecule records
|
| 86 |
+
- support for local files and shard directories
|
| 87 |
+
- direct open/download helpers for Hugging Face Hub paths
|
| 88 |
+
|
| 89 |
+
## More
|
| 90 |
+
|
| 91 |
+
- Project repository: <https://github.com/LeMaterial/atompack>
|
| 92 |
+
- LeMaterial: <https://lematerial.org>
|