Skip to main content
QUICK REVIEW

[논문 리뷰] Inference without Interference: Disaggregate LLM Inference for Mixed Downstream Workloads

Cunchen Hu, Heyang Huang|arXiv (Cornell University)|2024. 01. 20.
Ferroelectric and Negative Capacitance DevicesEngineering인용 수 5
한 줄 요약

TetriInfer는 prefill 및 decode 단계를 분리하고 청크 분할, 2단계 스케줄링, 길이 예측을 사용하여 혼합 LLM 추론 워크로드에서 간섭을 줄이고 TTFT, JCT, 효율성에서 큰 이점을 달성하며 극한 워크로드의 한계도 강조합니다.

ABSTRACT

Transformer-based large language model (LLM) inference serving is now the backbone of many cloud services. LLM inference consists of a prefill phase and a decode phase. However, existing LLM deployment practices often overlook the distinct characteristics of these phases, leading to significant interference. To mitigate interference, our insight is to carefully schedule and group inference requests based on their characteristics. We realize this idea in TetriInfer through three pillars. First, it partitions prompts into fixed-size chunks so that the accelerator always runs close to its computationsaturated limit. Second, it disaggregates prefill and decode instances so each can run independently. Finally, it uses a smart two-level scheduling algorithm augmented with predicted resource usage to avoid decode scheduling hotspots. Results show that TetriInfer improves time-to-first-token (TTFT), job completion time (JCT), and inference efficiency in turns of performance per dollar by a large margin, e.g., it uses 38% less resources all the while lowering average TTFT and average JCT by 97% and 47%, respectively.

연구 동기 및 목표

  • (prefill 및 decode 단계 전반에 걸친 혼합 LLM 추론 요청의 간섭을 동기화하고 정량화한다.
  • 단계 분리 및 워크로드 인식 스케일 아웃으로 간섭을 최소화하는 클라우드 규모 추론 서비스 시스템을 개발한다.
  • 일반 워크로드에서 바닐라 vLLM보다 우수한 실용적 구현(TetriInfer)을 입증하고 한계를 분석한다.

제안 방법

  • 프롬프트를 고정 크기 청크로 분할하여 prefill 동안 가속기의 계산 포화를 유지한다.
  • prefill 및 decode 단계를 서로 독립적인 인스턴스에서 실행하고 두 인스턴스 간 KV 캐시 전송으로 분리한다.
  • 길이 예측을 활용한 2단계 스케줄링 시스템을 구현하여 decode 워크로드를 조정하고 핫스팟을 회피한다.
  • 생성 토큰 개수를 추정하기 위해 작은 LLM 기반 길이 예측기를 사용하고 decode 스케줄링을 안내한다.
  • 예상 자원 사용량에 따라 decode 인스턴스를 균형 있게 분배하기 위해 청크드 prefill 및 디스패처를 채택한다.
  • 메모리 thrashing을 줄이기 위해 working-set 인식 decode 스케줄링 정책으로 vLLM을 확장한다.
Figure 1: Length Distribution. Prompt Tokens for Prefill and Generated Tokens during Decode. Data sources: conversation [ 35 ] , summarization [ 17 ] , writing [ 18 ] .
Figure 1: Length Distribution. Prompt Tokens for Prefill and Generated Tokens during Decode. Data sources: conversation [ 35 ] , summarization [ 17 ] , writing [ 18 ] .

실험 결과

연구 질문

  • RQ1현재 배포 관행 하에서 함께 실행될 때 혼합 LLM prefill 및 decode 요청은 어떻게 성능이 달라지는가?
  • RQ2클라우드 규모 배포에서 prefill 간섭 및 decode 간섭을 최소화하고 decode 요청 간 간섭도 줄일 수 있는 분산 LLM 추론 서비스 시스템은 어떻게 설계될 수 있는가?

주요 결과

  • TetriInfer는 바닐라 vLLM에 비해 혼합 워크로드에서 간섭을 크게 줄이고 효율성을 향상시킨다.
  • 가벼운 prefill과 무거운 decode 워크로드의 경우 TetriInfer는 perf/$를 2.4배 향상시킨다.
  • 일반적인 혼합 워크로드의 경우 TetriInfer는 평균 TTFT를 85% 향상시키고 평균 JCT를 50% 향상시킨다.
  • 무거운 prefill 및 무거운 decode 워크로드의 경우 이득이 미미하고 오버헤드가 상쇄되지 않아 이상적이지 않다.
Figure 2: Prefill and Decode’s Characteristics. Decode’s GPU utilization fluctuates because the task is faster than our monitoring granularity.
Figure 2: Prefill and Decode’s Characteristics. Decode’s GPU utilization fluctuates because the task is faster than our monitoring granularity.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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