Skip to main content
QUICK REVIEW

[논문 리뷰] DeepSpeed-FastGen: High-throughput Text Generation for LLMs via MII and DeepSpeed-Inference

Connor Holmes, Masahiro Tanaka|arXiv (Cornell University)|2024. 01. 09.
Topic ModelingComputer Science인용 수 5
한 줄 요약

DeepSpeed-FastGen은 Dynamic SplitFuse를 DeepSpeed-MII 및 DeepSpeed-Inference와 함께 사용하여 LLM 텍스트 생성의 처리량을 높이고 지연을 줄이며, 여러 Llama-2 모델에서 vLLM보다 우수한 성능을 발휘합니다.

ABSTRACT

The deployment and scaling of large language models (LLMs) have become critical as they permeate various applications, demanding high-throughput and low-latency serving systems. Existing frameworks struggle to balance these requirements, especially for workloads with long prompts. This paper introduces DeepSpeed-FastGen, a system that employs Dynamic SplitFuse, a novel prompt and generation composition strategy, to deliver up to 2.3x higher effective throughput, 2x lower latency on average, and up to 3.7x lower (token-level) tail latency, compared to state-of-the-art systems like vLLM. We leverage a synergistic combination of DeepSpeed-MII and DeepSpeed-Inference to provide an efficient and easy-to-use serving system for LLMs. DeepSpeed-FastGen's advanced implementation supports a range of models and offers both non-persistent and persistent deployment options, catering to diverse user scenarios from interactive sessions to long-running applications. We present a detailed benchmarking methodology, analyze the performance through latency-throughput curves, and investigate scalability via load balancing. Our evaluations demonstrate substantial improvements in throughput and latency across various models and hardware configurations. We discuss our roadmap for future enhancements, including broader model support and new hardware backends. The DeepSpeed-FastGen code is readily available for community engagement and contribution.

연구 동기 및 목표

  • 긴 프롬프트와 대화형 작업을 위한 고처리량, 저지연 LLM 서비스의 필요성을 제시한다.
  • 연속 배치를 향상시키는 프롬프트 생성 구성 전략으로 Dynamic SplitFuse를 소개한다.
  • 사용하기 쉬운 서비스 시스템을 제공하기 위해 DeepSpeed-MII와 DeepSpeed-Inference의 통합을 선보인다.
  • 다양한 모델과 하드웨어에서 성능 벤치마킹을 수행하여 처리량, 지연, 꼬리 지연 개선을 정량화한다.
  • 비영속성과 영속 배포 옵션 및 더 넓은 모델 지원과 하드웨어 백엔드를 위한 로드맵을 논의한다.

제안 방법

  • 긴 프롬프트를 여러 순방 패스에 걸쳐 예약된 작은 덩어리로 분해하기 위해 Dynamic SplitFuse를 제안한다.
  • 점진적 배치와 비연속 KV 캐시를 활용하여 점유율을 높이고 단편화를 줄인다.
  • 동시성 및 처리량을 높이기 위해 차단된 KV 캐시를 활용한다.
  • 프런트엔드 API, 배치 스케줄러, 최적화 커널을 제공하기 위해 DeepSpeed-MII와 DeepSpeed-Inference를 결합한다.
  • 확장성을 위한 선택적 부하 분산이 있는 비영속 배포 모드와 영속 배포 모드를 모두 구현한다.
  • 다수의 모델과 GPU에 걸친 SLA 제약 하에서 처리량-지연 곡선과 유효 처리량으로 평가한다.
Figure 1: Token latency (ms) is predominantly determined by the number of forward tokens rather than the batch sizes.
Figure 1: Token latency (ms) is predominantly determined by the number of forward tokens rather than the batch sizes.

실험 결과

연구 질문

  • RQ1Dynamic SplitFuse가 vLLM과 같은 최신 시스템과 비교해 긴 프롬프트 LLM 작업의 처리량과 지연을 개선할 수 있는가?
  • RQ2전진 토큰 수가 배치 크기 변동에 비례하여 지연 및 처리량에 어떤 영향을 미치는가?
  • RQ3부하 분산 및 다중 복제 배포가 전체 확장성과 SLA 충족에 미치는 영향은 무엇인가?
  • RQ4비영속 vs 영속 배포 모드가 인터랙티브한 시나리오와 장시간 실행 시나리오에서 사용성 및 성능에 어떤 영향을 미치는가?
  • RQ5DeepSpeed-FastGen에서 관찰되는 꼬리 지연 개선(P90/P95) 및 전반적인 지연 안정성은 무엇인가?

주요 결과

  • DeepSpeed-FastGen은 vLLM에 비해 최대 2.3배의 유효 처리량을 달성한다.
  • 평균적으로 약 2배의 지연 감소와 토큰 수준 꼬리 지연 최대 3.7배 감소를 제공합니다.
  • 꼬리 지연 개선은 선점이 아닌 동시 프롬프트 처리 및 생성에 기인한다.
  • 최대 16개의 복제에 걸친 부하 분산은 거의 선형 확장성을 보이며(16개의 복제에서 16배 처리량).
  • A100, H100, A6000 하드웨어에서 Llama-2 70B, 13B, 7B에서 성능 향상을 관찰했다.
Figure 2: The system reaches peak performance (throughput saturation region) as the number of tokens in the forward pass increase. Beyond that, near-constant throughput is observed.
Figure 2: The system reaches peak performance (throughput saturation region) as the number of tokens in the forward pass increase. Beyond that, near-constant throughput is observed.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.