Troubleshooting

Everything below has actually happened to somebody.

Installing

ERROR: Could not find a version that satisfies the requirement aimnet

Almost always Python 3.10 or older. AIMNet2 requires 3.11 or later, and pip reports that as "no matching distribution" rather than saying so. Check with:

python -c "import sys; print(sys.version)"

If that prints 3.10 or lower, make a new environment with a newer interpreter. On macOS brew install python@3.12; on Windows install 3.12 from python.org and use py -3.12 -m venv .venv; on Linux use your distribution's python3.12 package or pyenv.

The same error on an Intel Mac

It will not install, and the problem is not fixable locally. AIMNet2 needs PyTorch 2.8 or later and PyTorch stopped publishing Intel-Mac builds after 2.2. Use Colab.

pip install downloads gigabytes and then fails on disk space

On Linux x86-64 PyTorch is about 3 GB installed, more during the install while the wheel is still cached (the Windows and macOS wheels are far smaller). Free up 6 GB, or point pip's cache elsewhere with PIP_CACHE_DIR, or install with --no-cache-dir.

PowerShell: running scripts is disabled on this system

Windows blocks local scripts, including the one that activates a virtual environment. Allow them for your own account:

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

Then activate again. This does not require an administrator and does not allow scripts downloaded from the internet.

Warp CUDA warning: Could not find or load the NVIDIA CUDA driver

Harmless. One of AIMNet2's dependencies looks for a GPU at import time and says so when it does not find one. Everything runs on the CPU. You will see this on every Mac and on any machine without an NVIDIA card.

Could not find or load the NVIDIA CUDA driver on a machine that has an NVIDIA card

warp-lang 1.18 and later need NVIDIA driver 580 or newer. The setup cell and requirements.txt pin warp-lang<1.18, so this should not happen from the notebooks. If you installed by hand, either update the driver or pip install "warp-lang<1.18".

Windows: InductorError: InvalidCxxCompiler: Compiler: cl is not found

Any torch._inductor or torch._dynamo error on Windows has the same cause: torch.compile needs a C++ compiler, and Windows has none. The setup cell sets TORCHDYNAMO_DISABLE=1 on Windows before torch is imported. If torch was imported earlier some other way, restart the kernel and run the setup cell first.

Running

The first cell sits there doing nothing

Expected, for about a minute. It is installing packages and downloading roughly 36 MB of model parameters, and neither step prints progress. If it is still going after five minutes the network is the problem; see warming the cache.

RuntimeError or KeyError mentioning an element

The molecule contains an element the model was not trained on. The fourteen supported elements are H, B, C, N, O, F, Si, P, S, Cl, As, Se, Br and I. There are no metals except palladium, in aimnet2-pd only.

ValueError about charge or multiplicity

You asked a closed-shell model for an open-shell system. Ions and radicals need aimnet2-nse; aimnet2-rxn refuses any net charge at all. A cation or anion of a closed-shell molecule is a doublet, so mult = 2.

An optimisation runs forever, or hits the step limit

Check that you have not tightened fmax. AIMNet2 is a float32 model and 0.02 eV/Å is the right convergence threshold; the 1e-4 you would use with a DFT code is below the numerical noise floor and will never be reached.

Tightening costs a great deal and buys nothing you are going to use. Ibuprofen reaches 0.02 eV/Å in 26 L-BFGS steps and 0.01 in 154, six times the work. The relative energies that conformational analysis depends on do not move: butane's anti–gauche gap is 0.33 kcal/mol at fmax = 0.02 and 0.31 at 0.005, and its Boltzmann population changes by half a percentage point. For ethylene glycol the first three gaps agree to better than 0.01 kcal/mol.

The 3D viewer is an empty box, or shows nothing at all

The viewer is 3Dmol.js, fetched from the web when the cell runs, so it needs a network connection even in a local install; a content blocker that stops scripts from cdn.jsdelivr.net has the same effect. In JupyterLab a notebook reopened from disk is untrusted, and untrusted JavaScript output is not rendered: run the cell again. Nothing in the tutorial depends on the viewer; every result is also printed as text.

My conformer count differs from the answer key

Expected for the flexible systems. Conformer generation is stochastic, so the exact number varies between runs and between machines. The energy ordering and the size of the gaps are the reproducible quantities, and are what the exercise asks for.

The dynamics notebook gives a different temperature each time

Also expected, and it is one of the points of that notebook. A few hundred femtoseconds of a fifteen-atom molecule does not determine a mean temperature to better than tens of kelvin. Read the spread, not the mean.

An exercise cell raises AssertionError: Please write a complete answer

That is the blank you are meant to fill in. Replace the empty string with your answer in complete sentences and run the cell again.

I get an imaginary frequency at a structure that should be a minimum

The geometry is not converged. Re-run the optimisation, and if it still happens, loosen nothing: a genuine imaginary mode at a supposed minimum means the optimiser stopped on a saddle point, so nudge the structure and optimise again.

Colab

Everything is slow

You are probably on a CPU runtime. Runtime → Change runtime type → T4 GPU, then Runtime → Restart session and run from the top. Check which you have with:

import torch; print(torch.cuda.is_available())

My session disconnected and I lost everything

Colab reclaims idle runtimes. Re-run from the first cell; nothing is carried between notebooks anyway, so you only lose the notebook you were in. Save your own copy with File → Save a copy in Drive if you want to keep your answers.

"You cannot currently connect to a GPU backend"

The free tier has quotas. Either wait, or use a CPU runtime and accept that the exercises take five to twenty times longer. The notebooks detect the absence of a GPU and shrink the dynamics runs automatically.

Still stuck

Open an issue at isayevlab/ml4mol2026-aimnet2, including the output of:

python -c "
import sys, platform, torch, aimnet
print(sys.version)
print(platform.platform(), platform.machine())
print('torch', torch.__version__, 'cuda', torch.cuda.is_available())
import importlib.metadata as m; print('aimnet', m.version('aimnet'))
"