TensorRT-LLM icon indicating copy to clipboard operation
TensorRT-LLM copied to clipboard

feat: Run PyExecutor's inference flow to estimate max_num_tokens for kv_cache_manager

Open HuiGao-NV opened this issue 9 months ago • 12 comments

model_engine's forward was ran to perform memory usage testing before which is not accurate because memory used in decoding not counted in. In this change, PyExecutor is ran to perform the memory usage. Note: CacheTransceiver will hang on the second time of creation. Then, one API to update kv_cache_manager for it is added.

HuiGao-NV avatar Mar 26 '25 06:03 HuiGao-NV

/bot run --disable-fail-fast

HuiGao-NV avatar Mar 26 '25 06:03 HuiGao-NV

PR_Github #533 [ run ] triggered by Bot

niukuo avatar Mar 26 '25 06:03 niukuo

PR_Github #533 [ run ] completed with state SUCCESS /LLM/main/L0_MergeRequest_PR pipeline #454 completed with status: 'FAILURE'

niukuo avatar Mar 26 '25 10:03 niukuo

/bot run --stage-list="A100X-1,A100X-2,A30-7,B200_PCIe-1"

HuiGao-NV avatar Mar 26 '25 15:03 HuiGao-NV

PR_Github #598 [ run ] triggered by Bot

niukuo avatar Mar 26 '25 15:03 niukuo

PR_Github #598 [ run ] completed with state SUCCESS /LLM/main/L0_MergeRequest_PR pipeline #507 (Partly Tested) completed with status: 'FAILURE'

niukuo avatar Mar 26 '25 16:03 niukuo

/bot run --stage-list="A100X-1,A100X-2,A30-7,B200_PCIe-1" --disable-fail-fast

HuiGao-NV avatar Mar 26 '25 22:03 HuiGao-NV

PR_Github #621 [ run ] triggered by Bot

tensorrt-cicd avatar Mar 26 '25 22:03 tensorrt-cicd

/bot run --disable-fail-fast --multi-gpu-test

HuiGao-NV avatar Mar 27 '25 03:03 HuiGao-NV

PR_Github #634 [ run ] triggered by Bot

tensorrt-cicd avatar Mar 27 '25 03:03 tensorrt-cicd

PR_Github #621 [ run ] completed with state ABORTED

tensorrt-cicd avatar Mar 27 '25 03:03 tensorrt-cicd

PR_Github #634 [ run ] completed with state SUCCESS /LLM/main/L0_MergeRequest_PR pipeline #533 completed with status: 'FAILURE'

tensorrt-cicd avatar Mar 27 '25 10:03 tensorrt-cicd

/bot run --disable-fail-fast

HuiGao-NV avatar Apr 07 '25 04:04 HuiGao-NV

PR_Github #1262 [ run ] triggered by Bot

tensorrt-cicd avatar Apr 07 '25 04:04 tensorrt-cicd

PR_Github #1262 [ run ] completed with state SUCCESS /LLM/main/L0_MergeRequest_PR pipeline #953 completed with status: 'FAILURE'

tensorrt-cicd avatar Apr 07 '25 11:04 tensorrt-cicd

/bot run --stage-list="A100X-TensorRT-1,L40S-PyTorch-1" --disable-fail-fast

HuiGao-NV avatar Apr 07 '25 11:04 HuiGao-NV

PR_Github #1319 [ run ] triggered by Bot

tensorrt-cicd avatar Apr 07 '25 11:04 tensorrt-cicd

PR_Github #1319 [ run ] completed with state SUCCESS /LLM/main/L0_MergeRequest_PR pipeline #991 (Partly Tested) completed with status: 'SUCCESS'

tensorrt-cicd avatar Apr 07 '25 13:04 tensorrt-cicd

/bot run --disable-fail-fast --multi-gpu-test

HuiGao-NV avatar Apr 07 '25 13:04 HuiGao-NV

PR_Github #1331 [ run ] triggered by Bot

tensorrt-cicd avatar Apr 07 '25 13:04 tensorrt-cicd

PR_Github #1331 [ run ] completed with state SUCCESS /LLM/main/L0_MergeRequest_PR pipeline #998 completed with status: 'FAILURE'

tensorrt-cicd avatar Apr 07 '25 22:04 tensorrt-cicd

/bot run --disable-fail-fast --stage-list="DGX_H100-4_GPUs-PyTorch-1"

HuiGao-NV avatar Apr 08 '25 03:04 HuiGao-NV

PR_Github #1393 [ run ] triggered by Bot

tensorrt-cicd avatar Apr 08 '25 03:04 tensorrt-cicd

PR_Github #1393 [ run ] completed with state FAILURE /LLM/main/L0_MergeRequest_PR pipeline #1046 (Partly Tested) completed with status: 'FAILURE'

tensorrt-cicd avatar Apr 08 '25 04:04 tensorrt-cicd

/bot run --disable-fail-fast

HuiGao-NV avatar Apr 08 '25 05:04 HuiGao-NV

PR_Github #1408 [ run ] triggered by Bot

tensorrt-cicd avatar Apr 08 '25 05:04 tensorrt-cicd

PR_Github #1408 [ run ] completed with state SUCCESS /LLM/main/L0_MergeRequest_PR pipeline #1056 completed with status: 'FAILURE'

tensorrt-cicd avatar Apr 08 '25 07:04 tensorrt-cicd

/bot run --disable-fail-fast

HuiGao-NV avatar Apr 08 '25 15:04 HuiGao-NV

GitHub Bot Help

/bot [-h] ['run', 'kill', 'skip', 'reuse-pipeline'] ...

Provide a user friendly way for developers to interact with a Jenkins server.

Run /bot [-h|--help] to print this help message.

See details below for each supported subcommand.

run [--disable-fail-fast --skip-test --stage-list "A10-1, xxx" --gpu-type "A30, H100_PCIe" --add-multi-gpu-test --only-multi-gpu-test --disable-multi-gpu-test --post-merge --extra-stage "H100_PCIe-[Post-Merge]-1, xxx"]

Launch build/test pipelines. All previously running jobs will be killed.

--disable-fail-fast (OPTIONAL) : Disable fail fast on build/tests/infra failures.

--skip-test (OPTIONAL) : Skip all test stages, but still run build stages, package stages and sanity check stages. Note: Does NOT update GitHub check status.

--stage-list "A10-1, xxx" (OPTIONAL) : Only run the specified test stages. Examples: "A10-1, xxx". Note: Does NOT update GitHub check status.

--gpu-type "A30, H100_PCIe" (OPTIONAL) : Only run the test stages on the specified GPU types. Examples: "A30, H100_PCIe". Note: Does NOT update GitHub check status.

--only-multi-gpu-test (OPTIONAL) : Only run the multi-GPU tests. Note: Does NOT update GitHub check status.

--disable-multi-gpu-test (OPTIONAL) : Disable the multi-GPU tests. Note: Does NOT update GitHub check status.

--add-multi-gpu-test (OPTIONAL) : Force run the multi-GPU tests. Will also run L0 pre-merge pipeline.

--post-merge (OPTIONAL) : Run the L0 post-merge pipeline instead of the ordinary L0 pre-merge pipeline.

--extra-stage "H100_PCIe-[Post-Merge]-1, xxx" (OPTIONAL) : Run the ordinary L0 pre-merge pipeline and specified test stages. Examples: --extra-stage "H100_PCIe-[Post-Merge]-1, xxx".

kill

kill

Kill all running builds associated with pull request.

skip

skip --comment COMMENT

Skip testing for latest commit on pull request. --comment "Reason for skipping build/test" is required. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

reuse-pipeline

reuse-pipeline

Reuse a previous pipeline to validate current commit. This action will also kill all currently running builds associated with the pull request. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

github-actions[bot] avatar Apr 08 '25 15:04 github-actions[bot]

/bot run --add-multi-gpu-test --disable-fail-fast

HuiGao-NV avatar Apr 08 '25 15:04 HuiGao-NV