flashinfer-ai / flashinfer-ai/flashinfer-ai.github.io

2024/02/02/cascade-inference

Open
#9 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
SCSS
Stars
0
Forks
6
Avg merge
10d 15h
Merged PRs (30d)
1

Description

# Cascade Inference: Memory Bandwidth Efficient Shared Prefix Batch Decoding | FlashInfer

Many LLM inference tasks involves multiple independent text generation from a shared prefix (prompt), e.g. Self-Consistency, Tree of Thoughts and Skeleton-of-thought. Serving LLMs with common prefix could be memory and time-consuming, especially when common prefix is long and the number of requests is large: a possible use case is long document QA (Figure 1), multiple users interacts with ChatBot with the same document as prompt. While vLLM alleviate the memory issue by only storing one copy of the common prefix. However, it still suffers from the low-efficiency because the default PageAttention implementation do not optimize KV-Cache access to the shared prompt.

[https://flashinfer.ai/2024/02/02/cascade-inference.html](https://flashinfer.ai/2024/02/02/cascade-inference.html)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.