APIServe: Efficient API Support for Large-Language Model Inferencing

AI-generated keywords: Large Language Models API Integration APIServe Efficiency Inferencing

AI-generated Key Points

  • The paper introduces APIServe, a novel LLM inference framework designed for API-augmented LLMs
  • APIServe minimizes GPU resource wastage caused by API calls and efficiently allocates saved memory
  • Dynamic estimation method proposed for calculating API execution time is highlighted, achieving 93% performance compared to using an oracle
  • Evaluation results show that APIServe significantly improves serving throughput and completes more requests per second compared to existing frameworks
  • APIServe is implemented on top of vLLM utilizing PagedAttention technique and evaluated against various methods on NVIDIA A100 GPUs in AWS instances and Vicuna models on single and distributed GPU environments
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Reyna Abhyankar, Zijian He, Vikranth Srivatsa, Hao Zhang, Yiying Zhang

License: CC BY 4.0

Abstract: Large language models are increasingly integrated with external tools and APIs like ChatGPT plugins to extend their capability beyond language-centric tasks. However, today's LLM inference systems are designed for standalone LLMs. They treat API calls as new requests, causing unnecessary recomputation of already computed contexts, which accounts for 37-40% of total model forwarding time. This paper presents APIServe, the first LLM inference framework targeting API-augmented LLMs. APISERVE minimizes the GPU resource waste caused by API calls and dedicates saved memory for serving more requests. APISERVE improves the overall serving throughput by 1.6x and completes 2x more requests per second compared to the state-of-the-art LLM inference systems.

Submitted to arXiv on 02 Feb. 2024

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2402.01869v1

The paper "APIServe: Efficient API Support for Large-Language Model Inferencing" addresses the integration of large language models (LLMs) with external tools and APIs to enhance their functionality beyond language-centric tasks. The current LLM inference systems are optimized for standalone use but often treat API calls as new requests, resulting in redundant computations and wasted time. To address this issue, the authors introduce APIServe, a novel LLM inference framework designed specifically for API-augmented LLMs. By minimizing GPU resource wastage caused by API calls and efficiently allocating saved memory, APIServe significantly improves overall serving throughput and completes more requests per second compared to existing frameworks. One key aspect highlighted in the paper is the dynamic estimation method proposed for calculating API execution time. This approach is particularly useful for API types with varying execution times or those not profiled offline. By dynamically adjusting the estimated API time based on request pause duration, APIServe achieves 93% performance compared to using an oracle for precise execution time prediction. In terms of evaluation results, APIServe is implemented on top of vLLM utilizing PagedAttention technique and compared against vanilla vLLM, ImprovedDiscard, Preserve, and Swap methods. The evaluation includes augmenting GPT-J models with APIs on NVIDIA A100 GPUs in AWS instances and Vicuna models on both single and distributed GPU environments. Real-world serving scenarios are simulated to assess performance under diverse request types. Overall, the findings demonstrate that APIServe's innovative approach effectively optimizes API support for LLM inferencing. It showcases substantial improvements in efficiency and throughput compared to existing frameworks. This research contributes valuable insights into enhancing the integration of external tools and APIs with large language models for enhanced performance in various applications.
Created on 30 Mar. 2024

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.