Skala Exchange Correlation Functional
Project description
Skala: Accurate and scalable exchange-correlation with deep learning
Skala is a neural network-based exchange-correlation functional for density functional theory (DFT), developed by Microsoft Research AI for Science. It leverages deep learning to predict exchange-correlation energies from electron density features, achieving chemical accuracy for atomization energies and strong performance on broad thermochemistry and kinetics benchmarks, all at a computational cost similar to semi-local DFT.
Trained on a large, diverse dataset—including coupled cluster atomization energies and public benchmarks—Skala uses scalable message passing and local layers to learn both local and non-local effects. The model has about 276,000 parameters and matches the accuracy of leading hybrid functionals.
Learn more about Skala in our ArXiv paper.
What's in here
This repository contains three main components:
- The Python package
microsoft-skala, which is also distributed on PyPI and contains a Pytorch implementation of the Skala model, its hookups to quantum chemistry packages PySCF and ASE, and an independent client library for the Skala model served in Azure AI Foundry. - A development version of the CPU/GPU C++ library for XC functionals GauXC with an add-on supporting Pytorch-based functionals like Skala. GauXC is part of the stack that serves Skala in Azure AI Foundry and can be used to integrate Skala into other third-party DFT codes.
- An example of using Skala in C++ CPU applications through LibTorch, see
examples/cpp/cpp_integration.
All information below relates to the Python package, the development version of GauXC including its license and other information can be found in third_party/gauxc.
Getting started
Install using Pip:
pip install torch --index-url https://download.pytorch.org/whl/cpu # unless you already have GPU Pytorch for something else
pip install microsoft-skala
Run an SCF calculation with Skala for a hydrogen molecule:
from pyscf import gto
from skala.pyscf import SkalaKS
mol = gto.M(
atom="""H 0 0 0; H 0 0 1.4""",
basis="def2-tzvp",
)
ks = SkalaKS(mol, xc="skala")
ks.kernel()
Go to microsoft.github.io/skala for a more detailed installation guide and further examples of how to use Skala functional with PySCF and ASE and in Azure Foundry.
Getting started (GPU support)
Install using Pip:
cu_version=128 #or 126 or 130 depending on your CUDA version
pip install torch cupy --extra-index-url "https://download.pytorch.org/whl/cu${cu_version}"
pip install --no-deps "gpu4pyscf-cuda${cu_version:0:2}x>=1.0,<2" "gpu4pyscf-libxc-cuda${cu_version:0:2}x>=0.4,<1"
pip install microsoft-skala
Run an SCF calculation with Skala for a hydrogen molecule on GPU:
from pyscf import gto
from skala.gpu4pyscf import SkalaKS
mol = gto.M(
atom="""H 0 0 0; H 0 0 1.4""",
basis="def2-tzvp",
)
ks = SkalaKS(mol, xc="skala")
ks.kernel()
Project information
See the following files for more information about contributing, reporting issues, and the code of conduct:
Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file skala-1.1.1.tar.gz.
File metadata
- Download URL: skala-1.1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf562c1794a38ede999e29b0b897f9cac8b905767d460204e960206374b1a22b
|
|
| MD5 |
d2e182317f71b7a1446a265ebbfa8add
|
|
| BLAKE2b-256 |
85930202aee90bf165540d5cc690c9ed79254221a36e0492b9fb8ff14f029002
|
File details
Details for the file skala-1.1.1-py3-none-any.whl.
File metadata
- Download URL: skala-1.1.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0a33a1226373a8bf5420589c2efdf27172687097be9efeddb932e6213eb345a
|
|
| MD5 |
895a73de88247eda58d058a5724c702f
|
|
| BLAKE2b-256 |
94ac34972cf4a7bae4bdd8bc8bddd4f206044b402f7986c26ed361f4e5e156dd
|