[ENHANCEMENT] Query-Aware Cache Selection for Efficient LLM Serving

Đang mở
#65 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
8/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python, pytorch

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
  1. Implement a query profiler module (<1ms overhead).
  2. Add a policy manager to select caching strategies on the fly.
  3. Integrate with existing cache storage and serving scheduler.
  4. 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.
Ngôn ngữ chính
Python
Star
1k
Fork
65
Merge trung bình
21 giờ 34 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của volcengine/veScale

Tất cả issue của volcengine/veScale

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.