MLatom 3.27: the entire AIQM series now installs with pip

MLatom 3.27: the entire AIQM series now installs with pip

We have made many of our flagship AIQM methods more easily accessible by releasing MLatom 3.27.0 and Aitomic add-ons 2.0.0, which you can now install with pip. Previously, MLatom only shipped AIQM1 and AIQM2 implementations, while others had to be obtained separately on request; these releases remove the remaining activation barrier for using the methods.

Overview

Delta-learning architecture of the AIQM family
Delta-learning architecture of the AIQM family

The AIQM family combines a semiempirical baseline, an ensemble of neural-network corrections, and an explicit dispersion term. AIQM2 uses a GFN2-xTB* baseline and D4 dispersion; AIQM3 uses the same baseline with D3(BJ).

Since MLatom 3.27, AIQM3 is part of open-source MLatom under the Apache 2.0 license, one of the most permissive licenses for both academic and commercial use. AIQM3 strikes a good balance between speed, robustness, and accuracy for various applications, particularly those related to drug design.

AIQM3 was trained to target CCSD(T)*/CBS accuracy at a fraction of the cost: its cost is close to that of its semiempirical baseline GFN2-xTB*, and it extends beyond AIQM1 and AIQM2 to seven elements: H, C, N, O, F, S, and Cl. On the HCNO subset it retains AIQM2’s accuracy and slightly improves on it. In the reaction benchmarks reported in the paper, AIQM3 reaches a barrier-height MAE of 1.9 kcal/mol, lower than the tested DFT and machine-learning potentials, while AIQM2 remains slightly better for reaction energies (0.3 vs 0.6 kcal/mol).

AIQM3 was published in JCTC earlier in 2026, while many other AIQM methods remain unpublished (overviewed in a preprint), so they are now shipped separately in Aitomic add-ons under the Aitomic Academic License: free for academic, non-commercial research and teaching, with commercial use requiring a separate license.

The UAIQM library reaches well beyond AIQM3’s seven elements, but not uniformly: it offers coupled-cluster-targeted models for a smaller set of elements, DFT-targeted models for more, and no model for the rest.

Elements covered by the UAIQM model library, by the best target level available
Elements covered by the UAIQM model library, by the best target level available

Coverage is per model, not a property of “UAIQM” as a whole: each model has its own trained element set, target level, and accuracy tier, so choose the model for your chemistry rather than assuming every supported element has the same accuracy. The public UAIQM tutorial maintains the per-model table behind this figure.

Aitomic add-ons also provide automatic selection of the AIQM method.

In addition, AIQM methods come with data-efficient and robust fine-tuning implementations, so you can easily adjust them on your data.

Installation

Supported platform: Linux only. One conda environment gives you Python, MLatom, PySCF for frequencies, and the separate D3 program the models need:

conda create -n mlatom-aiqm python=3.11 -y
conda activate mlatom-aiqm

# MLatom, PySCF for frequencies, and the D3 executable AIQM3 uses
python -m pip install --upgrade mlatom pyscf
conda install -c conda-forge simple-dftd3 -y
export dftd3bin="$CONDA_PREFIX/bin/s-dftd3"

Then add UAIQM and the other unpublished models from the Aitomic add-ons:

python -m pip install --upgrade aitomic-addons

The add-ons install MLatom and its Python dependencies themselves. Use Python 3.9–3.11 (3.11 is recommended) on Linux x86-64 or ARM64.

Check both parts before starting a calculation:

python -c "import mlatom, pyscf; print(mlatom.__version__)"
"$dftd3bin" --version

dftd3bin is set per shell — repeat the export when you open a new terminal, or put it in your shell startup file. pip install dftd3 is not a substitute: it installs Python bindings, not the s-dftd3 executable.

AIQM1, AIQM2, and D4-based UAIQM models additionally need the separate D4 program:

conda install -c conda-forge 'dftd4=3.5.0' -y
export dftd4bin="$CONDA_PREFIX/bin/dftd4"

From MLatom 3.25 on, D4 energies agree across dftd4 versions because MLatom sets the damping parameters explicitly; take 3.5.0 when you need Hessians for frequencies and thermochemistry, which later versions do not provide. The first UAIQM calculation downloads the selected model’s parameters and prints a one-time license notice.

The complete dependency list, including other optional programs, is in the installation guide.

Use

AIQM3 needs no add-ons. This water example optimizes the geometry and calculates vibrations:

import mlatom as ml

water = ml.data.molecule.from_xyz_string('''3
Water
O 0.00000 0.00000 0.11779
H 0.00000 0.75545 -0.47116
H 0.00000 -0.75545 -0.47116
''')

model = ml.methods(method='AIQM3')
optimized = ml.optimize_geometry(model=model, initial_molecule=water).optimized_molecule
ml.freq(model=model, molecule=optimized, program='pyscf')

print('Vibrational frequencies (cm^-1):',
      ', '.join(f'{frequency:.1f}' for frequency in optimized.frequencies))

It prints the three vibrational frequencies of water, in cm⁻¹:

1770.7, 3879.2, 3929.9

To explore the modes yourself in a Jupyter notebook — not in a plain Python script — install py3Dmol once and call view(); the slider steps through all three modes:

python -m pip install py3Dmol
optimized.view(normal_mode=2, slider=True)

normal_mode=2 starts at the 3929.9 cm⁻¹ stretch shown below.

Highest-frequency vibration of AIQM3-optimized water, 3929.9 cm⁻¹
Highest-frequency vibration of AIQM3-optimized water, 3929.9 cm⁻¹

Rendered with xyzrender from the AIQM3 frequency calculation; displacements are exaggerated.

For a molecule beyond AIQM3’s seven elements, use a UAIQM model from the add-ons. This bromobenzene example uses uaiqm_gfn2xtbstar@dft version 20240730, whose documented element set is H, B, C, N, O, F, Si, P, S, Cl, As, Se, Br, and I:

import mlatom as ml

mol = ml.data.molecule.from_xyz_string('''12
bromobenzene
C      1.09740288     0.81299918     0.03830065
C     -0.15954957     1.41907450     0.06239413
C     -1.31346916     0.63530434     0.02526365
C     -1.21308192    -0.75515407    -0.03599643
C      0.04238448    -1.36429627    -0.06022763
C      1.19242214    -0.57675584    -0.02293469
Br     2.89420144    -1.39988009    -0.05565357
H      1.99152684     1.42968612     0.06748609
H     -0.23949857     2.50215440     0.11010683
H     -2.29214676     1.10867492     0.04409120
H     -2.11300074    -1.36428719    -0.06486290
H      0.11280893    -2.44751999    -0.10796731
''')

model = ml.methods(method='uaiqm_gfn2xtbstar@dft', version='20240730')
opt = ml.optimize_geometry(model=model, initial_molecule=mol).optimized_molecule
ml.freq(model=model, molecule=opt, program='pyscf')

The selected model is trained on DFT data, not coupled-cluster data: the example demonstrates the workflow for an element outside AIQM3’s coverage, not a benchmark of the model’s accuracy.

In a Jupyter notebook — again, not a plain Python script — visualize the optimized bromobenzene and animate its modes with the py3Dmol setup from the water example:

opt.view(normal_mode=2, slider=True)

Mode 2 is the C–Br stretch at 314 cm⁻¹; the slider reaches the other modes.

Calculated C–Br stretching mode of the optimized bromobenzene, 314 cm⁻¹
Calculated C–Br stretching mode of the optimized bromobenzene, 314 cm⁻¹

Calculated with uaiqm_gfn2xtbstar@dft, version 20240730, and rendered with xyzrender; all 30 modes are positive, so the optimized structure is a true minimum. Displacements are exaggerated for visibility.

Use online

Nothing has to be installed to try AIQM3. Aitomistic Lab@XMU (academic-email registration) and Aitomistic Hub (free registration) run MLatom behind Protomia, the group’s agentic system: you describe the calculation in the chat panel and Protomia writes the input, submits the job to the compute cluster, and reports back in the same window. Open a project, upload the .xyz, and ask:

Optimize this molecule (ethanol_init.xyz) with AIQM3 and calculate its frequencies.

Protomia returns the optimized geometry, the dipole moment and orbital energies, the full list of frequencies, and the files it wrote – the .xyz, the input and the log – and it draws the geometry and the normal-mode arrows in the chat with xyzrender. The same window has a built-in 3D viewer, so the optimized structure can be inspected and rotated without downloading anything.

Protomia chat with the AIQM3 ethanol frequencies beside the built-in 3D viewer
Protomia chat with the AIQM3 ethanol frequencies beside the built-in 3D viewer

Protomia 2.9.51 optimized ethanol with AIQM3 and computed its frequencies: 21 modes from 259 to 3826 cm⁻¹, with the dipole moment and the HOMO–LUMO gap. The two small pictures are the xyzrender geometry and normal-mode arrows it produced; the large window is the built-in viewer showing the optimized ethanol_opt_freq_AIQM3.xyz. The opt, freq and IR buttons under it start such calculations from the same window.

For scripted work, the Hub also gives you Jupyter Lab, so the Python examples above run unchanged. Protomia can render the vibration for you as well: ask for a normal-mode animation and it posts an xyzrender GIF in the chat.

See the release notes and runnable examples for the complete scripts.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.