Efficient Function-as-a-Service for Large Language Models with TIDAL

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Cui, Weihao, Xu, Ziyi, Zhao, Han, Chen, Quan, Li, Zijun, He, Bingsheng, Guo, Minyi
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917948602449920
author Cui, Weihao
Xu, Ziyi
Zhao, Han
Chen, Quan
Li, Zijun
He, Bingsheng
Guo, Minyi
author_facet Cui, Weihao
Xu, Ziyi
Zhao, Han
Chen, Quan
Li, Zijun
He, Bingsheng
Guo, Minyi
contents Large Language Model (LLM) applications have emerged as a prominent use case for Function-as-a-Service (FaaS) due to their high computational demands and sporadic invocation patterns. However, serving LLM functions within FaaS frameworks faces significant GPU-side cold start. A fundamental approach involves leveraging a template with function state saved on GPUs to bypass the cold start for new invocations. Yet, this approach struggles with the high GPU footprint, dynamic initialization behaviors, and lazy GPU kernel loading inherent in LLM functions, primarily due to a lack of insight into the underlying execution details. In this paper, we introduce TIDAL, an optimized FaaS framework for LLM applications that achieves fast startups by tracing fine-grained execution paths. By utilizing the traced execution details, TIDAL generates adaptive function templates, effectively breaking startup barriers for LLM functions. Extensive evaluations demonstrate that TIDAL reduces cold start latency by $1.79\times\text{\textasciitilde}2.11\times$ and improves the $95\%$-ile time-to-first-token by $76.0\%$, surpassing state-of-the-art methods.
format Preprint
id arxiv_https___arxiv_org_abs_2503_06421
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Efficient Function-as-a-Service for Large Language Models with TIDAL
Cui, Weihao
Xu, Ziyi
Zhao, Han
Chen, Quan
Li, Zijun
He, Bingsheng
Guo, Minyi
Operating Systems
Large Language Model (LLM) applications have emerged as a prominent use case for Function-as-a-Service (FaaS) due to their high computational demands and sporadic invocation patterns. However, serving LLM functions within FaaS frameworks faces significant GPU-side cold start. A fundamental approach involves leveraging a template with function state saved on GPUs to bypass the cold start for new invocations. Yet, this approach struggles with the high GPU footprint, dynamic initialization behaviors, and lazy GPU kernel loading inherent in LLM functions, primarily due to a lack of insight into the underlying execution details. In this paper, we introduce TIDAL, an optimized FaaS framework for LLM applications that achieves fast startups by tracing fine-grained execution paths. By utilizing the traced execution details, TIDAL generates adaptive function templates, effectively breaking startup barriers for LLM functions. Extensive evaluations demonstrate that TIDAL reduces cold start latency by $1.79\times\text{\textasciitilde}2.11\times$ and improves the $95\%$-ile time-to-first-token by $76.0\%$, surpassing state-of-the-art methods.
title Efficient Function-as-a-Service for Large Language Models with TIDAL
topic Operating Systems
url https://arxiv.org/abs/2503.06421