Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 117 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,59 @@ permissions:
contents: read

jobs:
skala-checkpoint:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v6
with:
version: "3.x"

- name: Install huggingface_hub CLI
run: pip install huggingface_hub

- name: Download checkpoint
run: >-
hf download microsoft/skala skala-1.0.fun --local-dir .

- name: Upload checkpoint
uses: actions/upload-artifact@v4
with:
name: skala-checkpoint
path: skala-1.0.fun

pt-features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment-cpu.yml
environment-name: skala-dev
cache-environment: true
cache-downloads: true

- name: Install Skala
run: pip install -e .
shell: micromamba-shell {0}

- name: Generate features
run: >-
python examples/cpp/cpp_integration/prepare_inputs.py
--output-dir features
shell: micromamba-shell {0}

- name: Upload features
uses: actions/upload-artifact@v4
with:
name: pt-features
path: features

gauxc:
needs:
- skala-checkpoint
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -91,3 +143,68 @@ jobs:
./gauxc/tests/ref_data/onedft_he_def2qzvp_tpss_uks.hdf5
--model TPSS
shell: micromamba-shell {0}

- name: Download checkpoint
uses: actions/download-artifact@v5
with:
name: skala-checkpoint

- name: Run example
run: >-
Skala
./gauxc/tests/ref_data/onedft_he_def2qzvp_tpss_uks.hdf5
--model ./skala-1.0.fun
shell: micromamba-shell {0}

ftorch:
runs-on: ubuntu-latest
needs:
- pt-features
- skala-checkpoint

steps:
- uses: actions/checkout@v4

- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: examples/fortran/ftorch_integration/environment.yml
environment-name: ftorch-dev
cache-environment: true
cache-downloads: true

- name: Configure project
run: >-
cmake
-B build_example
-S examples/fortran/ftorch_integration
-G Ninja
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
shell: micromamba-shell {0}

- name: Build project
run: cmake --build build_example
shell: micromamba-shell {0}

- name: Install project
run: cmake --install build_example
shell: micromamba-shell {0}

- name: Download features
uses: actions/download-artifact@v5
with:
name: pt-features
path: features

- name: Download checkpoint
uses: actions/download-artifact@v5
with:
name: skala-checkpoint
path: .

- name: Run example
run: >-
Skala
./skala-1.0.fun
./features
shell: micromamba-shell {0}
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ Learn more about Skala in our [ArXiv paper](https://arxiv.org/abs/2506.14665).
This repository contains two main components:

1. The Python package `skala`, which is also distributed [on PyPI](https://pypi.org/project/skala/) and contains a PyTorch implementation of the Skala model, its hookups to quantum chemistry packages [PySCF](https://pyscf.org/), [GPU4PySCF](https://pyscf.org/user/gpu.html) and [ASE](https://ase-lib.org/).
2. An example of using Skala in C++ CPU applications through LibTorch, see [`examples/cpp/cpp_integration`](examples/cpp/cpp_integration).
2. Example of using Skala applications through LibTorch and GauXC, the following examples are available
- [Skala in C++ with libtorch](examples/cpp/cpp_integration)
- [Skala in Fortran with FTorch](https://microsoft.github.io/skala/ftorch)
- [Skala in C++ with GauXC](https://microsoft.github.io/skala/gauxc/cpp-library)
- [Skala in C with GauXC](https://microsoft.github.io/skala/gauxc/c-library)
- [Skala in Fortran with GauXC](https://microsoft.github.io/skala/gauxc/fortran-library)


### Skala in Azure AI Foundry
Expand Down
Loading
Loading