Skip to main content

Symmetrix-XL

In Symmetrix-XL, XL stands for eXtreme scale, Low latency.

Symmetrix-XL provides native CPU and GPU inference for MACE and MACEField models. The published distribution is named symmetrix-xl; the Python import namespace and command-line interface remain symmetrix.

The methods and benchmark protocol are described in Train for Accuracy, Execute at Scale: Architecture-Preserving Inference for Equivariant Atomistic Foundation Models.

This package is a fork of the original symmetrix project. Symmetrix-XL adds two execution strategies:

  1. Edge streaming. Edge messages are consumed immediately instead of being fully materialized in DRAM.
  2. Specialized code generation. Source for critical operations is generated from the model architecture and parameters, enabling compiler specialization and vectorization.

The base distribution contains the Python frontend and an x86-64-v3 CPU/OpenMP backend, which requires AVX2, FMA, and the other x86-64-v3 features. CUDA and HIP backends are installed as separate, architecture-qualified packages so that they can coexist without overwriting the frontend or CPU extension.

The frontend is the Python API, ASE calculator, model-conversion tools, and CLI. The backend is the native CPU/OpenMP, CUDA, or HIP extension that constructs graphs and evaluates the model. Pre-compiled pip packages are the recommended path when available because they provide tested, architecture- matched native code without requiring a local C++/Kokkos/CUDA or HIP toolchain; build from source when no suitable wheel exists or when developing the backend.

Demonstrated scale

The paper's FP32 single-GPU LAMMPS capacity benchmark uses the MACE-OMAT-0 medium checkpoint on cubic SrTiO3, with a 6.0 A model cutoff and a 0.5 A neighbor-list skin:

Execution A100 80 GB atoms RTX 5090 32 GB atoms
ML-IAP + cuEquivariance 24,565 8,640
Symmetrix-XL standard streaming 1,250,235 486,680
Symmetrix-XL tiled streaming 11,240,455 4,152,920

Tiled streaming is an explicitly enabled capacity mode; standard streaming remains the default. These values are capacity-boundary probes under the stated protocol, not general capacity guarantees or sustained 20-step MD results. On 64 A800 GPUs, tiled streaming weak-scaled to 703.04 million atoms at 93.81% efficiency.

Demonstrated speed

The Symmetrix-XL paper reports the matched performance study, including the model, graph policy, hardware, warmup, and measurement protocol. Release documentation does not reproduce timings from comparison packages; consult the paper when evaluating performance claims.

Release qualification scope

Public documentation states approved release behavior only. Before final wheel builds, an internal pre-release verification plan runs the selected CPU/CUDA/HIP correctness cases and OpenMP scaling/throughput/tile/speedup cases exactly once to detect regressions; results remain private unless explicitly approved for publication. Correctness must pass with no unacceptable regression; wheel evidence requires archive/install integrity, source/Python/catalog identity, a strict native-first doctor with one compatible OpenMP runtime and OpenBLAS, no native issues, and applicable numerical smoke/E-F/S checks.

Installation

Symmetrix-XL supports CPython 3.10 through 3.14 on Linux x86-64.

python -m pip install symmetrix-xl

Install a GPU package whose architecture exactly matches the target device. For example:

python -m pip install symmetrix-xl-cuda12-sm80
python -m pip install symmetrix-xl-cuda13-sm120

GPU packages depend on the matching version of symmetrix-xl, so installing a GPU backend also installs the frontend and CPU fallback. CUDA runtime, cuBLAS, and NVRTC libraries are supplied by declared NVIDIA Python packages. A compatible NVIDIA driver remains a host requirement.

Inspect the installed backends and verify the selected runtime in a fresh process:

symmetrix backend list
symmetrix backend show
symmetrix doctor

Published accelerator wheels can also be installed from the CLI:

symmetrix backend install
symmetrix backend install --arch cuda13-sm120

The default --arch auto detects one visible GPU architecture. The command uses uv when available and otherwise invokes python -m pip; it reports the detected architecture, toolkit version and source, selected package, and Python environment before installing. If the detected CUDA-major wheel is not published, automatic selection probes the lower CUDA 12 wheel for the same architecture. On CPU-only hosts, the bundled CPU backend needs no download. If no pre-built wheel is available, the CLI reports a source-build command.

The frontend loads exactly one native backend per process. Without an explicit selection, it chooses an installed accelerator backend only when its architecture exactly matches a visible device; otherwise it uses CPU. Select a backend before importing a calculator when more than one usable backend is installed:

SYMMETRIX_BACKEND=cuda13-sm120 python calculation.py

An extension compiled for one GPU architecture must not be used on another architecture. NVRTC specializes model kernels at runtime, but Kokkos and SpheriCart device code is compiled ahead of time into the backend extension.

Source installation

Clone the repository with its submodules, create an environment, and use the build frontend from the repository root:

git clone --recursive https://github.com/bonan-group/symmetrix-xl.git
cd symmetrix-xl
uv venv
source .venv/bin/activate
python tools/symmetrix_build.py install --backend cpu --cpu-target native

Use --cpu-target x86-64-v3 for a portable x86-64-v3 CPU build. A native build is optimized for the build host and should not be copied to heterogeneous machines.

Build an exact CUDA backend with a matching development toolkit:

python tools/symmetrix_build.py install \
    --backend cuda --arch sm120 --cuda-root /usr/local/cuda-13.3

Build HIP in a separate environment and build directory:

python tools/symmetrix_build.py install \
    --backend hip --arch gfx1151 --rocm-root /opt/rocm

Source builds require Python 3.10 or newer, CMake 3.27 or newer, a C++20 compiler, a Fortran compiler, OpenBLAS or another compatible optimized BLAS, and a recursive checkout. CUDA builds additionally require a matching CUDA toolkit and nvcc; HIP builds require a matching ROCm toolkit and hipcc. Do not reuse a build directory across CPU, CUDA, and HIP backends.

The maintained build and cluster instructions are in the installation guide and developer build guide.

Model conversion

Compact Symmetrix-XL JSON is the preferred deployment format. JSON evaluation does not require PyTorch or mace-torch; those packages are needed only when loading or converting an upstream checkpoint.

Install the optional converter dependencies and export a checkpoint:

python -m pip install "symmetrix-xl[mace]"
symmetrix_extract_mace \
    --model mace-omat-0-medium.model \
    --output srtio3-mace.json

Universal compact exports are preferred. By omitting --chemical-symbols and --atomic-numbers, the compact export retains the checkpoint's complete element domain without generating per-element-pair spline tables (--radial-format pair-splines). Nonlinear MACE exports likewise retain the complete domain and do not support element subsets. Universal files still contain the checkpoint's element-indexed learned parameters. Use a subset only for an intentionally restricted deployment or a pair-spline file. Exports use format version 4 (no inverse of linear_up); format-1/2 JSON still loads, with a warning, and is converted with symmetrix_recompose_mace_json --input old.json --output new.json.

The converter retains all compatible prediction heads. Use --head to select the default head without discarding the others:

symmetrix_extract_mace \
    --model MACEField-MH-0-omat-dielectric.model \
    --head mp-dielectric \
    --output srtio3-macefield.json

MACEField checkpoints must be converted before use. Passing an original MACEField checkpoint directly to the calculator is rejected rather than silently delegating evaluation to PyTorch.

ASE calculator

Use the compact model as a drop-in replacement for the usual MACECalculator in ASE workflows:

from ase.spacegroup import crystal
from symmetrix import Symmetrix

a = 3.905
atoms = crystal(
    symbols=["Sr", "Ti", "O"],
    basis=[(0, 0, 0), (0.5, 0.5, 0.5), (0.5, 0.5, 0)],
    spacegroup=221,
    cellpar=[a, a, a, 90, 90, 90],
)
atoms.calc = Symmetrix("srtio3-mace.json")

energy = atoms.get_potential_energy()
forces = atoms.get_forces()
stress = atoms.get_stress()

Model evaluation defaults to FP32. Request FP64 explicitly when needed:

atoms.calc = Symmetrix("srtio3-mace.json", dtype="float64")

Native DFT-D2 and two-body DFT-D3 corrections can be added without PyTorch or torch-dftd:

from symmetrix import D3Correction, Symmetrix

atoms.calc = Symmetrix(
    "srtio3-mace.json",
    corrections=[D3Correction(functional="pbe", damping="bj")],
)

The correction runs through the loaded Kokkos CPU, CUDA, or HIP backend and owns a neighbor graph independent of the model graph. See the dispersion guide for D2, damping choices, cutoffs and skin, diagnostics, and limitations. The deprecated symmetrix-xl[dispersion] extra remains an empty compatibility extra; ordinary symmetrix-xl already contains the native implementation.

Direct execution is the default for supported compact models. Two-interaction models compile or reuse a precision- and backend-specific artifact and fail clearly when it cannot be produced or loaded. Admitted single-layer models use built-in direct execution without an R1 artifact; capacity planning may still compile or load specialized M0/R0 operator modules. Use streamed_edges="non-compiled" only as a compiler-free compatibility or diagnostic mode.

A cold CPU specialization requires a C++20 compiler at runtime. CUDA specialization uses NVRTC from the backend package's declared NVIDIA dependencies and still requires a compatible host driver.

Runtime artifacts are stored in a private per-user cache. Set SYMMETRIX_JIT_CACHE before starting Python to choose an explicit location:

export SYMMETRIX_JIT_CACHE=/path/to/private/symmetrix-jit-cache
symmetrix_prepare_jit_host_artifact \
    --model srtio3-mace.json --precision float32

The cache contains executable code and must not be writable by other users. Generated artifacts are specific to the model contract, precision, backend, compiler/runtime identity, and host or GPU target. On Linux, the cache filesystem must support renameat2(..., RENAME_NOREPLACE) (local ext4 and tmpfs do). Some network filesystems, including parastor and Lustre deployments on older kernels, do not. Prefer node-local storage such as /dev/shm; when that is not available, SYMMETRIX_JIT_PUBLISH=lock-fallback opts into a weaker lock-file publication path with a small cross-process race window.

MACEField

MACEField models expose energy, forces, stress, polarization, Born effective charges, and polarizability. Set the electric field on the calculator or in the ASE structure:

import numpy as np
from symmetrix import Symmetrix

atoms.info["electric_field"] = np.array([0.01, -0.02, 0.03])
atoms.calc = Symmetrix("srtio3-macefield.json", dtype="float64")

energy = atoms.get_potential_energy()
forces = atoms.get_forces()
polarization = atoms.calc.get_property("polarization", atoms)
becs = atoms.calc.get_property("becs", atoms)
polarizability = atoms.calc.get_property("polarizability", atoms)

Response properties are computed only when requested. Calculator instances are stateful and should not be called concurrently from multiple host threads.

Model ensembles

SymmetrixEnsemble evaluates compatible models sequentially in one process and returns the member mean through ordinary ASE properties. Member values use the _comm suffix and population variances use _var:

from symmetrix import SymmetrixEnsemble

atoms.calc = SymmetrixEnsemble(["model-1.json", "model-2.json"])
mean_energy = atoms.get_potential_energy()
member_forces = atoms.calc.get_property("forces_comm", atoms)
force_variance = atoms.calc.get_property("forces_var", atoms)

Ensemble members must agree on model type, species, cutoff, precision, backend, and execution mode.

LAMMPS

LAMMPS integration is provided by pair_symmetrix. It does not embed Python or compile model-specific code at runtime, so required host or device artifacts must be prepared before launch. See the LAMMPS guide for installation, artifact preparation, precision, and MPI requirements.

Troubleshooting

Always diagnose the exact environment used for evaluation:

symmetrix backend list
symmetrix backend show --probe
symmetrix doctor --json

For CPU deployments, doctor checks OpenMP runtime identity and worker participation. For CUDA and HIP, it checks device compatibility and launches a sentinel kernel. Set SYMMETRIX_OPENMP_RUNTIME_CHECK=strict for production CPU qualification.

When reporting a failure, include the backend selector, model hash, precision, compiler or toolkit version, and the JSON output from symmetrix doctor. Detailed diagnostic guidance is available in the troubleshooting guide.

Documentation

Development

From a recursive source checkout:

test -x .venv/bin/python || uv venv .venv
source .venv/bin/activate
uv pip install scikit-build-core pybind11 ninja
source_fingerprint=$(python -c 'from pathlib import Path; from tools._symmetrix_build.source_provenance import symmetrix_source_fingerprint; print(symmetrix_source_fingerprint(Path.cwd()))')
uv pip install --no-build-isolation --reinstall-package symmetrix-xl \
  -e "./symmetrix[test]" \
  --config-setting="cmake.define.SYMMETRIX_BUILD_SOURCE_CONTENT_SHA256=$source_fingerprint"
# Default internal verification profile (~2,000 cases, including explicit ASE end-to-end checks).
pytest -m "not extended" symmetrix/test
# Matrix-expanded coverage only, when needed.
pytest -m extended symmetrix/test
# Full compact plus extended suite.
# pytest symmetrix/test
uvx pre-commit run --all-files

Keep CPU, CUDA, HIP, and LAMMPS builds in separate build directories. The CPU frontend and architecture-qualified accelerator add-ons may coexist in one virtual environment; select the backend with SYMMETRIX_BACKEND before import and use a fresh process for each backend. Use separate environments for comparison packages or conflicting toolchains.

License

Symmetrix-XL is distributed under the MIT License. pair_symmetrix is GPLv2 to remain compatible with LAMMPS.

Metadata

Release files for symmetrix-xl 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for symmetrix-xl 0.2.0
File Size Uploaded Provenance Actions
symmetrix_xl-0.2.0.tar.gz 36.8 MB With provenance Details for symmetrix_xl-0.2.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for symmetrix-xl 0.2.0
File Actions
symmetrix_xl-0.2.0-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details for symmetrix_xl-0.2.0-cp314-cp314-manylinux_2_28_x86_64.whl
symmetrix_xl-0.2.0-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for symmetrix_xl-0.2.0-cp313-cp313-manylinux_2_28_x86_64.whl
symmetrix_xl-0.2.0-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for symmetrix_xl-0.2.0-cp312-cp312-manylinux_2_28_x86_64.whl
symmetrix_xl-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for symmetrix_xl-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl
symmetrix_xl-0.2.0-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details for symmetrix_xl-0.2.0-cp310-cp310-manylinux_2_28_x86_64.whl

Total release size: 166.9 MB

Release files / symmetrix_xl-0.2.0.tar.gz

Download URL symmetrix_xl-0.2.0.tar.gz
Size 36.8 MB
Tags Source
SHA-256 checksum
How to use checksums
f1583230b557abaac45ea4251b2002306408eb122dd9c34109db77088ad86c35
BLAKE2b-256 checksum
How to use checksums
57374aa5131a6bbc45c2093f849ac5b1f2aa31dccddd3b5dd24be90e34226865
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / symmetrix_xl-0.2.0-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL symmetrix_xl-0.2.0-cp314-cp314-manylinux_2_28_x86_64.whl
Size 26.0 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
bc8fc7bc215b05aa67d0df6b47003d2ac71ba3b1f7cd2c0e2a167afca21ea448
BLAKE2b-256 checksum
How to use checksums
7c117ee374be75e8d470e1eec69275fb65050f88e84422cabb71659bc22835af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / symmetrix_xl-0.2.0-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL symmetrix_xl-0.2.0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 26.0 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
881f340007c93832fef461179ff37a4630e444b9de08530ddd31910b99c3d979
BLAKE2b-256 checksum
How to use checksums
40caea16cdcb320e7605d3cff27adcc082dd09c804754e2c0faf1c1ca8fe3ee2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / symmetrix_xl-0.2.0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL symmetrix_xl-0.2.0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 26.0 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
3b1bafab738452605b6cb6456ca8361bf153728db9920617e6e6f3d9c0cec251
BLAKE2b-256 checksum
How to use checksums
4135bbe3d18241b4145c6e5806b4a387231e9a95b15d129486fc5f8884daf8c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / symmetrix_xl-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL symmetrix_xl-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 26.0 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a654410181cbbb845869b785ed790b03c64c876a7b986428461a8a27df012196
BLAKE2b-256 checksum
How to use checksums
b2a297e5143add8564be7a5b303f86d6c4f6777d07dfa926dfbcbf95e1856b3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / symmetrix_xl-0.2.0-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL symmetrix_xl-0.2.0-cp310-cp310-manylinux_2_28_x86_64.whl
Size 26.0 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a181ac273fb35eed5d814494705bfc36a00b24099b8507373b50946e72a8f9c0
BLAKE2b-256 checksum
How to use checksums
6cac1f6f14cef14cad29c35b0eb81eab30fe37bed85a76740eb1f5ddea141c8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for symmetrix-xl 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for symmetrix_xl-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page