Data module (AtomicData, Batch, readers/writers)#
Core classes#
Graph-structured container for a single atomic system. |
|
Graph-aware batch built on |
|
Registry mapping attributes to levels, dtypes, and level kinds. |
Device helpers#
Return device with a bare |
Transforms#
Compose a sequence of transforms into a single callable. |
|
Return data tiled |
- nvalchemi.data.transforms.DEFAULT_EXTENSIVE_SYSTEM_KEYS: frozenset[str]#
System-level fields a k-fold supercell carries k times over.
- nvalchemi.data.transforms.DEFAULT_INTENSIVE_SYSTEM_KEYS: frozenset[str]#
System-level fields a supercell carries unchanged.
I/O and pipelines#
Writer for serializing AtomicData into Zarr stores. |
|
Reader for loading AtomicData from Zarr stores. |
|
Store level, dtype, and row shape of one field an ALCHEMI Zarr store holds. |
|
AtomicData-native, map-style dataset that bypasses TensorDict conversion. |
|
Resident dataset that holds the whole dataset in memory as one |
|
Batch-iterating data loader that yields |
|
Abstract base class for data readers. |
Dataset composition and sampling#
Compose multiple batch-loadable datasets behind one global index space. |
|
Sample global indices from a |
|
Sample full global-index batches from a |
Return the subset of epoch items assigned to one distributed rank. |
Device helpers#
Return the concrete device dataset emits its batches on. |
|
Return whether tensors on two devices collate without a cross-device copy. |
Write configuration#
Per-array storage settings for compression, chunking, and sharding. |
|
Top-level storage plan handed to |