mlcommons/mlperf_client
소개
MLPerf Client is a benchmark for Windows, Linux and macOS, focusing on client form factors in ML inference scenarios.
AI 및 머신러닝What you can do
- The application provides reference models for inference, including Qwen 3 8B, Phi 4 Mini Instruct, Llama 3.1 8B Instruct and FLUX.2 Klein 4B and, as experimental models, Gemma 4 E4B IT, Qwen 3.8 27B and Qwen 3.6 35B A3B.
- Independent Hardware Vendors {IHVs} offer paths as Execution Providers, with their own custom model format and stack dependencies, which adhere to IHV APIs.
- The client bundles all enabled/active paths from the EP list (see below)
- Configure hardware and inference parameters using a JSON configuration file.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalMLPerf Client benchmark
MLPerf Client is a benchmark for Windows and macOS, focusing on client form factors in ML inference scenarios like AI chatbots, agentic workflows and image generation. The benchmark evaluates performance across different hardware and software configurations, providing command line interface.
Table of Contents
- Features
- Running the Application
- Command Line Arguments
- Configuration File Format
- Running MLPerf Client on an Offline Machine
- Supported Execution Providers and Configurations
- Supported Platforms by Execution Provider
- Prompt Generation
Features
The MLPerf Client benchmark measures the performance of inference tasks on personal computers. It supports the following features:
- The application provides reference models for inference, including Qwen 3 8B, Phi 4 Mini Instruct, Llama 3.1 8B Instruct and FLUX.2 Klein 4B and, as experimental models, Gemma 4 E4B IT, Qwen 3.8 27B and Qwen 3.6 35B A3B.
- Independent Hardware Vendors {IHVs} offer paths as Execution Providers, with their own custom model format and stack dependencies, which adhere to IHV APIs.
- The client bundles all enabled/active paths from the EP list (see below)
- Configure hardware and inference parameters using a JSON configuration file.
- The final build product is a single binary for Windows and MacOS, with model and data files downloaded as needed.
Running the Application
macOS Users
You need to ensure the application has the necessary execution permissions before running it for the first time. Here's how to do it:
chmod +x mlperf-mac
After setting the permissions, you can run the application using:
./mlperf-mac [options]
Windows Users
You can run the application using:
.\mlperf-windows.exe [options]
iOS Users
iOS developers can test it using standard methods for deploying and running apps on iOS devices via Xcode. CLI is not supported for the iOS app, use GUI instead.
Command Line Arguments
Arguments Reference
Below are the available command line arguments that control the tool's behavior:
| Argument | Description | Required | Default Value | Available Values |
|---|---|---|---|---|
-h, --help |
Show help message and exit | No | ||
-v, --version |
Show the version of the tool | No | ||
-c, --config |
Path to the configuration file | Yes | Any valid path | |
-o, --output-dir |
Specify output directory. If not provided, default output directory is used. | No | ||
-d, --data-dir |
Specify directory, where all required data files will be downloaded | No | data |
|
-t, --temp-dir |
Specify directory, where temporary files will be stored. | No | ||
--python-path |
Python interpreter for the agentic execute tool. default uses the config PythonPath, else the bundled Python; system uses the installed python, PATH untouched; any other value is used as the interpreter directory (overrides config PythonPath). |
No | default |
default, system, any valid path |
-p, --pause |
Flag to allow pausing the program at the end of execution. | No | true |
true, false |
-l, --logger |
Path to the log4cxx configuration file | No | log4cxx.xml |
Any valid path |
-m, --list-models |
List all the available models supported by the tool | No | ||
-b, --download_behaviour |
Controls The files download behaviour | No | normal |
forced, prompt, skip_all, skip_ep, deps_only, normal |
-q, --prompts |
Select prompts type to run: base (default), ext (extended), or both |
No | base |
base, ext, both |
-n, --cache-local-files |
If it is set to false local files specified in the config will not be copied and cached | No | true |
true, false |
-i, --device-id |
Overrides device id in the config file for EPs supporting device enumeration. Use all to run the benchmark on all devices sequentially; devices the EP reports as unable to run the configuration are skipped, and naming one explicitly fails with the EP's reason. |
No | all, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 |
|
--ep-param |
Add or override EP config parameters as a comma-separated list of [EPName.]key=value. Without the EPName prefix the parameter applies to every EP. Values are parsed as JSON when possible, otherwise used as strings. Marks the configuration as not tested by MLCommons. |
No | e.g. WindowsML.skip_catalog=true |
|
-e, --enumerate-devices |
Enumerates available devices for all EPs present in the provided config file and exits. Devices the EP reports as unable to run the configuration are listed with the reason. | No | false |
true, false |
-s, --skip-failed-prompts |
Skip failed prompts during the execution of the application. If set, the application will not stop on failed prompts and will continue execution | No | false |
true, false |
-x, --export-csv |
Export benchmark results to a CSV file. Provide the output CSV file path. | No | Any valid path | |
--subprocess-isolate |
Run IHV code in an isolated subprocess to avoid DLL conflicts (Windows only; available when built with MLPERF_SUBPROCESS_IHV_ISOLATION). |
No | false |
true, false |
Usage Examples
Typical usage of the tool would look like this:
Run the benchmark using a specific configuration file:
.\mlperf-windows.exe -c NVIDIA_WindowsML-NvTensorRtRtx_GPU.json
This command runs the benchmark using NVIDIA_WindowsML-NvTensorRtRtx_GPU.json as the configuration file.
Arguments Behavior Summary
-bControls the behavior of the application's file downloading process.forced: The application will download the necessary files even if they are already present.prompt: The application will check for the existence of required files. If any are missing, the user will be prompted to decide whether to download the missing files or abort the operation.skip_all: The application will skip downloading any files. If a required file is missing, an error will be displayed, and the operation will be aborted.skip_ep: The application will download files normally, except EP dependencies, which must already be present locally. If one is missing, an error will be displayed, and the operation will be aborted.deps_only: The application will download only the required dependencies and exit.normal(default): The application will check the local cache first. If files are not cached or their URIs have changed, it will download the missing/updated files and cache them for future use.
--ep-paramAdds or overrides parameters in the EPConfigblocks of the loaded configuration, taking precedence over the config file. For example,--ep-param WindowsML.skip_catalog=truemakes WindowsML use the installed EP packages without catalog installation; combine it with-b skip_epto skip all EP acquisition.
Now, let's see how to create a configuration file for the tool.
Configuration File Format
Before reading this section, please check the repository's data folder for sample configuration files. The configuration file is a JSON file that stores the tool's settings. This is an example of a configuration file.
{
"SystemConfig": {
"Comment": "Default config",
"TempPath": ""
},
"Scenarios": [
list
of
scenarios
here
]
}
Where:
SystemConfig: Contains the system configuration settings for the tool.
Comment: A comment for the configuration file that describes the configuration.TempPath: The path to the temporary directory where the tool will store the downloaded files. If this is not provided, the tool will use the system's temporary directory.BaseDir: TheBaseDiris an Optional field that can be used to specify a base directory that will be prepended to all relative paths defined in the configuration file. When a relative path is detected in the configuration, the tool automatically prepends the basedir value to it.DownloadBehavior: TheDownloadBehavioris an Optional field that do exactly what the-bcommand line argument does. It controls the behavior of the application's file downloading process. If theDownloadBehaviorprovided in both the configuration file and the command line, the command line argument will take precedence.CacheLocalFiles: TheCacheLocalFilesis an Optional field that do exactly what the--cache-local-filescommand line argument does. If it is set to false local files specified in the config will not be copied and cached. If theCacheLocalFilesprovided in both the configuration file and the command line, the command line argument will take precedencePythonPath: An Optional field pointing at an existing Python interpreter directory (e.g.C:/Python313orfile://C:/Python313/) for scenarios that run Python (the agenticexecutetool). When set, that interpreter is used instead of downloading the bundled portable Python (the download is skipped). The directory may hold the interpreter directly (a standard install) or nest it under apython/subdirectory; if no interpreter is found there the run aborts with an error.
Scenarios: A list of scenarios to run using the tool. Each scenario has the following format:
{ "Name": "qwen3", "Models": [list of models here], "InputFilePath": [ "input file path1", "input file path2", ...], "AssetsPath": [ "assets path1", "assets path2", ...], "ResultsVerificationFile": "path to results verification file", "DataVerificationFile": "path to data verification file", "Iterations": 1000, "WarmUp": 1, "Delay": 0, "ExecutionProviders": [list of execution providers here] }Where:
Name: the name of the scenario.Models: a list of models to use for the scenario, the tool will run the scenario using each of the models in the list. each model has the following format:{ "ModelName": "Llama-3.1-8B-Instruct", "FilePath": "https://client.mlcommons-storage.org/deps/2.0/scenario_files/llm/llama3/models/WindowsML/model.onnx", "DataFilePath": "https://client.mlcommons-storage.org/deps/2.0/scenario_files/llm/llama3/models/WindowsML/model.onnx.data.zip", "TokenizerPath": "https://client.mlcommons-storage.org/deps/2.0/scenario_files/llm/llama3/models/WindowsML/tokenizer.zip" }Where:
ModelName: Specifies the model name.FilePath: Specifies the path to the main model file (e.g., WindowsML/model.onnx).DataFilePath: Specifies the path to the data file associated with the model (e.g., WindowsML/model.onnx.data). This file is required for executing the scenario. Some models might have this file splitted into multiple files. To avoid setting manually all the files in this dictionary, these can be zipped into a single file - the app will take care of the unzipping.TokenizerPath: Specifies the path to the tokenizer file (e.g., WindowsML/tokenizer.zip). This file is required for executing the scenario and contains the necessary tokenizer configuration and data.(The file does not need to be in ZIP format; it can be any supported format compatible with the model.)
InputFilePath: is a list of paths to the data files used in the scenario (input data) this could be a list of image files or even zip files.AssetsPath: is a list of paths to the assets files used in the scenario (like labels file).ResultsVerificationFile: is the path to the file that contains the expected results of the scenario. for example, if the scenario is a content generation task, then the ResultsVerificationFile should contain the expected tokens for the input file{ "expected_tokens": [ [29896, 29900, 2440, 8020, 29892, ...] ] }DataVerificationFile: a path to the file that contains the SHA256 hash of all the files used in the scenario, this is used to verify the integrity of the data files. Please note that this file is optional, but if it's provided, it should contain the hashes of all the files used in the scenario. The format of theDataVerificationFileshould be:{ "FileHashes": [ "8b13ac3ccb407ecbbcae0fe427f065c44dd96e259935de35699e607ec5ba12bc", ... ] }The order of the hashes shouldn't matter, the tool will verify the integrity of the files by comparing the hashes of the files with the hashes in the
DataVerificationFile.Iterations: the number of iterations to run the scenario for.WarmUp: the number of warmup iterations to run the scenario for.Delay: the delay in seconds between each scenario iteration. This is an optional argument, and the default value is 5 seconds for LLM and image-generation scenarios.
Image-generation scenarios save every measured image as PNG, named
<timestamp>_<EP>_prompt<P>_iter<N>[_img<K>].png; warm-up images are not saved.ExecutionProviders: a list of execution providers to use for the scenario, the tool will run the scenario using each of the execution providers in the list. each execution provider has the following format:
Where:{ "Name": "WindowsML", "Config": { "device_type": "GPU", "device_id": 0 }, "Models": [ overriden models here ] }Name: the name of the execution provider.Config: the configuration for the execution provider, this is specific to each execution provider, for example, the configuration for WindowsML execution provider may look like this:
{ "device_type": "GPU", "device_id": 0 }Models: this is an optional section that can be used to override specific models for the current execution provider. It has the same format as theModelssection of the scenario. You need to provide theModelNameand override values for theFilePath,DataFilePath, andTokenizerPathif necessary.
URIs Supported
This tool accepts URIs in the following formats:
- Local files:
file://<path>(must be a valid absolute local path or relative toBaseDir(if provided). Please note that these files are stored in cache later.) - Remote resources:
https://<url>(must be a valid URL)
Tested Workflows
You can find specific tested workflows for different vendors in:
data/configs/vendors_default/
Running MLPerf Client on an Offline Machine
1. Download everything on a connected machine
mlperf-windows.exe -c "path\to\<config>.json" --temp-dir .
- A new
MLPerfsub-directory will appear next to the executable. - The directories/files you need to copy are:
data\ # datasets downloaded by the first run
MLPerf\ # IHV libraries and schemas
<config>.json # every config file you intend to benchmark
mlperf-windows.exe # the executable itself for Windows
Zip (or otherwise copy) the items above to the target machine with no Internet access.
2. Run benchmarks on the offline machine
mlperf-windows.exe -c "path\to\<config>.json" --temp-dir . --download_behaviour skip_all
--download_behaviour skip_allforces the runner to use the local copies in./data/and./MLPerf/, preventing any network calls.- Repeat the command for each config file you packed in step 1, replacing
"path\to\<config>.json"accordingly.
Supported Execution Providers and Configurations
The following table contains a list of the supported execution providers (EPs) and the possible configurations we support for each of them. For more detailed information and additional documentation, please refer to the official ONNX Runtime Documentation .
| Execution Provider | Configuration Options | Configuration Type | Required | Default Value | Available Values | Description |
|---|---|---|---|---|---|---|
| NativeOpenVINO(✅ Active) | device_type | string | True | ["GPU", "NPU"] | ||
| num_of_threads | integer | False | 0 | >= -1 | ||
| num_streams | integer | False | 0 | >= 1 | ||
| WindowsML(✅ Active) | device_type | string | True | ["GPU", "NPU"] | ||
| device_id | integer | False | 0 | |||
| device_vendor | string | False | ["Intel", "AMD", "NVIDIA"] | |||
| device_ep | string | False | ["OpenVINO", "QNN", "RyzenAI", "NvTensorRtRtx", "AMDGPUExecutionProvider"] | |||
| NativeQNN(✅ Active) | device_type | string | True | ["NPU", "NPU_CPU"] | ||
| OrtGenAI-RyzenAI(✅ Active) | device_type | string | True | ["NPU and GPU", "NPU"] | ||
| OrtGenAI-AMDGPU(✅ Active) | device_type | string | True | ["GPU"] | ||
| provider_library | string | False | hipgpu.dll | AMD GPU provider library, relative to the EP dependencies folder | ||
| profile | string | False | Provider profile passed to AMDGPUExecutionProvider (shipped configs: hip) |
|||
| MLX(✅ Active) | device_type | string | True | ["GPU"] | ||
| llama-cpp(✅ Active) | backend | string | True | ["Metal", "CUDA"] | From llama-cpp | |
| device_type | string | True | ["GPU"] | |||
| gpu_layers | integer | True | >= 0 | |||
| fa | integer | False | 0 | CUDA only | ||
| no_mmap | integer | False | 0 | CUDA only | ||
| Diffusers(✅ Active) | backend | string | True | ["CUDA", "MPS", "RYZENAI"] | Image generation only (txt2img) | |
| device_type | string | False | GPU | ["GPU", "NPU"] | ||
| device_id | integer | False | 0 | >= 0 | ||
| device_vendor | string | False | ["NVIDIA", "APPLE", "AMD"] | |||
| gpu_mode | string | False | ["direct", "cpu_offload"] | |||
| quantization | string | False | ["fp8", "nvfp4"] | |||
| components | object | False | Per-component weight file overrides | |||
| optimizations | array | False | [{"type": "fp8"}, {"type": "tensorrt_rtx"}] |
Status Definitions
- ✅ Active: Enabled for production and development builds.
- 🚧 Experimental: Enabled for production and development builds, might not be stable.
Supported Platforms by Execution Provider
| Execution Provider | Windows x64 | Windows ARM | Linux x64 | Linux ARM64 | macOS | iOS |
|---|---|---|---|---|---|---|
| NativeOpenVINO | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ |
| WindowsML | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
| NativeQNN | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ |
| OrtGenAI-RyzenAI | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| OrtGenAI-AMDGPU | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| MLX | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ |
| llama-cpp (Metal) | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ |
| llama-cpp (CUDA) | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ |
| Diffusers | ✅ | ✅ | ❌ | ✅ (CUDA) | ✅ | ❌ |
Prompt Generation
To create prompt templates for benchmarking language models, see docs/LLM_PROMPTS_GENERATION.md. This guide explains how to use the provided generate_prompt.py script, describes all parameters, and provides examples for prompt generation.
For the img2txt (VLM) scenario's config and input files, see docs/VLM_CONFIG.md; tools/vlm/README.md covers downloading the example models and running them.
관련 프로젝트 살펴보기
불러오는 중…