Skip to content

Alternative way to specify max capacity for paged KV cache models #204

Closed

Description

@yunfeng-scale

It seem engine.device_memory_size is decided the same way between paged/non-paged KV cache models, using some combinations of batch size, max sequence length etc. This is less ideal given the high variance of input sizes. Is it possible to specify this in some alternative ways like max # of blocks?

Activity

  1. byshiue commented on Oct 31, 2023

    @byshiue
    Collaborator

    Hi, @yunfeng-scale . Thank you for the report. The workspace of TensorRT engine is pre-allocated during initialization, so it is hard to apply the technique of page kv cache to these buffer for TensorRT. We know memory consumption is a very important topic and we are investigating more way to optimize the memory usage.

    Close this bug. Feel free to open the bug if needed.

  2. self-assigned this
    on Oct 31, 2023
  3. added
    question
    on Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

question

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions