Skip to content

Performance differs on different V100 #246

Closed

Description

@sleepwalker2017

Hello, I'm testing llama-13B on two different machines.
The two machines are both with 4*V100.

When I benchmark performance on 2*v100, the TRT-LLM performance differs a lot. While I run FT, the performance is the same.

On the first machine, I get the following benchmarks(the numbers are tokes/sec):
image

While on the 2nd machine, FT performs close on most batches, but TRT-LLM differs a lot.
image

When I check the kernels, I see the main difference comes from cutlass kernels.
image
image

Do you have any advice?

Activity

  1. sleepwalker2017 commented on Nov 2, 2023

    @sleepwalker2017
    Author

    This is the convert script

    python build.py --model_dir $1 \
                    --dtype float16 \
                    --use_gpt_attention_plugin float16 \
                    --use_gemm_plugin float16 \
                    --output_dir ./tmp/llama/13B/trt_engines/fp16/2-gpu/ \
                    --max_batch_size 24 \
                    --world_size 2 \
                    --tp_size 2
  2. jdemouth-nvidia commented on Nov 2, 2023

    @jdemouth-nvidia
    Collaborator

    Hi @sleepwalker2017 ,

    Are there differences between those two machines or are they supposed to be rigorously the same? One thing to check is the software stack, another is the hardware configuration as well as where they are located. For example, are they running in the same thermal conditions?

    Thanks,
    Julien

  3. added
    triaged
    on Nov 2, 2023
  4. sleepwalker2017 commented on Nov 2, 2023

    @sleepwalker2017
    Author

    Hi @sleepwalker2017 ,

    Are there differences between those two machines or are they supposed to be rigorously the same? One thing to check is the software stack, another is the hardware configuration as well as where they are located. For example, are they running in the same thermal conditions?

    Thanks, Julien

    I checked the temperature of the GPU, it's close to each other.
    As far as I can see, the GPU power on the second machine seems a little lower that the 1st one, and the performance is worse.
    That's weird. Could this be seen as individual difference?

    image
    image

  5. juney-nvidia commented on Nov 3, 2023

    @juney-nvidia
    Collaborator

    @sleepwalker2017 Another small details to be confirmed: did you invoke the build.py script for these two machines correspondingly, or you invoke the build.py on one machine, and then use the same built TRT engine on these two machines.

    June

  6. self-assigned this
    on Nov 3, 2023
  7. sleepwalker2017 commented on Nov 3, 2023

    @sleepwalker2017
    Author

    @sleepwalker2017 Another small details to be confirmed: did you invoke the build.py script for these two machines correspondingly, or you invoke the build.py on one machine, and then use the same built TRT engine on these two machines.

    June

    I build engines for two separate machines. And also, I run the faster engine on the lower machine, the result also gets lower.

  8. added
    Performance
    on Nov 5, 2023
  9. vicwer commented on Nov 9, 2023

    @vicwer

    @sleepwalker2017 hi,
    when I inference gpt2-xl-1.5B[https://huggingface.co/gpt2-large] int8 model, the performance of trt-llm is slower than ft in V100-1GPU...
    performance:

    trt-llm: 60+token/s
    ft: 100+token/s
    

    prompt:

    input: Born in north-east France, Soyer trained as a
    max out len: 128
    t:0.7
    

    can you test it? we can compare the performance.

  10. nv-guomingz commented on Nov 18, 2024

    @nv-guomingz
    Collaborator

    do u still have further issue or question now? If not, we'll close it soon.

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

Metadata

Metadata

Assignees

Labels

Performancestaletriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions