File size: 4,958 Bytes
1c074a4 3083a70 b268ed3 3083a70 2d0d41c 3083a70 2d0d41c 3083a70 2d0d41c d4fe9c8 b268ed3 2d0d41c 3083a70 fe0a935 b268ed3 d4fe9c8 3083a70 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | ---
language:
- en
pretty_name: LeMaterial/Atompack
tags:
- atomistic-machine-learning
- materials-science
- chemistry
- atompack
task_categories:
- other
size_categories:
- 100M<n<1B
configs:
- config_name: default
data_files:
- split: train
path: "**"
---
# LeMaterial/Atompack
Atompack is the Hugging Face Hub repository for public atomistic ML datasets distributed in the
Atompack format.
This repository is part of the broader [LeMaterial](https://lematerial.org) effort. Its role is
distribution and serving: it exposes packaged dataset paths that can be opened directly with the
`atompack` Python package.
The data hosted here comes from upstream public datasets such as LeMat-Bulk, MatPES, MP-ALOE,
MPtrj, OMAT24, OC20, and OC22. This repository is not the original source of those datasets.
## Install
```bash
pip install atompack-db
```
Import the package as `atompack` after installation.
## Open a Dataset
```python
import atompack
db = atompack.hub.open(
repo_id="LeMaterial/Atompack",
path_in_repo="omat/train",
)
print(len(db))
print(db[0].energy)
db.close()
```
You can also download a local copy first:
```python
import atompack
local_path = atompack.hub.download(
repo_id="LeMaterial/Atompack",
path_in_repo="omat/train",
)
db = atompack.hub.open_path(local_path)
print(len(db))
db.close()
```
## Dataset Paths and Sources
The main public dataset paths currently exposed in this repository are:
- `lematbulk/pbe`, from [LeMat-Bulk](https://huggingface.co/datasets/LeMaterial/LeMat-Bulk). If you use this path, cite LeMat-Bulk.
- `matpes/pbe` and `matpes/r2scan`, from [MatPES](https://docs.materialsproject.org/collaborations/matpes). If you use these paths, cite MatPES.
- `mp_aloe`, from [MP-ALOE](https://www.nature.com/articles/s41524-025-01834-9). If you use this path, cite MP-ALOE.
- `mptrj`, from [MPtrj](https://docs.materialsproject.org/services/ml-and-ai-applications/mptrj). If you use this path, cite MPtrj.
- `oc20/s2ef_train_all`, from [Open Catalyst 2020 (OC20)](https://opencatalystproject.org/). This is the full S2EF training split exported as 10 AtomPack shards.
- `oc20/s2ef_val_id`, `oc20/s2ef_val_ood_ads`, `oc20/s2ef_val_ood_cat`, and `oc20/s2ef_val_ood_both`, from [Open Catalyst 2020 (OC20)](https://opencatalystproject.org/). These are the standard S2EF validation splits packaged as single-shard AtomPack datasets.
- `oc22/s2ef_total_train`, `oc22/s2ef_total_val_id`, and `oc22/s2ef_total_val_ood`, from [Open Catalyst 2022 (OC22)](https://fair-chem.github.io/catalysts/datasets/oc22) (CC-BY-4.0). These are the labelled S2EF-Total splits (8,225,293, 394,727, and 450,669 frames) packaged as single-shard AtomPack datasets. If you use these paths, cite [OC22](https://arxiv.org/abs/2206.08917).
- `omat/train` and `omat/val`, from [OMAT24](https://huggingface.co/datasets/facebook/OMAT24). If you use these paths, cite OMAT24.
These paths may be stored as one `.atp` file or as a shard directory.
`atompack.hub.open(...)` handles both through the same read-only API.
`mptrj` stress tensors were corrected on 2026-10-22. Earlier revisions stored the upper
triangle `(xx, xy, xz, yy, yz, zz)` in the Voigt slots `(xx, yy, zz, yz, xz, xy)`, which
scrambled the off-diagonal and `yy`/`zz` components. All other fields are unchanged. If you
trained on `mptrj` stresses from an earlier revision, re-download the dataset and retrain.
For the OC20 and OC22 exports in this repository, positions and forces are stored as `float32`,
while energies and cells are stored as `float64`.
OC22 energies are total DFT energies (VASP, PBE+U) in eV, not adsorption energies. Frames keep
the upstream atom order and these fields:
- `tags` (per atom, `int32`): 0 subsurface, 1 surface, 2 adsorbate.
- `sid`, `fid`, `nads`, and `id`: system id, frame index, adsorbate count, and the upstream
`Data.id`.
- `oc22_split`, `source_db`, and `source_row_id`: the official split, source LMDB, and row.
- `bulk_id`, `bulk_symbols`, `miller_index` (`int32`, 3), `slab_sid`, `ads_symbols`, and
`traj_id`, joined by `sid` from OC22's `oc22_metadata.pkl`. Missing values are empty
strings, or -1 for `slab_sid`; `slab_sid` is the clean slab with the same bulk and Miller
index.
Each OC22 `manifest.json` records the source checksums and per-field hashes.
## Why Atompack
Atompack is designed for the point where atomistic datasets stop behaving like small scientific
databases and start behaving like training corpora: repeated random reads, multiprocessing
workers, large immutable snapshots, and regular export and publish steps.
It provides:
- read-only mmap-backed access for static datasets
- direct indexed reads of full molecule records
- support for local files and shard directories
- direct open/download helpers for Hugging Face Hub paths
## More
- Project repository: <https://github.com/LeMaterial/atompack>
- LeMaterial: <https://lematerial.org>
|