Skip to content

Support device-specific SKALA OneDFT model lookup#206

Draft
DCM-Uni-Paderborn wants to merge 1 commit into
wavefunction91:skalafrom
DCM-Uni-Paderborn:skala-onedft-cuda-models
Draft

Support device-specific SKALA OneDFT model lookup#206
DCM-Uni-Paderborn wants to merge 1 commit into
wavefunction91:skalafrom
DCM-Uni-Paderborn:skala-onedft-cuda-models

Conversation

@DCM-Uni-Paderborn
Copy link
Copy Markdown

This draft PR makes the OneDFT model lookup handle SKALA as an installed model rather than requiring users to pass an explicit local checkpoint path.

For MODEL SKALA, GauXC now searches the configured source and install model directories. On CUDA it first prefers skala-1.1-cuda.fun when available, and otherwise falls back to skala-1.1.fun. Named models are also checked in the install model directory.

Motivation:
The current SKALA-1.1 TorchScript checkpoint can be loaded on CUDA, but its graph contains fixed CPU index tensors in the ragged-grid packing path. When the OneDFT feature tensors are on CUDA this causes a device mismatch. A CUDA-consistent SKALA checkpoint fixes the issue locally, and this patch provides the GauXC-side model selection needed to use such a checkpoint cleanly.

Tested with CP2K + GauXC on an NVIDIA GB10 system using CUDA 13.0 and PyTorch 2.12.0+cu130:

  • GauXC PBE, device: -2.176913831885182 Ha
  • OneDFT PBE, device: -1.163121899608446 Ha
  • SKALA-1.1, device: -1.170732895358496 Ha
  • SKALA-1.1, host: -1.170732899047063 Ha

The CUDA SKALA smoke used a GPU-consistent checkpoint derived from the local SKALA-1.1 checkpoint by replacing fixed TorchScript CPU index tensors with CUDA index tensors. This PR does not add that checkpoint. For upstream, the cleaner long-term solution is to export the SKALA checkpoint with device-aware tensor creation in the model code itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant