AI Benchmark is an open source python library for evaluating AI performance of various hardware platforms, including CPUs, GPUs and TPUs.
Project description
AI Benchmark Alpha is an open source python library for evaluating AI performance of various hardware platforms, including CPUs, GPUs and TPUs. The benchmark is relying on TensorFlow machine learning library, and is providing a lightweight and accurate solution for assessing inference and training speed for key Deep Learning models.
In total, AI Benchmark consists of 42 tests and 19 sections provided below:
- MobileNet-V2
[classification]
- Inception-V3
[classification]
- Inception-V4
[classification]
- Inception-ResNet-V2
[classification]
- ResNet-V2-50
[classification]
- ResNet-V2-152
[classification]
- VGG-16
[classification]
- SRCNN 9-5-5
[image-to-image mapping]
- VGG-19
[image-to-image mapping]
- ResNet-SRGAN
[image-to-image mapping]
- ResNet-DPED
[image-to-image mapping]
- U-Net
[image-to-image mapping]
- Nvidia-SPADE
[image-to-image mapping]
- ICNet
[image segmentation]
- PSPNet
[image segmentation]
- DeepLab
[image segmentation]
- Pixel-RNN
[inpainting]
- LSTM
[sentence sentiment analysis]
- GNMT
[text translation]
For more information and results, please visit the project website: http://ai-benchmark.com/alpha
Installation Instructions
The benchmark requires TensorFlow machine learning library to be present in your system.
On systems that do not have Nvidia GPUs, run the following commands to install AI Benchmark:
pip install tensorflow
pip install ai-benchmark
If you want to check the performance of Nvidia graphic cards, run the following commands:
pip install tensorflow-gpu
pip install ai-benchmark
Note 1:
If Tensorflow is already installed in your system, you can skip the first command.
Note 2:
For running the benchmark on Nvidia GPUs, NVIDIA CUDA
and cuDNN
libraries should be installed first. Please find detailed instructions here.
Getting Started
To run AI Benchmark, use the following code:
from ai_benchmark import AIBenchmark
benchmark = AIBenchmark()
results = benchmark.run()
Alternatively, on Linux systems you can type ai-benchmark
in the command line to start the tests.
To run inference or training only, use benchmark.run_inference()
or benchmark.run_training()
.
Advanced settings
AIBenchmark(use_CPU=None, verbose_level=1):
use_CPU=
{True, False, None}
: whether to run the tests on CPUs (if tensorflow-gpu is installed)
verbose_level=
{0, 1, 2, 3}
: run tests silently | with short summary | with information about each run | with TF logs
benchmark.run(precision="normal"):
precision=
{"normal", "high"}
: ifhigh
is selected, the benchmark will execute 10 times more runs for each test.
Additional Notes and Requirements
GPU with at least 2GB of RAM is required for running inference tests / 4GB of RAM for training tests.
The benchmark is compatible with both TensorFlow 1.x
and 2.x
versions.
Contacts
Please contact andrey@vision.ee.ethz.ch
for any feedback or information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file new_ai_benchmark-2.7.0-py3-none-any.whl
.
File metadata
- Download URL: new_ai_benchmark-2.7.0-py3-none-any.whl
- Upload date:
- Size: 21.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf1dc6b9356352945bf77a910d968f87eb3da73baeebb42e2b16917b712b3148 |
|
MD5 | cb656b27759d7f5d9511a992558b9c0f |
|
BLAKE2b-256 | 92d2dc67ec7c27085e2da5c140f663cf17efb0eb39347d9f595bd1be55a2d71e |