Skip to main content

GPU-accelerated molecular 3D coordinate generation on Apple Silicon using MLX

Project description

mlxmolkit

GPU-accelerated molecular 3D coordinate generation on Apple Silicon using MLX.

mlxmolkit is a drop-in replacement for RDKit's ETKDG conformer generation that runs on Apple Silicon GPUs via the MLX framework. It matches the interface of NVIDIA's nvMolKit EmbedMolecules, bringing hardware-accelerated molecular embedding to Mac.

Installation

pip install mlxmolkit

Quick Start

from rdkit import Chem
from rdkit.Chem import AllChem
from mlxmolkit import EmbedMolecules

# Prepare molecules
smiles = ["CCO", "c1ccccc1", "CC(=O)Oc1ccccc1C(=O)O"]
molecules = [Chem.AddHs(Chem.MolFromSmiles(s)) for s in smiles]

# Configure ETKDG parameters
params = AllChem.ETKDGv3()
params.useRandomCoords = True

# Generate conformers on GPU
EmbedMolecules(molecules, params, confsPerMolecule=10)

Supports all standard ETKDG variants: ETKDG, ETKDGv2, ETKDGv3, srETKDGv3, KDG, ETDG, and pure DG.

Requirements

  • macOS with Apple Silicon (M1/M2/M3/M4)
  • Python >= 3.12

Dependencies

  • mlx - Apple's ML framework for Apple Silicon
  • rdkit - Cheminformatics toolkit
  • numpy

License

MIT

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mlxmolkit-0.1.1.tar.gz (403.6 kB view details)

Uploaded Source

Built Distribution

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

mlxmolkit-0.1.1-py3-none-any.whl (86.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlxmolkit-0.1.1.tar.gz
  • Upload date:
  • Size: 403.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mlxmolkit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ead71fc1a5af5a510499ae86ca17a3c720d3d957526f394574ca5d9133b96320
MD5 baa37ac5e0059492b4f791879bcd0c4a
BLAKE2b-256 77445695af883dfb39905f03d28670b9dd0365b5883565f33c0e3cac3d843e6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlxmolkit-0.1.1.tar.gz:

Publisher: publish.yml on shivampatel10/mlxmolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: mlxmolkit-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 86.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mlxmolkit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fad62b73d5f896eb2fcd06f5648eee10d2b78a64584d5e3f1dc7e7f1f482579d
MD5 4e1df069c5188d2abfa6e78fa7f74590
BLAKE2b-256 36f265d09131696cae4570378f0021c3915ecbde409c50e6dac7fe8dd942e45d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlxmolkit-0.1.1-py3-none-any.whl:

Publisher: publish.yml on shivampatel10/mlxmolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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