[논문 리뷰] Chat AI: A Seamless Slurm-Native Solution for HPC-Based Services
이 논문은 Slurm-네이티브 웹 서비스 아키텍처를 통해 SSH로 제한된 HPC 프록시, API 게이트웨이 및 스케줄러와 тес밀히 통합함으로써 HPC 클러스터에서 개인적 실시간 LLM 추론을 가능하게 한다.
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}
연구 동기 및 목표
- 데이터 프라이버시를 보존하고 제3자 서비스의 의존을 피하기 위해 대형 언어 모델의 온프레미스 개인 hosting을 motivate한다.
- 실시간 LLM 추론을 배치 작업과 함께 실행하는 Slurm-통합 서비스 아키텍처를 설계한다.
- 다층적 방어 및 엔터프라이즈급 접근 제어를 통한 보안 및 데이터 프라이버시를 보장한다.
제안 방법
- 웹 서비스를 클라우드 VM에 배치하고 Slurm를 통해 LLM을 호스트하기 위한 확장 가능한 HPC 백엔드를 통합한다.
- 인증 및 라우팅을 위해 API 게이트웨이(Kong)와 SSO(OAuth2/OpenID)를 활용한다.
- SSH ForceCommand를 사용하는 HPC 프록시를 구현하여 HPC 로그인 노드에 안전하게 연결한다.
- 수요에 맞춰 서비스 인스턴스를 유지하기 위해 Slurm(squeue)을 조회하고 작업(sbatch)을 제출하는 스케줄러를 개발한다.
- OpenAI 호환 API를 사용한 LLM 추론을 효율적으로 GPU 가속하는 vLLM을 사용하여 실행한다.
- 필요시 External Proxy를 통해 외부 모델을 노출하고 Grafana/Prometheus로 모니터링한다.

실험 결과
연구 질문
- RQ1Slurm 기반 HPC 리소스를 어떻게 재목적으로 사용하여 전통적 배치 작업과 함께 실시간 LLM 추론을 제공할 수 있는가?
- RQ2웹에 노출된 서비스가 HPC 클러스터를 손상시키지 않도록 어떤 보안 대책이 필요한가?
- RQ3Slurm-네이티브 LLM 제공 아키텍처의 성능(지연/처리량)과 확장성은 어떠한가?
- RQ4제안된 아키텍처가 GDPR 유사 체제 하의 프라이버시 및 데이터 보호에 어떤 영향을 미치는가?
- RQ5학계/연구 환경에서의 배포 및 사용자 채택에 대한 실무적 고려사항은 무엇인가?
주요 결과
- 이 아키텍처는 기존 HPC 인프라에서 개인 LLM 서비스를 생산적으로 배포하는 것을 달성한다.
- SSH ForceCommand와 다층적 방어 체계를 통해 보안이 강화되어 클러스터 손상 위험이 감소한다.
- 지연 및 처리량의 측정치(세부 내용은 발췌에 제공되지 않음)가 제시되며 실시간 요청에 대응할 수 있음을 보여준다.
- 스케줄러가 Slurm을 모니터링하고 요청량에 따라 동적으로 확장하여 서비스 인스턴스를 유지한다.
- 개인 정보 보호 측면의 고려사항 및 프라이버시의 영향이 논의되며 GDPR 정렬 및 개인 추론 이점을 강조한다.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.