Skip to content
Go back

Running Local Open-Weight Models on Shared HPC Clusters

Scientific computing teams increasingly want language and coding models close to their simulation data, job scripts, and analysis pipelines—without routing unpublished datasets or facility configurations through external commercial APIs.

Running local inference tools like Ollama on shared high-performance computing (HPC) systems such as NERSC Perlmutter introduces constraints that desktop setups never see:

# Stage weights on high-bandwidth scratch rather than $HOME
export OLLAMA_MODELS="$SCRATCH/ollama/models"
export OLLAMA_HOST="127.0.0.1:11434"

# Launch inference server inside the allocated GPU node
./bin/ollama serve &
SERVER_PID=$!slurm-ollama.sh

I keep a minimal, reproducible setup guide and helper scripts in ycaophysics/Ollama_on_HPC for researchers setting up private local inference on cluster allocations.


Share this post:

Next Post
Why Tacit Knowledge Is the Bottleneck in Scientific R&D