AI Benchmark Alpha是一个开源的python库,用于评估各种硬件平台的AI性能,包括cpu, gpu和tpu。该基准依赖于TensorFlow机器学习库,并为评估关键深度学习模型的推理和训练速度提供了一个轻量级和准确的解决方案。
我们来看下如何使用
pip install tensorflow-gpu
pip install ai-benchmark需要安装上述两个包,安装完成以后我们需要,给ai-benchmark执行权限
chmod + /usr/local/bin/ai-benchmark我们可以直接启动测试程序
ai-benchmark
也可以编写python脚本来进行测试,内容如下
from ai_benchmark import AIBenchmark
benchmark = AIBenchmark()
results = benchmark.run() #benchmark.run_inference() 或者 benchmark.run_training()如果是单独测试推理或者训练的话,可以使用benchmark.run_inference() 或者 benchmark.run_training()
该测试框架共有42项测试,19个章节
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]
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://sulao.cn/post/931
相关阅读
- 英伟达GPU nvidia-smi常用命令详解
- GPU未开启持久模式导致GPU卡住且dmesg日志中打印NVRM: _threadNodecheckTimeout错误
- linux下gpu降速问题排查
- linux重新构建软raid其中一块盘一直rebuilding的解决方法
- ubuntu22.04安装dcgm和基本用法
- RTX 5090在cuda13.0下gpu-burn编译报错的解决方法
- k8s集群部署gpu-operator支持gpu节点自动发现和gpu上报
- ubuntu22.04算力环境基础配置一键验证脚本
- ubuntu22.04算力环境基础配置一键脚本
- nccl-tests多机多卡测试环境一键编译部署脚本
评论列表