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"}: ifhighis 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.
Metadata
Release files for ai-benchmark 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ai-benchmark-0.1.2.tar.gz | 21.4 MB | Without provenance | Details for ai-benchmark-0.1.2.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ai_benchmark-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for ai_benchmark-0.1.2-py3-none-any.whl |
| ai_benchmark-0.1.2-py2-none-any.whl | Python 2 | none | any | Details for ai_benchmark-0.1.2-py2-none-any.whl |
Total release size: 64.5 MB
Release files / ai-benchmark-0.1.2.tar.gz
| Download URL | ai-benchmark-0.1.2.tar.gz |
|---|---|
| Size | 21.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
759ae01af1f8f1fecacf73b3313c9722d37274f778a0e842feab8c935263580c
|
|
BLAKE2b-256 checksum How to use checksums |
999e6685285db14f407d5061e6022f96400f6fe958a70ba320472178151ded4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.5.3
|
Release files / ai_benchmark-0.1.2-py3-none-any.whl
| Download URL | ai_benchmark-0.1.2-py3-none-any.whl |
|---|---|
| Size | 21.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e97fd54be8e62227a10bf4fad48ba3bf7d116604e11767f0c6307680760dff98
|
|
BLAKE2b-256 checksum How to use checksums |
e0702f4581a0b48ffedcb555251c02476fb19a519335a4da63b4f9795b03716d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.5.3
|
Release files / ai_benchmark-0.1.2-py2-none-any.whl
| Download URL | ai_benchmark-0.1.2-py2-none-any.whl |
|---|---|
| Size | 21.5 MB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
4f26560f2627d4681892525d7bd057d02b7aebbfee2c54527d5e13129601617c
|
|
BLAKE2b-256 checksum How to use checksums |
0a34e1f4dfd4713a01e114d1dbb28e9af164054177b870bc92a7c8ea8e6ce0b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.5.3
|
Security for ai-benchmark 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.