AI开发平台MODELARTS-单模型性能测试工具Mindspore lite benchmark

时间:2024-04-30 18:09:31

单模型性能测试工具Mindspore lite benchmark

可以直接使用benchmark命令测试mindir模型性能,用来对比调优前后性能是否有所提升。

# shell
cd /home_host/work
benchmark --modelFile=diffusers/scripts/mindir_models/text_encoder.mindir --device=Ascend

上述命令中:modelFile指定生成的mindir模型文件;device指定运行推理的设备。其他用法参考benchmark文档

测试结果如下所示:

图1 测试结果
support.huaweicloud.com/bestpractice-modelarts/modelarts_10_2011.html