TensorRT-LLMs/cpp/micro_benchmarks
2024-08-29 17:25:07 +08:00
..
CMakeLists.txt TensorRT-LLM v0.12 Update (#2164) 2024-08-29 17:25:07 +08:00
gen-moe-benchmark-file.py TensorRT-LLM v0.12 Update (#2164) 2024-08-29 17:25:07 +08:00
mixtureOfExpertsBackendBenchmarkFixture.h TensorRT-LLM v0.12 Update (#2164) 2024-08-29 17:25:07 +08:00
mixtureOfExpertsBackendBenchmarkLauncher.cu TensorRT-LLM v0.12 Update (#2164) 2024-08-29 17:25:07 +08:00
README.md TensorRT-LLM v0.11 Update (#1969) 2024-07-17 20:45:02 +08:00

Micro Benchmarks

This folder contains benchmarks for specific components in TRT-LLM, using google-benchmark

Building

To build add the --micro_benchmark flag to build_wheel.py or pass -DBUILD_MICRO_BENCHMARKS=ON to cmake

Benchmark Documentations

Mixture Of Experts Backend Benchmark

Target mixtureOfExpertsBackendBenchmark

This benchmark covers the backend used by the MixtureOfExperts plugin. It allows you to benchmark different MOE configurations without building a TRT engine.

Usage:

./mixtureOfExpertsBackendBenchmark

# or

./mixtureOfExpertsBackendBenchmark --input_file <JSON benchmark definition>

For more information see:

./mixtureOfExpertsBackendBenchmark --help

The gen-moe-workload-file.py is a helper script that can generate workload files for MOE benchmarks. This is useful for sharing or comparing configurations, such as when generating a reproduction case for a performance bug