Molecular dynamics, one API away.
DPAstra = DPA + astra (“stars”).
DPA-native. API-first. Built for frontier MLIPs.
Run molecular dynamics through an LLM-style API
The destination: interact from a local Python notebook, run molecular dynamics with 10M+ atoms in the cloud, and stream live thermodynamics and trajectory previews—all through one API.
LLM APIs let researchers call frontier models without operating the inference stack. DPAstra applies the same abstraction to stateful molecular dynamics: scientists declare a potential, atoms, and a simulation protocol; qualified workers own the accelerator runtime and the complete MD session.
DPAstra is an independent API-first layer built to serve DPA models and other frontier MLIPs, designed around DeePMD-kit execution interfaces and the open DeepModeling ecosystem.
Install
Research Preview. The default PyPI install contains the client SDK only. For source development and local execution, see the development guide.
pip install dpastra
Models
| Model | Size | API model key |
|---|---|---|
| DPA4C | nano |
omat24-dpa4c-nano |
| DPA4 | — | — |
The API model key is a human-readable catalog alias. Users submit that key; the
service resolves it to one exact immutable model revision before the run is
persisted. Advanced callers can optionally assert model_revision, while the
ordinary model list and submission path stay digest-free. Catalog keys may
change before the first public release. — means no DPAstra-qualified entry.
[!WARNING] Research Preview. The API and qualified model catalog may change before the first public release. A deployment provider supplies the HTTPS base URL, API key, and models available to each user. Model availability is not proof of scientific accuracy or production convergence for a particular system.
Scale note: 10M+ atom cloud MD depends on future qualified LAMMPS/Kokkos and multi-GPU fleet backends; it is not a current validated capability.
Use
[!WARNING] The API is under active development. This example shows the current intended SDK shape and may change before release.
Ask your deployment provider for DPASTRA_BASE_URL and DPASTRA_API_KEY, then
keep both values in your environment rather than in a notebook or script. The
SDK has no default service URL. Install the optional terminal dashboard with
pip install 'dpastra[watch]' before calling run.watch().
import os
from ase.build import bulk
from dpastra import Client, MD
atoms = bulk("Cu", cubic=True)
try:
client = Client(
os.environ["DPASTRA_BASE_URL"],
api_key=os.environ["DPASTRA_API_KEY"],
)
except KeyError as error:
raise SystemExit(f"Set {error.args[0]} before connecting to DPAstra") from None
with client:
run = client.md.submit(
atoms,
model="omat24-dpa4c-nano",
dynamics=MD.verlet(timestep_fs=0.1),
velocity_initialization=MD.zero_velocities(),
steps=4,
checkpoint_every=2,
store_every=1,
thermo_every=1,
stream_every=1,
)
run.watch()
run.download_artifact("trajectory", "trajectory.traj")
The deployment operator publishes the endpoint, credential, and available
catalog. Users can discover keys with client.models() and select one for a
run. DPAstra freezes the resolved exact revision in the durable run record;
streamed frames are previews, while the downloaded trajectory is the
authoritative result.
Documentation
- MD parameters — constant-temperature setup, timestep, velocities, constraints, cadence, and planned LAMMPS mappings.
- Watch a run — terminal and notebook previews, with the authoritative trajectory downloaded after completion.
- Development guide — current source setup and local execution.
- Scientific contract — units, ensembles, cadence, and supported boundaries.
- Architecture — control plane, workers, sessions, and artifacts.
- Product plan — evidence-gated development direction.
DPAstra is an independent Research Preview, not an official DeepModeling project. It is licensed under the Apache License 2.0.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dpastra-0.1.0.tar.gz.
File metadata
- Download URL: dpastra-0.1.0.tar.gz
- Upload date:
- Size: 1.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5e900344f4d8b49c2bab3bb3905e9ecba9003b41dc97a9e3256a15412910563
|
|
| MD5 |
6d6f8ae9fcca753ac5b4ad6b5646f642
|
|
| BLAKE2b-256 |
45fd8acb5a0cd976ace65a0d9b88a3b151ecd428773a1491fad57d9f67ffbcd5
|
File details
Details for the file dpastra-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dpastra-0.1.0-py3-none-any.whl
- Upload date:
- Size: 469.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a99860f0fbe72a43faa28175045b4db83e5188536c8aab1a7072979a996bf55
|
|
| MD5 |
901ca49839995e1bc73031ec0de2c444
|
|
| BLAKE2b-256 |
de7a9b23eb14aeacd812d1d78672077786e68d54fe9001a1ca9ff3d21b1c8917
|