MindStudio-Profiler:基于昇腾 CANN 生态的 AI 性能分析工具项目

可用于定位昇腾AI模型训练与推理中的性能瓶颈。项目提供命令行采集能力,获取CANN平台与NPU硬件层软硬件性能数据,并解析生成可读分析结果,是上层性能采集与分析的基础能力。【此简介由AI生成】

Branch12Tags108

MindStudio Profiler

Ascend Profile Data Collection Tool

Quick Start AI Q&A DeepWiki AI Q&A ZRead Exact Search Ascend Community Report an Issue

English | 简体中文

✨ What's New

🔹 [2025.12.30]: Initial release of the MindStudio Profiler project.

ℹ️ Overview

MindStudio Profiler (msProf) is a performance analysis tool for AI training and inference scenarios. It supports the collection and parsing of software and hardware profile data from the CANN layer and the Ascend AI Processor NPU hardware layer, helping users identify performance issues during model training or inference. msProf also provides the foundational capability for other profiling collection interfaces, and many upper-layer performance collection and analysis capabilities rely on msProf for underlying data collection.

Architecture diagram

⚙️ Features

Feature Description Documentation Source Code Repository
Profile data collection Collects software and hardware profile data from the CANN platform and Ascend AI Processors using the msProf command. Profile Data Collection msprof
Profile data parsing Parses the collected profile data using the msProf tool to generate readable analysis results. Profile Data Parsing analysis

🚀 Quick Start

10-minute hands-on experience Using ResNet50 training as an example, this tutorial covers the complete workflow of data collection, parsing and export, and performance analysis. Click to get started: msProf Quick Start.

Quick command-line reference If you are already familiar with the workflow, you can directly run the collection command. The general syntax is msprof --output=<output_dir> --application="<launch_command>". Examples:

# Example 1: Collect data for a Python training task
msprof --output=./output --application="python3 train.py"
# Example 2: Collect data for a task launched by a shell script
msprof --output=./output --application="./run_standalone_train.sh"

📦 Installation Guide

msProf is included in the CANN Toolkit development suite. You are advised to download and install the CANN package directly. For details, see CANN Quick Installation.

To install msProf through building from source code, see msProf Installation Guide.

📘 User Guide

For detailed usage instructions, see msProf User Guide.

💡 Typical Cases

To understand and master the tool through typical problem scenarios, see msProf Typical Cases.

❓ FAQ

For common questions and solutions, see msProf FAQ.

To improve the efficiency of documentation lookup, we provide several efficient search methods:

🔹 AI Q&A (DeepWiki): Natural language Q&A for quickly understanding project architecture and module relationships.
🔹 AI Q&A (ZRead): A better Chinese Q&A experience for precisely locating feature usage and details.
🔹 Exact Search (ReadTheDocs): Full-text keyword search for directly accessing information about APIs, parameters, error messages, and more.

🛠️ Contributing Guide

We welcome contributions to the project. See Contributing Guide.

🔹 Release Notes
🔹 License Statement
🔹 Security Statement
🔹 Disclaimer

🤝 Suggestions and Feedback

We welcome everyone to contribute to the community. If you have any questions or suggestions, please submit an issue, and we will respond as soon as possible. Thank you for your support.

Instant Messaging (WeChat Group) Official News (Official Account) In-Depth Support (Assistant / Forum)

Scan to join the technical discussion group

Scan to follow the official account
Scan the QR code to join the group and follow the official account for the fastest way to connect with MindStudio users and developers:
Ask questions: Discuss technical issues with community members in real time
Stay updated: Get the latest version releases and feature update notifications firsthand
Share experience: Exchange best practices and practical insights with fellow developers

More support channels:
👉 Ascend Assistant: WeChat
👉 Ascend Forum: Website

🙏 Acknowledgments

This tool is contributed by the following Huawei department:

🔹 Ascend Computing MindStudio Development Department

Thank you to everyone in the community for your PRs. We warmly welcome your contributions.

Introduction

可用于定位昇腾AI模型训练与推理中的性能瓶颈。项目提供命令行采集能力,获取CANN平台与NPU硬件层软硬件性能数据,并解析生成可读分析结果,是上层性能采集与分析的基础能力。【此简介由AI生成】

Customize your domain