r/comp_chem • u/No-Transportation843 • 6h ago
Quachem Workbench: run PySCF and GPU4PySCF on your GPU or a Slurm cluster without writing job scripts (free, open source, agent-friendly)
Running DFT on a university cluster usually means writing a Slurm script, copying files over, watching squeue, copying results back, and then remembering which output came from which settings. Quachem Workbench is a free, open-source (Apache 2.0) app that does that part for you. You draw or paste a molecule, pick a method, and choose where the job runs: your own machine (GPU4PySCF on an NVIDIA GPU, or PySCF on the CPU), a workstation over SSH, or a Slurm cluster.
On a cluster, the app writes the batch script, submits it, shows password, Duo and device-code login prompts in its own window, and checks the queue for you. The job keeps running if you close your laptop, and when you reconnect, the app reads the job's state and copies the results back.
Your research is saved on your own computer as a folder of readable files for each project: inputs, results, raw engine output, and a provenance record of where every setting came from. Each finished job also gets a methods paragraph with program versions, method, basis, grid, thresholds and references that you can paste into a paper. The app sends nothing to a cloud service, and the only lookup that leaves your machine is the optional PubChem name search.
It is also built for AI agents and scripts. The qcw command line prints JSON with published schemas, and qcw guide prints a guide written for agents. An agent can submit jobs and schedule batches overnight, and its jobs are labelled as the agent's work. If a job goes over the approval limits you set, it waits until you approve it in the browser, because the command line cannot approve jobs.
Also in 0.1.0:
- Molecule input from SMILES, XYZ/MOL/SDF/PDB files, a PubChem name or a 2D sketcher, with RDKit building the 3D structure locally
- r2SCAN-3c (the default), B3LYP-D3(BJ), PBE0-D3(BJ), ωB97X-3c, ωB97X-V and Hartree-Fock
- Optimisation-then-frequencies jobs that mark a saddle point as NOT A MINIMUM
- An IR tab that overlays your measured peaks or a JCAMP-DX file on the predicted spectrum
- Job sets that compare isomer energies relative to the lowest-energy structure
Recorded timings for an optimisation plus frequencies, with the evidence linked from the site: ethanol with B3LYP-D3(BJ)/def2-SVP takes 46 s on an RTX 3070 under WSL2 and 35 s on an A100 (medians of three runs), and water with r2SCAN-3c takes 3 min 22 s on the CPU.
While building the GPU engine we found that the GPU build of Libxc 7.1.2 keeps functional data in CUDA managed memory, so GPU DFT crashes or runs at about half speed on GPUs without concurrent managed access, which includes GPUs under WSL2. The engine ships a patch, and the cause and fix are reported to Libxc and GPU4PySCF.
Current limits: you install it from source (Git, Python 3.12, uv, Node 24 and Docker), and the first engine build takes about half an hour. The install steps are verified by hand on Windows 11 with WSL2, while Linux and macOS have only been through CI. It is designed for molecules of up to a few dozen atoms. No accuracy figures are published yet, because the validation suite (GMTKN55 subsets, NIST frequencies, CCCBDB geometries and dipoles) hasn't finished its first full run, and the defaults are marked provisional until a chemist reviews them.
The project was built with a lot of help from Claude, and so was this post. It claims a result only where a recorded run backs it, and those records are in the repo.
What I'd most like to hear:
- If you use a Slurm cluster, what would stop the app working on yours?
- Is r2SCAN-3c a sensible default for small organic molecules? The defaults are listed at https://quachem.org/docs/chemistry-review/
- Did the install work on your machine?
Site and screenshots: https://quachem.org Source: https://github.com/quachem/quachem-workbench