TensorRT-LLMs/tests/integration/test_lists/test-db
Talor Abramovich 70e34a3291
[TRTLLM-5831][feat] Add LoRA support for pytorch backend in trtllm-serve (#5376)
Signed-off-by: Talor Abramovich <talora@nvidia.com>
2025-06-29 12:46:30 +00:00
..
l0_a10.yml [TRTLLM-5831][feat] Add LoRA support for pytorch backend in trtllm-serve (#5376) 2025-06-29 12:46:30 +00:00
l0_a30.yml [nvbugs/5309940] Add support for input output token counts (#5445) 2025-06-28 04:39:39 +08:00
l0_a100.yml test: Add LLGuidance test and refine guided decoding (#5348) 2025-06-25 14:12:56 +08:00
l0_b200.yml [TRTLLM-5000][feat] NGrams V2 (#4569) 2025-06-27 23:00:17 +08:00
l0_dgx_b200.yml [Infra] - Add timeout setting for long tests found in post-merge (#5501) 2025-06-26 11:31:39 +08:00
l0_dgx_h100.yml Add testing for trtllm-llmapi-launch with tritonserver (#5528) 2025-06-27 11:19:52 +08:00
l0_dgx_h200.yml Update trtllm-bench to support new Pytorch default. (#5491) 2025-06-26 17:05:43 -07:00
l0_gb200_multi_nodes.yml fix: Fix DS-R1 nvfp4 test case naming (#5361) 2025-06-19 15:50:43 +08:00
l0_gb200.yml CI: enable test cases on single device type (#5484) 2025-06-26 08:03:44 +08:00
l0_gb202.yml chore: enable moe_backend on Qwen3 test (#5230) 2025-06-19 13:40:45 +08:00
l0_gb203.yml [Infra] Update 5080 and 5090 case condition due to the driver update (#5317) 2025-06-18 20:01:36 +08:00
l0_gh200.yml [Infra] - Waive failed tests in post-merge and increase some timeout setting (#5424) 2025-06-24 17:19:31 +08:00
l0_h100.yml Update trtllm-bench to support new Pytorch default. (#5491) 2025-06-26 17:05:43 -07:00
l0_l40s.yml Refactor test timeout for individual long case (#4757) 2025-06-19 13:52:11 +08:00
l0_perf.yml CI: Performance regression tests update (#3531) 2025-06-01 09:47:55 +03:00
l0_rtx_pro_6000.yml Refactor test timeout for individual long case (#4757) 2025-06-19 13:52:11 +08:00
l0_sanity_check.yml [Infra]Fix l0_sanity_check.yml which also has gb202 and gb203 (#5360) 2025-06-19 15:05:57 +08:00
README.md Update (#2978) 2025-03-23 16:39:35 +08:00

Description

This folder contains test definition which is consumed by trt-test-db tool based on system specifications.

Installation

Install trt-test-db using the following command:

pip3 install --extra-index-url https://urm.nvidia.com/artifactory/api/pypi/sw-tensorrt-pypi/simple --ignore-installed trt-test-db==1.8.5+bc6df7

Test Definition

Test definitions are stored in YAML files located in ${TRT_LLM_ROOT}/tests/integration/test_lists/test-db/. These files define test conditions and the tests to be executed.

Example YAML Structure

version: 0.0.1
l0_e2e:
  - condition:
      terms:
        supports_fp8: true
      ranges:
        system_gpu_count:
          gte: 4
          lte: 4
      wildcards:
        gpu:
          - '*h100*'
        linux_distribution_name: ubuntu*
    tests:
      - examples/test_llama.py::test_llm_llama_v3_1_1node_multi_gpus[llama-3.1-8b-enable_fp8]
      - examples/test_llama.py::test_llm_llama_v3_1_1node_multi_gpus[llama-3.1-70b-enable_fp8]

Generating Test Lists

Use trt-test-db to generate a test list based on the system configuration:

trt-test-db -d /TensorRT-LLM/src/tests/integration/test_lists/test-db \
            --context l0_e2e \
            --test-names \
            --output /TensorRT-LLM/src/l0_e2e.txt \
            --match-exact '{"chip":"ga102gl-a","compute_capability":"8.6","cpu":"x86_64","gpu":"A10","gpu_memory":"23028.0","host_mem_available_mib":"989937","host_mem_total_mib":"1031949","is_aarch64":false,"is_linux":true,"linux_distribution_name":"ubuntu","linux_version":"22.04","supports_fp8":false,"supports_int8":true,"supports_tf32":true,"sysname":"Linux","system_gpu_count":"1",...}'

This command generates a test list file (l0_e2e.txt) based on the specified context and system configuration.

Running Tests

Execute the tests using pytest with the generated test list:

pytest -v --test-list=/TensorRT-LLM/src/l0_e2e.txt --output-dir=/tmp/logs

This command runs the tests specified in the test list and outputs the results to the specified directory.

Additional Information

  • The --context parameter in the trt-test-db command specifies which context to search in the YAML files.
  • The --match-exact parameter provides system information used to filter tests based on the conditions defined in the YAML files.
  • Modify the YAML files to add or update test conditions and test cases as needed. For more detailed information on trt-test-db and pytest usage, refer to their respective documentation.