Skip to content

Investigate NanoV3 perf sweep with tp=2,4,8 #9917

Open

Description

@galagam

Initial perf sweep yields poor results. Investigate reason.

Image

vLLM sweep looks fine (tp=8 is broken on vLLM ToT)
Image

Activity

  1. self-assigned this
    on Dec 11, 2025
  2. converted this from a draft issue on Dec 11, 2025
  3. added
    Scale-out
    on Dec 11, 2025
  4. galagam commented on Dec 11, 2025

    @galagam
    CollaboratorAuthor

    I was recording average metrics, but std dev is appears to be high in some scenarios.
    See below for concurrency 80 (bad) and concurrency 96 (good).
    Specifically TTFT, TTST and ITL - avg value vs mean value and std dev.

    tp=2, conc=80

                                                  NVIDIA AIPerf | LLM Metrics                                               
    ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┓
    ┃                               Metric ┃      avg ┃      min ┃       max ┃       p99 ┃       p90 ┃      p50 ┃      std ┃
    ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━┩
    │             Time to First Token (ms) │   676.49 │   169.58 │  8,816.90 │  8,726.08 │    898.82 │   461.01 │ 1,171.80 │
    │            Time to Second Token (ms) │   235.74 │     0.01 │  8,349.68 │  8,347.30 │    112.41 │    89.40 │ 1,161.28 │
    │                 Request Latency (ms) │ 8,287.81 │ 5,400.48 │ 14,810.18 │ 14,807.70 │ 14,612.67 │ 6,677.24 │ 3,170.04 │
    │             Inter Token Latency (ms) │     7.52 │     5.01 │     14.83 │     14.41 │     13.97 │     6.03 │     3.08 │
    │     Output Token Throughput Per User │   148.37 │    67.42 │    199.45 │    197.23 │    175.41 │   165.85 │    38.15 │
    │                    (tokens/sec/user) │          │          │           │           │           │          │          │
    │      Output Sequence Length (tokens) │ 1,013.45 │   988.00 │  1,035.00 │  1,029.01 │  1,023.00 │ 1,013.00 │     7.26 │
    │       Input Sequence Length (tokens) │ 1,000.00 │ 1,000.00 │  1,000.00 │  1,000.00 │  1,000.00 │ 1,000.00 │     0.00 │
    │ Output Token Throughput (tokens/sec) │ 9,736.67 │      N/A │       N/A │       N/A │       N/A │      N/A │      N/A │
    │    Request Throughput (requests/sec) │     9.61 │      N/A │       N/A │       N/A │       N/A │      N/A │      N/A │
    │             Request Count (requests) │   400.00 │      N/A │       N/A │       N/A │       N/A │      N/A │      N/A │
    └──────────────────────────────────────┴──────────┴──────────┴───────────┴───────────┴───────────┴──────────┴──────────┘
    

    tp=2, conc=96

                                                NVIDIA AIPerf | LLM Metrics                                             
    ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━┓
    ┃                               Metric ┃       avg ┃      min ┃      max ┃      p99 ┃      p90 ┃      p50 ┃    std ┃
    ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━┩
    │             Time to First Token (ms) │    577.41 │   200.61 │ 1,208.26 │ 1,197.89 │   900.15 │   542.15 │ 207.49 │
    │            Time to Second Token (ms) │     87.43 │     0.02 │   466.39 │   465.60 │    96.57 │    91.19 │  60.12 │
    │                 Request Latency (ms) │  7,323.34 │ 6,350.38 │ 8,048.44 │ 8,018.19 │ 7,986.04 │ 7,084.22 │ 482.16 │
    │             Inter Token Latency (ms) │      6.66 │     5.77 │     7.80 │     7.70 │     7.35 │     6.49 │   0.49 │
    │     Output Token Throughput Per User │    150.93 │   128.19 │   173.27 │   172.02 │   161.85 │   154.10 │  10.80 │
    │                    (tokens/sec/user) │           │          │          │          │          │          │        │
    │      Output Sequence Length (tokens) │  1,014.01 │   989.00 │ 1,041.00 │ 1,035.00 │ 1,024.00 │ 1,014.00 │   7.69 │
    │       Input Sequence Length (tokens) │  1,000.00 │ 1,000.00 │ 1,000.00 │ 1,000.00 │ 1,000.00 │ 1,000.00 │   0.00 │
    │ Output Token Throughput (tokens/sec) │ 13,244.53 │      N/A │      N/A │      N/A │      N/A │      N/A │    N/A │
    │    Request Throughput (requests/sec) │     13.06 │      N/A │      N/A │      N/A │      N/A │      N/A │    N/A │
    │             Request Count (requests) │    480.00 │      N/A │      N/A │      N/A │      N/A │      N/A │    N/A │
    └──────────────────────────────────────┴───────────┴──────────┴──────────┴──────────┴──────────┴──────────┴────────┘
    

    Need to find a technical solution for capturing nsys traces for the problem iterations. Capturing the whole run results in a very large file that causes nsys UI to crash.

  5. added
    AutoDeploy
    on Dec 22, 2025
  6. moved this from In progress to Ready in AutoDeploy Boardon Dec 23, 2025
  7. assigned and unassigned on Dec 23, 2025
  8. galagam commented on Dec 23, 2025

    @galagam
    CollaboratorAuthor

    @MrGeva please take a look

  9. MrGeva commented on Dec 23, 2025

    @MrGeva
    Collaborator

    Tested on latest main f7e2456
    Adding cuda batch sizes of the spikes concurrency values solves the spikes: 40, 80, 192 in TP2

    graph after adding these batch sizes:

    Image

    graph before adding the batch sizes:

    Image <style> </style>
    max_concurrency TPOT avg user TPS avg output TPS avg
    1 3.054701 327.3643 315.6486
    4 3.149085 317.5526 1194.687
    8 3.249131 307.7746 2327.192
    16 3.484378 286.9952 4240.998
    24 3.682067 271.5866 6031.339
    32 4.35079 229.8433 6799.645
    40 4.576732 218.4965 7974.748
    48 5.10684 195.8158 8699.812
    64 5.185264 192.8542 11259.21
    80 6.126727 163.2193 11671.05
    96 7.074527 141.3522 12447.03
    128 7.673896 130.3119 13006.02
    192 10.97392 91.12517 13210.15
    224 12.79147 78.1771 13779.94

    closing this issue

  10. moved this from Ready to Done in AutoDeploy Boardon Dec 23, 2025
  11. closed this as completedby moving to Done in AutoDeploy Boardon Dec 23, 2025
  12. moved this from Done to In progress in AutoDeploy Boardon Dec 23, 2025
  13. MrGeva commented on Dec 23, 2025

    @MrGeva
    Collaborator

    Need to:
    ○ Plot with vllm
    ○ Why do we have this convex plot? Maybe compute boundness
    ○ We should not shard the shared experts - comment out the proj up and down

  14. galagam commented on Dec 23, 2025

    @galagam
    CollaboratorAuthor

    vllm raw data

    /lustre/fs1/portfolios/coreai/projects/coreai_dlalgo_modelopt/users/ghubaraagam/dev/bench_ad_server/251208_0830_vllm_17eb25e_h100_aiperf
    /lustre/fs1/portfolios/coreai/projects/coreai_dlalgo_modelopt/users/ghubaraagam/dev/bench_ad_server/251211_0116_vllm_17eb25e_tp4
    /lustre/fs1/portfolios/coreai/projects/coreai_dlalgo_modelopt/users/ghubaraagam/dev/bench_ad_server/251211_0405_vllm_17eb25e_tp2
    

    @MrGeva

  15. moved this from In progress to Ready in AutoDeploy Boardon Dec 25, 2025
  16. moved this from Ready to Backlog in AutoDeploy Boardon Dec 25, 2025
  17. moved this from Backlog to In progress in AutoDeploy Boardon Dec 25, 2025
  18. reopened this on Dec 25, 2025
  19. moved this from In progress to Ready in AutoDeploy Boardon Dec 25, 2025
  20. moved this from Ready to In progress in AutoDeploy Boardon Jan 5, 2026
  21. MrGeva commented on Jan 8, 2026

    @MrGeva
    Collaborator

    Current observations:

    1. the AD results are not stable across runs. for example fp8 tp8 with TRTSampler and more multi-stream
      in yellow is the first run and underneath it is a manual run just for these concurrency values:
    Image

    here is the graph with the 2nd run results overwriting the 1st run results in concurrencies 64,80,96,128:

    Image
    1. large std per concurrency in AD (does not happen in vllm)
      e.g. for concurrency 128, fp8 tp8 1k/1k:
    Image
    1. moe multi-stream causes crashes frequently
    2. here are sweeps with the moe multi-stream disabled:
      TP2:
    Image

    TP8:

    Image
    1. I compared the traces for concurrency 64 and 80, I dont see anything special that would cause the perf drop
      /lustre/fs1/portfolios/coreai/projects/coreai_dlalgo_modelopt/users/egeva/TensorRT-LLM/nano_v3_tp8_fp8_concur80_msmoe.nsys-rep

    /lustre/fs1/portfolios/coreai/projects/coreai_dlalgo_modelopt/users/egeva/TensorRT-LLM/nano_v3_tp8_fp8_msmoe_concur64.nsys-rep

  22. MrGeva commented on Jan 18, 2026

    @MrGeva
    Collaborator

    currently blocked on crashes due to the moe multi stream feature. @suyoggupta is WIP to fix

  23. moved this from In progress to Backlog in AutoDeploy Boardon Jan 27, 2026
  24. moved this from Backlog to In progress in AutoDeploy Boardon May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

AutoDeployScale-out

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions