Skip to content

high throughput inference #663

Closed as not planned
Closed as not planned

Description

@msaroufim

Was chatting with @Chillee about our plans in AO today and he mentioned we should be focusing on a few concrete problems like

  1. Demonstrate compelling perf for fp8 gemm at a variety of batch sizes.
  2. Demonstrate compelling perf for weight only int8 gemm at a variety of batch sizes.
  3. Demonstrate compelling perf for weight only intX gemm at low batch sizes.
  4. Demonstrate compelling perf for weight intX, activation fp8 at a variety of batch sizes.

We could as a baseline extend gpt-fast to work with bs=n w/o doing any kv cache management work and measure perf there. Copying feedback as is, open to discussing more and adding more details as time progresses

EDIT: gpt-fast already has a batched generation branch by Horace https://github.com/pytorch-labs/gpt-fast/tree/batched_generation

Activity

  1. added
    module: inference
    on Aug 12, 2024
  2. changed the title [-]chilli feedback[/-] [+]high throughput inference[/+] on Aug 12, 2024
  3. msaroufim commented on Aug 13, 2024

    @msaroufim
    ContributorAuthor

    @HDCharles on the int8 work
    @vkuzo on fp8
    @vayuda and @jerryzh168 on intx

  4. jeromeku commented on Aug 13, 2024

    @jeromeku
    Contributor

    @msaroufim

    Would be interesting to bench against something like QoQ, which implements W4A8KV4 (int8 GEMM) using a nested quantization scheme and neat kernel-level optimizations.

  5. vkuzo commented on Aug 13, 2024

    @vkuzo
    Contributor

    Demonstrate compelling perf for fp8 gemm at a variety of batch sizes.

    Note that I'm putting up a PR soon for a quick roofline estimator for float8 gemm + overhead specific to training to see for which M, K, N float8 is faster than bfloat16, it would be easiliy extendable to inference at a later time.

    Demonstrate compelling perf for weight intX, activation fp8 at a variety of batch sizes.

    While this is possible technically, I'm not sure I understand the value, would be interested to learn more.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: inferencerfc

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions