Files
..
2025-03-03 22:54:22 +05:30
2025-03-03 22:54:22 +05:30
2025-01-29 01:45:47 +05:30
2025-01-29 01:45:47 +05:30

Evaluation scripts for VLM tasks

This folder includes popular 3rd-party VLM benchmarks for VLM accuracy evaluation.

The following instructions show how to evaluate the VLM (including Model Optimizer quantized LLM) with the benchmarks, including the TensorRT-LLM deployment.

GQA

GQA: a dataset for real-world visual reasoning and compositional question answering. Upon completing the benchmark, the model's accuracy (in percentage format) will be displayed, providing a clear metric for performance evaluation.

First log in to Hugging Face account with your token.

huggingface-cli login

Baseline

bash gqa.sh --hf_model <dir_of_hf_model>

Quantized (simulated)

# MODELOPT_QUANT_CFG: Choose from [INT8_SMOOTHQUANT_CFG|FP8_DEFAULT_CFG|INT4_AWQ_CFG|W4A8_AWQ_BETA_CFG]
bash gqa.sh --hf_model <dir_hf_model> --quant_cfg MODELOPT_QUANT_CFG

Evaluate the TensorRT-LLM engine

TensorRT engine could be built following this guide

bash gqa.sh --hf_model <dir_hf_model> --visual_engine <dir_visual_engine> --llm_engine <dir_llm_engine>