[Paper Review] Chat AI: A Seamless Slurm-Native Solution for HPC-Based Services
The paper presents a Slurm-native web service architecture that enables private, real-time LLM inference on HPC clusters by tightly integrating a web interface with SSH-restricted HPC proxies, an API gateway, and a scheduler to run LLMs alongside regular Slurm workloads.
The widespread adoption of large language models (LLMs) has created a pressing need for an efficient, secure and private serving infrastructure, which allows researchers to run open source or custom fine-tuned LLMs and ensures users that their data remains private and is not stored without their consent. While high-performance computing (HPC) systems equipped with state-of-the-art GPUs are well-suited for training LLMs, their batch scheduling paradigm is not designed to support real-time serving of AI applications. Cloud systems, on the other hand, are well suited for web services but commonly lack access to the computational power of HPC clusters, especially expensive and scarce high-end GPUs, which are required for optimal inference speed. We propose an architecture with an implementation consisting of a web service that runs on a cloud VM with secure access to a scalable backend running a multitude of LLM models on HPC systems. By offering a web service using our HPC infrastructure to host LLMs, we leverage the trusted environment of local universities and research centers to offer a private and secure alternative to commercial LLM services. Our solution natively integrates with the HPC batch scheduler Slurm, enabling seamless deployment on HPC clusters, and is able to run side by side with regular Slurm workloads, while utilizing gaps in the schedule created by Slurm. In order to ensure the security of the HPC system, we use the SSH ForceCommand directive to construct a robust circuit breaker, which prevents successful attacks on the web-facing server from affecting the cluster. We have successfully deployed our system as a production service, and made the source code available at \url{https://github.com/gwdg/chat-ai}
Motivation & Objective
- Motivate private, on-premise hosting of large language models to preserve data privacy and avoid third-party services.
- Design a seamless, Slurm-integrated service architecture that runs real-time LLM inference alongside batch workloads.
- Ensure security and data privacy through defense-in-depth mechanisms and enterprise-grade access controls.
Proposed method
- Integrate a web service on a cloud VM with a scalable HPC backend to host LLMs via Slurm.
- Utilize an API gateway (Kong) and SSO (OAuth2/OpenID) for authentication and routing.
- Implement an HPC Proxy with SSH ForceCommand to securely connect to the HPC login node.
- Develop a scheduler that maintains service instances by querying Slurm (squeue) and submitting jobs (sbatch) to match demand.
- Run LLMs using vLLM for efficient GPU-accelerated inference with an OpenAI-compatible API.
- Optionally expose external models through an External Proxy and monitor via Grafana/Prometheus.

Experimental results
Research questions
- RQ1How can Slurm-based HPC resources be repurposed to serve real-time LLM inference alongside traditional batch workloads?
- RQ2What security measures are necessary to prevent web-facing services from compromising HPC clusters?
- RQ3What is the performance (latency/throughput) and scalability of a Slurm-native LLM serving architecture?
- RQ4How does the proposed architecture impact privacy and data protection under GDPR-like regimes?
- RQ5What are the practical considerations for deployment and user adoption in academic/research environments?
Key findings
- The architecture achieves production deployment of a private LLM service hosted on existing HPC infrastructure.
- Security is reinforced through SSH ForceCommand and multi-layered defense-in-depth, reducing risk of cluster compromise.
- Performance evaluation indicates measures of latency and throughput (details not provided in excerpt) and demonstrates capability to serve real-time requests.
- The scheduler maintains service instances by monitoring Slurm and dynamically scaling based on request volume.
- User adoption considerations and privacy implications are discussed, highlighting GDPR alignment and private inference benefits.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.