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.0.tar.gz (383.9 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.0-py3-none-any.whl (82.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlxmolkit-0.1.0.tar.gz
  • Upload date:
  • Size: 383.9 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.0.tar.gz
Algorithm Hash digest
SHA256 6ce02ca26f990d806ba490405a71e46ff977867de7deb6a0cf06ded51c33714a
MD5 d69b8e5158991f49237e064d876be3e0
BLAKE2b-256 0109dcf0505e15c7d39bdb8530e558dcc5061c7411cd3840faf41adc273bf4f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlxmolkit-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: mlxmolkit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 82.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73fa91c73cebf5dba9a107131132cd5875ec9cf1a253b033192f0ead931e47cc
MD5 2bcefc0c217cb6159c2fccb825f682ca
BLAKE2b-256 4ec45184b7bdefd940316c805be6ae6b886cbd2064d7646a599d7740c6212274

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlxmolkit-0.1.0-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