msProbe User Guide

MindStudio Probe (msProbe) provides full-scenario precision debugging capabilities for Ascend AI processors, covering data collection, precision comparison, visualization, and various advanced debugging functions. The following summarizes the complete function items supported in each scenario by framework and usage scenario. Please select the corresponding function according to your actual usage scenario and refer to the corresponding document for configuration and use.

PyTorch

Function ItemFunction DescriptionReference Document
Data CollectionConfigure through config.json to complete msProbe precision data collection.Data Collection
Hierarchical Visualization Graph ComparisonParse the precision data dumped by the msProbe tool, restore the model graph structure, and implement precision data comparison at each level of the model.Hierarchical Visualization Graph Comparison
Precision ComparisonPerform precision comparison on the precision data dumped by the msProbe tool, and then localize precision problems.Precision Comparison
Training Status MonitoringCollect and aggregate the intermediate values of the network layer, optimizer, and communication operators during model training, to help diagnose anomalies in the computation, communication, and optimizer parts during model training.Training Status Monitoring
Expand More Functions
Function ItemFunction DescriptionReference Document
Pre-training Configuration CheckBefore training or precision comparison, compare the configuration differences between two environments that may affect training precision.Pre-training Configuration Check
Data LoadingLoad the collected module-level input tensors to override the actual model input and isolate the accumulated errors of the preceding sequence.Data Loading
Precision Pre-checkScan all APIs of the training model on the Ascend NPU, and provide diagnosis and analysis of the precision situation.Precision Pre-check
Compilation Precision ComparisonPerform eager and compile module-by-module precision comparison for models with torch.compile enabled, to localize forward, backward, or Loss differences introduced by compilation.Compilation Precision Comparison
checkpoint ComparisonDuring or after training, compare two different checkpoints and evaluate model similarity.checkpoint Comparison
Network-wide First Overflow Node AnalysisIn multi-rank scenarios, find the node where Nan or Inf first appears through dump data.Network-wide First Overflow Node Analysis
Trend VisualizationVisualize the trend of the statistical data from msProbe data collection or training status monitoring from the three dimensions of iteration step, node rank, and Tensor target.Trend Visualization

vLLM Inference Scenario

Sub-scenarioFunction ItemFunction DescriptionReference Document
Eager/Graph ModeData CollectionComplete the msProbe precision data collection operation.Data Collection
Data ComparisonPerform precision comparison on the precision data dumped by the msProbe tool, and then localize precision problems.
Please refer to Hierarchical Visualization Graph Comparison or Precision Comparison
Hierarchical Visualization Graph Comparison
Precision Comparison
torchairData CollectionComplete the precision data collection operation through the set_ge_dump_config interface.Data Collection
Precision ComparisonPerform precision comparison on the precision data dumped by the msProbe tool, and then localize precision problems.Precision Comparison
General ScenarioInference Anomaly DetectionObtain the vLLM inference output and perceive anomaly problems.Inference Anomaly Detection

SGLang Inference Scenario

Function ItemFunction DescriptionReference Document
Data CollectionComplete the msProbe precision data collection operation.Data Collection
Data ComparisonPerform precision comparison on the precision data dumped by the msProbe tool, and then localize precision problems.Hierarchical Visualization Graph Comparison
Precision Comparison

verl Scenario

Function ItemFunction DescriptionReference Document
verl Hyperparameter Comparison and Key Hyperparameter VerificationDuring or after verl training, compare the real hyperparameter configurations collected in the training logs on two different servers, or verify whether the configuration has the same values as the key hyperparameters, helping users efficiently compare real hyperparameter value configurations and accelerating the localization of training precision problems caused by configuration differences.verl Hyperparameter Comparison and Key Hyperparameter Verification
verl Training-Inference Weight Consistency VerificationIn the verl training and inference stages, weights may have precision problems due to factors such as shard conversion, transmission inconsistency, and pointer offset during the transmission and format conversion stages; a full-process consistency verification solution is provided for localization analysis.verl Training-Inference Weight Consistency Verification
Asynchronous Architecture verl Training-Inference Consistency Comparison Data Collectionverl ≥ v0.7.0; comparison data collection that ensures consistent input shape during verl training-inference consistency comparison.Asynchronous Architecture verl Training-Inference Consistency Comparison Data Collection
verl V1 Trainer Training-Inference Consistency Comparison Data Collectionverl 0.9.0.dev; comparison data collection that ensures consistent input shape during verl training-inference consistency comparison.verl V1 Trainer Training-Inference Consistency Comparison Data Collection
FSDP Training Backend verl Training-Inference Consistency Comparison Data Collectionverl < v0.7.0, FSDP training backend; comparison data collection that ensures consistent input shape during verl training-inference consistency comparison.FSDP Training Backend verl Training-Inference Consistency Comparison Data Collection
Megatron Training Backend verl Training-Inference Consistency Comparison Data Collectionverl < v0.7.0, Megatron training backend; comparison data collection that ensures consistent input shape during verl training-inference consistency comparison.Megatron Training Backend verl Training-Inference Consistency Comparison Data Collection
Precision ComparisonPerform precision comparison on the precision data dumped by the msProbe tool, and then localize precision problems.Precision Comparison
Training-Inference Consistency Monitoring: Token-by-Token probs_diff MonitoringTraining-inference consistency monitoring, token-by-token monitoring of probs_diff.Training-Inference Consistency Monitoring: Token-by-Token probs_diff Monitoring
verl Training-Inference InstrumentationInstrument at the end positions of the two stages to replace the stage outputs, and judge whether the stage outputs are abnormal through the training effect after replacement.verl Training-Inference Cross Staking

Slime Scenario

Function ItemFunction DescriptionReference Document
Data CollectionComplete the msProbe precision data collection operation in the training and inference stages.Data Collection
Slime Hyperparameter ComparisonDuring or after Slime training, compare whether the real hyperparameter configurations collected in the training logs on two different servers have the same values, helping users efficiently compare real hyperparameter value configurations and accelerating the localization of training precision problems caused by configuration differences.Slime Hyperparameter Comparison and Key Hyperparameter Verification
Training-Inference Consistency Comparison Data CollectionMegatron training backend, SGLang inference engine; the comparison data collection operation that ensures consistent input shape during training-inference consistency comparison.Slime Framework Training-Inference Consistency Preprocessing and Data Collection

ATB Inference Scenario

Function ItemFunction DescriptionReference Document
Data CollectionBy loading the ATB dump module before the ATB model runs, implement the collection of precision data during the ATB model running.Data Collection
Precision ComparisonPerform precision comparison on the precision data dumped by ATB, and then localize precision problems.Precision Comparison
Data ConversionConvert the precision data dumped by ATB into numpy (.npy) or PyTorch Tensor (.pt) format files.Data Conversion

Offline Model Inference Scenario

Function ItemFunction DescriptionReference Document
Data CollectionComplete the msProbe precision data collection operation.Data Collection
Precision ComparisonProvide a one-click offline model comparison function; you only need to input the model to complete the comparison, without collecting data in advance, and output the result quickly.Precision Comparison
Offline Model Data Precision ComparisonProvide an offline model data comparison function; input the dump data of the offline model for precision comparison.Offline Model Data Precision Comparison
Data ConversionConvert the dump data of the offline model into numpy (.npy) or PyTorch tensor (.pt) format files.Data Conversion

MindSpore Training Scenario

Function ItemFunction DescriptionReference Document
Pre-training Configuration CheckBefore training or precision comparison, compare the configuration differences between two environments that may affect training precision.Pre-training Configuration Check
Data CollectionConfigure through config.json to complete the msProbe precision data collection operation.Data Collection
Precision Pre-checkScan all APIs of the training model on the Ascend NPU, and provide diagnosis and analysis of the precision situation.Precision Pre-check
Hierarchical Visualization Graph ComparisonParse the precision data dumped by the msProbe tool, restore the model graph structure, and implement precision data comparison at each level of the model.Hierarchical Visualization Graph Comparison
Precision ComparisonPerform precision comparison on the precision data dumped by the msProbe tool, and then localize precision problems.Precision Comparison
Training Status MonitoringCollect and aggregate the intermediate values of the network layer, optimizer, and communication operators during model training, to help diagnose anomalies in the computation, communication, and optimizer parts during model training.Training Status Monitoring
Checkpoint ComparisonDuring or after training, compare two different checkpoints and evaluate model similarity.Checkpoint Comparison
Trend VisualizationVisualize the trend of the statistical data from msProbe data collection or training status monitoring from the three dimensions of iteration step, node rank, and Tensor target.Trend Visualization

MSAdapter Scenario

Function ItemFunction DescriptionReference Document
Data CollectionConfigure through config.json to complete the msProbe precision data collection operation.Data Collection
checkpoint ComparisonDuring or after training, compare two different checkpoints and evaluate model similarity.Checkpoint Comparison

📚 Supplementary Materials

🔹 Precision Data Collection Baseline Report for the PyTorch Scenario

🔹 Precision Pre-check Baseline Report for the MindSpore Scenario

🔹 Precision Data Collection Baseline Report for the MindSpore Scenario

🔹 Standard Performance Baseline Report of the Training Status Monitoring Tool