Skip to main content

DPAstra orbital star wordmark and streamed trajectory

English · 简体中文

Molecular Dynamics, One API Away.

DPAstra = DPA + astra (“stars”).
DPA-native. API-first. Built for frontier MLIPs.

CI Research preview

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 ID
DPA4C nano omat24-dpa4c-nano
DPA4

The API model ID is a human-readable catalog alias, not an authentication credential. Users submit that ID; 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 IDs 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 model IDs 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

dpastra-0.1.1.tar.gz (936.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dpastra-0.1.1-py3-none-any.whl (469.2 kB view details)

Uploaded Python 3

File details

Details for the file dpastra-0.1.1.tar.gz.

File metadata

  • Download URL: dpastra-0.1.1.tar.gz
  • Upload date:
  • Size: 936.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for dpastra-0.1.1.tar.gz
Algorithm Hash digest
SHA256 15d52171ab44d0be8c194392f430fb3fae3774452b98e3d55d77618a8fd463f9
MD5 464ef9979d906f4c57cb866f1f724e96
BLAKE2b-256 6f005801462f23a72f30fad6e4c64f8f369db62f89e3516dbfa9507ee2393313

See more details on using hashes here.

File details

Details for the file dpastra-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dpastra-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 469.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for dpastra-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f70c0dfff1eaf190f347e130f92e70e80e36c11f05f7016aac1a1aa8a66bd95e
MD5 ae06000a931312e9735ae50f19e899af
BLAKE2b-256 7b11dd15ff2e95ad050d02e99e8f27e546edc78083b97dc88128871197adac1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page