[ENHANCEMENT] Query-Aware Cache Selection for Efficient LLM Serving
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 8/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
調査の方向性
This is a design proposal rather than a scoped task: it sketches a query-aware caching layer (profiler, policy manager, scheduler integration) for LLM serving, and the payload names no file, module or test in veScale. A newcomer would first have to confirm whether veScale, a PyTorch training framework, even contains the serving scheduler and cache storage the proposal assumes, and whether the referenced TinyServe paper is meant to be ported. Done would mean an agreed design with maintainers before any code; with no comments or assignee after 456 days, that conversation has not started.
索引モデルが issue の本文から書いたものです。
説明
Problem Description
I would like to enhance the cache mechanism for LLM serving in Volcengine. The goal is to make the cache usage more adaptive to heterogeneous query workloads by dynamically adjusting reuse strategies.
Proposed Solution
The proposed enhancement is a Query-Aware Cache Selection (QACS) mechanism:
- Lightweight Query Profiling: Efficiently estimate query complexity (length, entropy, semantic redundancy).
- Dynamic Cache Selection: Adaptively choose between aggressive reuse, partial reuse, or fresh recomputation.
- Policy Control: Expose configurable knobs (
reuse_ratio,cache_budget,latency_accuracy_tradeoff) for fine-grained control. - Scheduler Integration: Integrate into the Volcengine serving scheduler for runtime-aware resource allocation.
Alternatives Considered
- Uniform cache reuse across all queries, which is simple but cannot adapt to different workloads.
- Manual configuration at deployment time, which lacks flexibility and incurs higher operational overhead.
The proposed TinyServe provides adaptive, per-query cache control without requiring manual tuning.
Implementation Plan
- Implement a query profiler module (<1ms overhead).
- Add a policy manager to select caching strategies on the fly.
- Integrate with existing cache storage and serving scheduler.
- Provide developer-facing APIs for configuration.
Additional Context
- This enhancement has been validated at scale across multiple LLMs, consistently improving efficiency and robustness.
- Reference: Dong Liu et al., “TinyServe: Query-Aware Cache Selection for Efficient LLM Serving,” ACM Multimedia 2025 (Oral).
- Expected benefits:
- ⚡ Efficiency: Up to 3x latency reduction under mixed workloads.
- 🎯 Quality: Maintains high generation quality even with aggressive cache usage.
- 📈 Scalability: Supports larger models within the same GPU budget.
- 主要言語
- Python
- スター
- 1k
- フォーク
- 65
- 平均マージ
- 21時間 34分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
volcengine/veScale のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 12/100
volcengine/veScale#75 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
volcengine/veScale#73 · コメント 1 件 · リアクション 3 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 8/100
volcengine/veScale#72 · リアクション 5 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
volcengine/veScale#68 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 12/100
volcengine/veScale#63 ·
volcengine/veScale の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
docling-project/docling-pipelines#669 ·
メンテナーはふだん 1 日以内に返信
-
blocked kind/enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
opendatahub-io/agent-eval-harness#329 · コメント 2 件 · リアクション 1 件 ·
-
cc_wrapper crashes with ValueError on Windows when a path is on another drive対応中かも @TrapsterDK が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
tweag/rules_haskell#2492 ·
メンテナーはふだん 1 日以内に返信