Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
created_at_utc: string
dataset: string
variant: string
spec: string
n_samples: int64
max_samples_per_file: int64
n_files: int64
num_workers: int64
batch_size: int64
compression: string
compression_level: int64
output_files: list<item: string>
  child 0, item: string
elapsed_seconds: double
generated_at_utc: string
results: list<item: struct<spec: string, status: string, message: string, output_dir: string, n_samples: int6 (... 38 chars omitted)
  child 0, item: struct<spec: string, status: string, message: string, output_dir: string, n_samples: int64, n_files: (... 26 chars omitted)
      child 0, spec: string
      child 1, status: string
      child 2, message: string
      child 3, output_dir: string
      child 4, n_samples: int64
      child 5, n_files: int64
      child 6, elapsed_s: double
failed: int64
ok: int64
planned: int64
skipped: int64
to
{'generated_at_utc': Value('string'), 'ok': Value('int64'), 'skipped': Value('int64'), 'planned': Value('int64'), 'failed': Value('int64'), 'results': List({'spec': Value('string'), 'status': Value('string'), 'message': Value('string'), 'output_dir': Value('string'), 'n_samples': Value('int64'), 'n_files': Value('int64'), 'elapsed_s': Value('float64')})}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 274, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 544, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3074, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2578, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2603, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 577, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 459, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 373, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              created_at_utc: string
              dataset: string
              variant: string
              spec: string
              n_samples: int64
              max_samples_per_file: int64
              n_files: int64
              num_workers: int64
              batch_size: int64
              compression: string
              compression_level: int64
              output_files: list<item: string>
                child 0, item: string
              elapsed_seconds: double
              generated_at_utc: string
              results: list<item: struct<spec: string, status: string, message: string, output_dir: string, n_samples: int6 (... 38 chars omitted)
                child 0, item: struct<spec: string, status: string, message: string, output_dir: string, n_samples: int64, n_files: (... 26 chars omitted)
                    child 0, spec: string
                    child 1, status: string
                    child 2, message: string
                    child 3, output_dir: string
                    child 4, n_samples: int64
                    child 5, n_files: int64
                    child 6, elapsed_s: double
              failed: int64
              ok: int64
              planned: int64
              skipped: int64
              to
              {'generated_at_utc': Value('string'), 'ok': Value('int64'), 'skipped': Value('int64'), 'planned': Value('int64'), 'failed': Value('int64'), 'results': List({'spec': Value('string'), 'status': Value('string'), 'message': Value('string'), 'output_dir': Value('string'), 'n_samples': Value('int64'), 'n_files': Value('int64'), 'elapsed_s': Value('float64')})}
              because column names don't match

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

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 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

pip install atompack-db

Import the package as atompack after installation.

Open a Dataset

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:

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. If you use this path, cite LeMat-Bulk.
  • matpes/pbe and matpes/r2scan, from MatPES. If you use these paths, cite MatPES.
  • mp_aloe, from MP-ALOE. If you use this path, cite MP-ALOE.
  • mptrj, from MPtrj. If you use this path, cite MPtrj.
  • oc20/s2ef_train_all, from Open Catalyst 2020 (OC20). 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). 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) (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.
  • omat/train and omat/val, from 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

Downloads last month
336

Paper for LeMaterial/Atompack

Article mentioning LeMaterial/Atompack