可用于定位昇腾AI模型训练与推理中的性能瓶颈。项目提供命令行采集能力,获取CANN平台与NPU硬件层软硬件性能数据,并解析生成可读分析结果,是上层性能采集与分析的基础能力。【此简介由AI生成】
MindStudio Profiler
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.
⚙️ 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.
🌌 Smart Search
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.
⚖️ Related Information
🔹 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.
🙏 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
