Skip to content

[feature request] logits processor perfomance issue #1681

Closed

Description

@akhoroshev

Current arch of tensorrtllm means that logits processor (for both executor and batch_manager) will be called independently for each request.

But it is bad approach in terms of performance.

For example if i have throughput 5000token/s without custom logits processors then that is equivalent to the system generating each token every 200 µs.

But if i add custom logit processor for each request, it increases latency of each token generation on about 15-20 µs (it depends on complexity of logits processor).

It leads to performance drop of all system on about 10%.

This can be avoided by allowing batch processing of logits for queries.

Activity

  1. added
    feature request
    on May 27, 2024
  2. MartinMarciniszyn commented on Jun 24, 2024

    @MartinMarciniszyn
    Collaborator

    A batched logits post processor has been released in the last update of the main branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions