mindstudio-probe 1.2.1__tar.gz → 1.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (439) hide show
  1. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/PKG-INFO +3 -3
  2. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/mindstudio_probe.egg-info/PKG-INFO +3 -3
  3. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/mindstudio_probe.egg-info/SOURCES.txt +28 -10
  4. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/mindstudio_probe.egg-info/requires.txt +2 -2
  5. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/README.md +27 -22
  6. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/common/const.py +129 -60
  7. mindstudio_probe-1.3.0/msprobe/core/common/decorator.py +50 -0
  8. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/common/exceptions.py +3 -1
  9. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/common/file_utils.py +25 -2
  10. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/common/inplace_ops.yaml +1 -0
  11. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/common/utils.py +43 -33
  12. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/compare/acc_compare.py +43 -74
  13. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/compare/check.py +2 -6
  14. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/compare/highlight.py +2 -0
  15. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/compare/layer_mapping/data_scope_parser.py +1 -1
  16. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/compare/layer_mapping/layer_mapping.py +2 -1
  17. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/compare/merge_result/merge_result.py +16 -9
  18. mindstudio_probe-1.3.0/msprobe/core/compare/merge_result/utils.py +81 -0
  19. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/compare/multiprocessing_compute.py +19 -12
  20. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/compare/npy_compare.py +30 -12
  21. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/compare/utils.py +30 -10
  22. mindstudio_probe-1.3.0/msprobe/core/data_dump/api_registry.py +176 -0
  23. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/data_dump/data_collector.py +58 -13
  24. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/data_dump/data_processor/base.py +94 -10
  25. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/data_dump/data_processor/factory.py +3 -0
  26. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/data_dump/data_processor/mindspore_processor.py +33 -33
  27. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/data_dump/data_processor/pytorch_processor.py +99 -18
  28. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/data_dump/json_writer.py +61 -40
  29. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/grad_probe/constant.py +1 -0
  30. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/grad_probe/grad_compare.py +1 -1
  31. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/overflow_check/abnormal_scene.py +2 -0
  32. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/01.installation.md +27 -1
  33. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/02.config_introduction.md +27 -23
  34. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/03.config_examples.md +24 -0
  35. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/05.data_dump_PyTorch.md +103 -16
  36. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/06.data_dump_MindSpore.md +76 -32
  37. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/07.accuracy_checker_PyTorch.md +11 -1
  38. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/08.accuracy_checker_online_PyTorch.md +3 -1
  39. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/09.accuracy_checker_MindSpore.md +5 -3
  40. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/10.accuracy_compare_PyTorch.md +59 -33
  41. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/11.accuracy_compare_MindSpore.md +40 -16
  42. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/12.overflow_check_PyTorch.md +3 -1
  43. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/13.overflow_check_MindSpore.md +4 -2
  44. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/14.data_parse_PyTorch.md +1 -7
  45. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/18.online_dispatch.md +1 -1
  46. mindstudio_probe-1.3.0/msprobe/docs/19.monitor.md +620 -0
  47. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/21.visualization_PyTorch.md +42 -13
  48. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/22.visualization_MindSpore.md +43 -13
  49. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/23.generate_operator_PyTorch.md +9 -9
  50. mindstudio_probe-1.3.0/msprobe/docs/27.dump_json_instruction.md +795 -0
  51. mindstudio_probe-1.3.0/msprobe/docs/28.debugger_save_instruction.md +94 -0
  52. mindstudio_probe-1.3.0/msprobe/docs/28.kernel_dump_MindSpore.md +69 -0
  53. mindstudio_probe-1.3.0/msprobe/docs/29.data_dump_MSAdapter.md +229 -0
  54. mindstudio_probe-1.3.0/msprobe/docs/30.overflow_check_MSAdapter.md +31 -0
  55. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/FAQ.md +3 -11
  56. mindstudio_probe-1.3.0/msprobe/docs/img/compare_result.png +0 -0
  57. mindstudio_probe-1.3.0/msprobe/docs/img/merge_result.png +0 -0
  58. mindstudio_probe-1.3.0/msprobe/docs/img/monitor/step_count_per_record.png +0 -0
  59. mindstudio_probe-1.3.0/msprobe/docs/img/visualization/vis_browser_1.png +0 -0
  60. mindstudio_probe-1.3.0/msprobe/docs/img/visualization/vis_match_info.png +0 -0
  61. mindstudio_probe-1.3.0/msprobe/docs/img/visualization/vis_precision_info.png +0 -0
  62. mindstudio_probe-1.3.0/msprobe/docs/img/visualization/vis_search_info.png +0 -0
  63. mindstudio_probe-1.3.0/msprobe/docs/img/visualization/vis_show_info.png +0 -0
  64. mindstudio_probe-1.3.0/msprobe/docs/img/visualization/vis_showcase.png +0 -0
  65. mindstudio_probe-1.3.0/msprobe/docs/img/visualization/vis_unmatch_info.png +0 -0
  66. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/__init__.py +4 -2
  67. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/api_accuracy_checker/api_accuracy_checker.py +32 -7
  68. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/api_accuracy_checker/api_runner.py +70 -22
  69. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/api_accuracy_checker/base_compare_algorithm.py +2 -1
  70. mindstudio_probe-1.3.0/msprobe/mindspore/api_accuracy_checker/bench_functions/flash_attention_score.py +602 -0
  71. mindstudio_probe-1.3.0/msprobe/mindspore/api_accuracy_checker/bench_functions/fusion_operator.py +41 -0
  72. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/api_accuracy_checker/compute_element.py +47 -1
  73. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/api_accuracy_checker/data_manager.py +2 -1
  74. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/api_accuracy_checker/multi_api_accuracy_checker.py +2 -1
  75. mindstudio_probe-1.3.0/msprobe/mindspore/api_accuracy_checker/torch_mindtorch_importer.py +130 -0
  76. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/api_accuracy_checker/type_mapping.py +24 -1
  77. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/api_accuracy_checker/utils.py +6 -1
  78. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/common/const.py +61 -0
  79. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/common/utils.py +48 -18
  80. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/compare/ms_compare.py +27 -19
  81. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/compare/ms_graph_compare.py +6 -5
  82. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/debugger/debugger_config.py +31 -6
  83. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/debugger/precision_debugger.py +45 -14
  84. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/dump/dump_tool_factory.py +5 -3
  85. mindstudio_probe-1.3.0/msprobe/mindspore/dump/hook_cell/api_register.py +142 -0
  86. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/dump/hook_cell/hook_cell.py +9 -10
  87. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/dump/hook_cell/support_wrap_ops.yaml +24 -26
  88. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/dump/jit_dump.py +21 -15
  89. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/dym_loader/hook_dynamic_loader.cc +22 -56
  90. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/dym_loader/hook_dynamic_loader.h +0 -1
  91. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/api_pynative_self_check.py +10 -6
  92. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/perturbation/perturbation_factory.py +4 -2
  93. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/self_check_tool_factory.py +6 -3
  94. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/grad_probe/global_context.py +2 -0
  95. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/grad_probe/grad_analyzer.py +2 -1
  96. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/grad_probe/hook.py +2 -4
  97. mindstudio_probe-1.3.0/msprobe/mindspore/monitor/anomaly_detect.py +404 -0
  98. mindstudio_probe-1.3.0/msprobe/mindspore/monitor/distributed/distributed_ops.yaml +15 -0
  99. mindstudio_probe-1.3.0/msprobe/mindspore/monitor/distributed/stack_blacklist.yaml +5 -0
  100. mindstudio_probe-1.3.0/msprobe/mindspore/monitor/distributed/wrap_distributed.py +300 -0
  101. mindstudio_probe-1.3.0/msprobe/mindspore/monitor/features.py +63 -0
  102. mindstudio_probe-1.3.0/msprobe/mindspore/monitor/module_hook.py +873 -0
  103. mindstudio_probe-1.3.0/msprobe/mindspore/monitor/module_spec_verifier.py +94 -0
  104. mindstudio_probe-1.3.0/msprobe/mindspore/monitor/utils.py +309 -0
  105. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/ms_config.py +8 -2
  106. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/overflow_check/overflow_check_tool_factory.py +5 -3
  107. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/service.py +114 -34
  108. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/__init__.py +0 -1
  109. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/compare/api_precision_compare.py +3 -6
  110. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/generate_op_script/op_generator.py +12 -7
  111. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/generate_op_script/operator_replication.template +2 -2
  112. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/run_ut/multi_run_ut.py +4 -5
  113. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/run_ut/run_overflow_check.py +5 -5
  114. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/run_ut/run_ut.py +25 -6
  115. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/run_ut/run_ut_utils.py +28 -19
  116. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/attl.py +3 -1
  117. mindstudio_probe-1.3.0/msprobe/pytorch/bench_functions/apply_adam.py +215 -0
  118. mindstudio_probe-1.3.0/msprobe/pytorch/bench_functions/group_norm_silu.py +27 -0
  119. mindstudio_probe-1.3.0/msprobe/pytorch/bench_functions/mish.py +21 -0
  120. mindstudio_probe-1.3.0/msprobe/pytorch/bench_functions/moe_gating_top_k_softmax.py +50 -0
  121. mindstudio_probe-1.2.1/msprobe/pytorch/parse.py → mindstudio_probe-1.3.0/msprobe/pytorch/bench_functions/sort_v2.py +6 -4
  122. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/common/utils.py +97 -4
  123. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/debugger/debugger_config.py +19 -9
  124. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/debugger/precision_debugger.py +24 -1
  125. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/dump/module_dump/module_dump.py +4 -3
  126. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/dump/module_dump/module_processer.py +21 -35
  127. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/common/utils.py +1 -1
  128. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/compare/single_benchmark.py +1 -1
  129. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/add_noise.py +3 -3
  130. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/bit_noise.py +3 -3
  131. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/change_value.py +1 -1
  132. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/improve_precision.py +1 -1
  133. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/result_handlers/check_handler.py +1 -1
  134. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/function_factory.py +8 -2
  135. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/grad_probe/grad_monitor.py +2 -2
  136. mindstudio_probe-1.3.0/msprobe/pytorch/hook_module/api_register.py +131 -0
  137. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/hook_module/hook_module.py +19 -14
  138. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/hook_module/register_optimizer_hook.py +2 -1
  139. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/hook_module/support_wrap_ops.yaml +173 -75
  140. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/monitor/anomaly_detect.py +14 -29
  141. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/monitor/csv2tb.py +18 -14
  142. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/monitor/distributed/wrap_distributed.py +8 -2
  143. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/monitor/module_hook.py +238 -193
  144. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/monitor/module_metric.py +9 -6
  145. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/monitor/optimizer_collect.py +100 -67
  146. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/monitor/unittest/test_monitor.py +1 -1
  147. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/monitor/utils.py +76 -44
  148. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/online_dispatch/compare.py +0 -2
  149. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/online_dispatch/dispatch.py +9 -0
  150. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/online_dispatch/dump_compare.py +3 -0
  151. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/online_dispatch/utils.py +3 -0
  152. mindstudio_probe-1.3.0/msprobe/pytorch/parse_tool/lib/__init__.py +0 -0
  153. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/parse_tool/lib/interactive_cli.py +1 -6
  154. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/parse_tool/lib/utils.py +2 -1
  155. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/pt_config.py +30 -29
  156. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/service.py +114 -32
  157. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/visualization/builder/graph_builder.py +75 -10
  158. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/visualization/builder/msprobe_adapter.py +7 -6
  159. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/visualization/compare/graph_comparator.py +42 -38
  160. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/visualization/compare/mode_adapter.py +0 -19
  161. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/visualization/graph/base_node.py +11 -3
  162. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/visualization/graph/distributed_analyzer.py +71 -3
  163. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/visualization/graph/graph.py +0 -11
  164. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/visualization/graph/node_op.py +4 -3
  165. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/visualization/graph_service.py +4 -5
  166. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/visualization/utils.py +12 -35
  167. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/setup.py +3 -3
  168. mindstudio_probe-1.2.1/msprobe/docs/19.monitor.md +0 -561
  169. mindstudio_probe-1.2.1/msprobe/docs/27.dump_json_instruction.md +0 -521
  170. mindstudio_probe-1.2.1/msprobe/docs/img/compare_result.png +0 -0
  171. mindstudio_probe-1.2.1/msprobe/docs/img/merge_result.png +0 -0
  172. mindstudio_probe-1.2.1/msprobe/docs/img/visualization/vis_browser_1.png +0 -0
  173. mindstudio_probe-1.2.1/msprobe/docs/img/visualization/vis_precision_info.png +0 -0
  174. mindstudio_probe-1.2.1/msprobe/docs/img/visualization/vis_search_info.png +0 -0
  175. mindstudio_probe-1.2.1/msprobe/docs/img/visualization/vis_show_info.png +0 -0
  176. mindstudio_probe-1.2.1/msprobe/docs/img/visualization/vis_showcase.png +0 -0
  177. mindstudio_probe-1.2.1/msprobe/docs/img/visualization/vis_unmatch_info.png +0 -0
  178. mindstudio_probe-1.2.1/msprobe/mindspore/dump/hook_cell/api_registry.py +0 -205
  179. mindstudio_probe-1.2.1/msprobe/mindspore/dump/hook_cell/wrap_api.py +0 -212
  180. mindstudio_probe-1.2.1/msprobe/pytorch/hook_module/api_registry.py +0 -166
  181. mindstudio_probe-1.2.1/msprobe/pytorch/hook_module/wrap_distributed.py +0 -75
  182. mindstudio_probe-1.2.1/msprobe/pytorch/hook_module/wrap_functional.py +0 -66
  183. mindstudio_probe-1.2.1/msprobe/pytorch/hook_module/wrap_npu_custom.py +0 -85
  184. mindstudio_probe-1.2.1/msprobe/pytorch/hook_module/wrap_tensor.py +0 -69
  185. mindstudio_probe-1.2.1/msprobe/pytorch/hook_module/wrap_torch.py +0 -84
  186. mindstudio_probe-1.2.1/msprobe/pytorch/hook_module/wrap_vf.py +0 -60
  187. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/LICENSE +0 -0
  188. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/MANIFEST.in +0 -0
  189. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/mindstudio_probe.egg-info/dependency_links.txt +0 -0
  190. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/mindstudio_probe.egg-info/entry_points.txt +0 -0
  191. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/mindstudio_probe.egg-info/not-zip-safe +0 -0
  192. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/mindstudio_probe.egg-info/top_level.txt +0 -0
  193. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/CMakeLists.txt +0 -0
  194. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/__init__.py +0 -0
  195. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/config.json +0 -0
  196. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/__init__.py +0 -0
  197. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/advisor/advisor.py +0 -0
  198. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/advisor/advisor_const.py +0 -0
  199. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/advisor/advisor_result.py +0 -0
  200. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/common/inplace_op_checker.py +0 -0
  201. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/common/log.py +0 -0
  202. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/common_config.py +0 -0
  203. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/compare/compare_cli.py +0 -0
  204. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/compare/layer_mapping/__init__.py +0 -0
  205. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/compare/layer_mapping/postprocess_pass.py +0 -0
  206. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/compare/merge_result/merge_result_cli.py +0 -0
  207. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/data_dump/scope.py +0 -0
  208. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/grad_probe/__init__.py +0 -0
  209. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/grad_probe/utils.py +0 -0
  210. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/overflow_check/api_info.py +0 -0
  211. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/overflow_check/checker.py +0 -0
  212. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/overflow_check/filter.py +0 -0
  213. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/overflow_check/ignore_rules.yaml +0 -0
  214. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/overflow_check/level.py +0 -0
  215. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/core/overflow_check/utils.py +0 -0
  216. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/04.kernel_dump_PyTorch.md +0 -0
  217. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/15.free_benchmarking_PyTorch.md +0 -0
  218. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/16.free_benchmarking_MindSpore.md +0 -0
  219. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/17.grad_probe.md +0 -0
  220. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/20.monitor_performance_baseline.md +0 -0
  221. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/24.code_mapping_Mindspore.md +0 -0
  222. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/25.tool_function_introduction.md +0 -0
  223. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/26.data_dump_PyTorch_baseline.md +0 -0
  224. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/S02.report_free_benchmarking_validation_performance_baseline.md +0 -0
  225. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/accuracy_checker_MindSpore/accuracy_checker_MindSpore_baseline.md +0 -0
  226. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/data_dump_MindSpore/data_dump_MindSpore_baseline.md +0 -0
  227. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/data_dump_MindSpore/dynamic_graph_quick_start_example.md +0 -0
  228. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/BLOOM-7B_1.png +0 -0
  229. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/BLOOM-7B_2.png +0 -0
  230. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/BLOOM-7B_3.png +0 -0
  231. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/BLOOM-7B_4.png +0 -0
  232. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/GPT-3_1.png +0 -0
  233. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/GPT-3_2.png +0 -0
  234. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/GPT-3_3.png +0 -0
  235. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/GPT-3_4.png +0 -0
  236. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/GPT-3_5.png +0 -0
  237. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/GPT-3_6.png +0 -0
  238. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/GPT-3_7.png +0 -0
  239. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/GPT-3_8.png +0 -0
  240. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/YOLOV5S_1.png +0 -0
  241. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/YOLOV5S_2.png +0 -0
  242. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/accuracy_checking_details.png +0 -0
  243. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/accuracy_checking_result.png +0 -0
  244. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/api_precision_compare_details.png +0 -0
  245. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/api_precision_compare_result.png +0 -0
  246. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/auto_analyze_log.png +0 -0
  247. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/compare_result_pkl.png +0 -0
  248. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/compare_result_pkl_md5.png.png +0 -0
  249. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/cpu_info.png +0 -0
  250. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/free_benchmark.png +0 -0
  251. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/free_benchmark_framework.png +0 -0
  252. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/grad_probe_image-1.png +0 -0
  253. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/grad_probe_image-2.png +0 -0
  254. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/grad_probe_image-3.png +0 -0
  255. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/grad_probe_image-4.png +0 -0
  256. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/grad_probe_image.png +0 -0
  257. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/module_compare.png +0 -0
  258. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/monitor/cpu_info.png +0 -0
  259. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/ms_dump.png +0 -0
  260. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/ms_layer.png +0 -0
  261. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/pt_dump.png +0 -0
  262. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/visualization/fuzzy_match_ms.png +0 -0
  263. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/visualization/fuzzy_match_pt.png +0 -0
  264. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/visualization/tensorboard_1.png +0 -0
  265. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/visualization/tensorboard_2.png +0 -0
  266. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/img/visualization/vis_browser_2.png +0 -0
  267. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/visualization/GPTModel.png +0 -0
  268. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/visualization/ParallelMLP.png +0 -0
  269. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/visualization/layer_mapping_example.md +0 -0
  270. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/visualization/mapping.png +0 -0
  271. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/visualization/mapping1.png +0 -0
  272. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/visualization/module_name.png +0 -0
  273. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/visualization/module_name1.png +0 -0
  274. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/visualization/no_mapping.png +0 -0
  275. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/visualization/no_mapping1.png +0 -0
  276. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/visualization/no_mapping_analyze.png +0 -0
  277. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/docs/visualization/top_layer.png +0 -0
  278. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/api_accuracy_checker/__init__.py +0 -0
  279. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/api_accuracy_checker/api_info.py +0 -0
  280. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/api_accuracy_checker/checker_support_api.yaml +0 -0
  281. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/api_accuracy_checker/cmd_parser.py +0 -0
  282. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/api_accuracy_checker/main.py +0 -0
  283. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/api_accuracy_checker/multi_data_manager.py +0 -0
  284. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/cell_processor.py +0 -0
  285. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/code_mapping/__init__.py +0 -0
  286. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/code_mapping/bind.py +0 -0
  287. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/code_mapping/cmd_parser.py +0 -0
  288. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/code_mapping/graph.py +0 -0
  289. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/code_mapping/graph_parser.py +0 -0
  290. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/code_mapping/main.py +0 -0
  291. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/code_mapping/processor.py +0 -0
  292. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/common/log.py +0 -0
  293. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/compare/distributed_compare.py +0 -0
  294. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/compare/ms_to_pt_api.yaml +0 -0
  295. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/debugger/__init__.py +0 -0
  296. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/dump/__init__.py +0 -0
  297. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/dump/hook_cell/primitive_hooks.py +0 -0
  298. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/dump/kernel_dump/kernel_config.py +0 -0
  299. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/dump/kernel_graph_dump.py +0 -0
  300. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/dump/kernel_kbyk_dump.py +0 -0
  301. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/__init__.py +0 -0
  302. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/common/__init__.py +0 -0
  303. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/common/config.py +0 -0
  304. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/common/handler_params.py +0 -0
  305. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/common/utils.py +0 -0
  306. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/data/support_wrap_ops.yaml +0 -0
  307. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/handler/__init__.py +0 -0
  308. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/handler/base_handler.py +0 -0
  309. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/handler/check_handler.py +0 -0
  310. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/handler/fix_handler.py +0 -0
  311. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/handler/handler_factory.py +0 -0
  312. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/perturbation/add_noise.py +0 -0
  313. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/perturbation/base_perturbation.py +0 -0
  314. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/perturbation/bit_noise.py +0 -0
  315. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/perturbation/exchange_value.py +0 -0
  316. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/perturbation/improve_precision.py +0 -0
  317. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/free_benchmark/perturbation/no_change.py +0 -0
  318. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/grad_probe/__init__.py +0 -0
  319. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/grad_probe/grad_monitor.py +0 -0
  320. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/grad_probe/grad_stat_csv.py +0 -0
  321. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/grad_probe/utils.py +0 -0
  322. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/mindtorch/__init__.py +0 -0
  323. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/mindtorch/mindtorch_adaptor.py +0 -0
  324. {mindstudio_probe-1.2.1/msprobe/mindspore/overflow_check → mindstudio_probe-1.3.0/msprobe/mindspore/monitor/distributed}/__init__.py +0 -0
  325. {mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker → mindstudio_probe-1.3.0/msprobe/mindspore/overflow_check}/__init__.py +0 -0
  326. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/overflow_check/kernel_graph_overflow_check.py +0 -0
  327. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/runtime.py +0 -0
  328. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/mindspore/task_handler_factory.py +0 -0
  329. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/msprobe.py +0 -0
  330. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/.keep +0 -0
  331. {mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/common → mindstudio_probe-1.3.0/msprobe/pytorch/api_accuracy_checker}/__init__.py +0 -0
  332. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/common/.keep +0 -0
  333. {mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/compare → mindstudio_probe-1.3.0/msprobe/pytorch/api_accuracy_checker/common}/__init__.py +0 -0
  334. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/common/config.py +0 -0
  335. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/common/utils.py +0 -0
  336. {mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/run_ut → mindstudio_probe-1.3.0/msprobe/pytorch/api_accuracy_checker/compare}/__init__.py +0 -0
  337. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/compare/algorithm.py +0 -0
  338. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/compare/api_precision_standard.yaml +0 -0
  339. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/compare/api_precision_threshold.yaml +0 -0
  340. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/compare/compare.py +0 -0
  341. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/compare/compare_column.py +0 -0
  342. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/compare/compare_input.py +0 -0
  343. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/compare/compare_utils.py +0 -0
  344. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/config.yaml +0 -0
  345. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/generate_op_script/config_op.json +0 -0
  346. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/precision_standard/absolute_threshold.py +0 -0
  347. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/precision_standard/accumulative_error_compare.py +0 -0
  348. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/precision_standard/base_standard.py +0 -0
  349. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/precision_standard/benchmark_compare.py +0 -0
  350. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/precision_standard/binary_consistency.py +0 -0
  351. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/precision_standard/standard_config.py +0 -0
  352. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/precision_standard/standard_register.py +0 -0
  353. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/precision_standard/thousandth_standard.py +0 -0
  354. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/precision_standard/ulp_compare.py +0 -0
  355. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/run_ut/.keep +0 -0
  356. {mindstudio_probe-1.2.1/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer → mindstudio_probe-1.3.0/msprobe/pytorch/api_accuracy_checker/run_ut}/__init__.py +0 -0
  357. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/run_ut/data_generate.py +0 -0
  358. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/run_ut/torch_ut_setting.json +0 -0
  359. {mindstudio_probe-1.2.1/msprobe/pytorch/debugger → mindstudio_probe-1.3.0/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer}/__init__.py +0 -0
  360. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/client.py +0 -0
  361. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/device_dispatch.py +0 -0
  362. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/dump_dispatch.py +0 -0
  363. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/server.py +0 -0
  364. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/torch_ops_config.yaml +0 -0
  365. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/utils.py +0 -0
  366. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/bench_functions/__init__.py +0 -0
  367. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/bench_functions/apply_adam_w.py +0 -0
  368. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/bench_functions/confusion_transpose.py +0 -0
  369. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/bench_functions/fast_gelu.py +0 -0
  370. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/bench_functions/layer_norm_eval.py +0 -0
  371. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/bench_functions/linear.py +0 -0
  372. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/bench_functions/matmul_backward.py +0 -0
  373. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/bench_functions/npu_fusion_attention.py +0 -0
  374. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/bench_functions/rms_norm.py +0 -0
  375. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/bench_functions/rotary_mul.py +0 -0
  376. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/bench_functions/scaled_mask_softmax.py +0 -0
  377. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/bench_functions/swiglu.py +0 -0
  378. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/common/__init__.py +0 -0
  379. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/common/compare_script.template +0 -0
  380. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/common/log.py +0 -0
  381. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/common/parse_json.py +0 -0
  382. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/compare/distributed_compare.py +0 -0
  383. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/compare/mapping.yaml +0 -0
  384. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/compare/match.py +0 -0
  385. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/compare/pt_compare.py +0 -0
  386. {mindstudio_probe-1.2.1/msprobe/pytorch/dump/module_dump → mindstudio_probe-1.3.0/msprobe/pytorch/debugger}/__init__.py +0 -0
  387. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/dump/kernel_dump/kernel_config.py +0 -0
  388. {mindstudio_probe-1.2.1/msprobe/pytorch/free_benchmark/common → mindstudio_probe-1.3.0/msprobe/pytorch/dump/module_dump}/__init__.py +0 -0
  389. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/__init__.py +0 -0
  390. {mindstudio_probe-1.2.1/msprobe/pytorch/free_benchmark/perturbed_layers → mindstudio_probe-1.3.0/msprobe/pytorch/free_benchmark/common}/__init__.py +0 -0
  391. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/common/constant.py +0 -0
  392. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/common/counter.py +0 -0
  393. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/common/enums.py +0 -0
  394. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/common/params.py +0 -0
  395. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/compare/grad_saver.py +0 -0
  396. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/main.py +0 -0
  397. {mindstudio_probe-1.2.1/msprobe/pytorch/free_benchmark/perturbed_layers/npu → mindstudio_probe-1.3.0/msprobe/pytorch/free_benchmark/perturbed_layers}/__init__.py +0 -0
  398. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/perturbed_layers/base_layer.py +0 -0
  399. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/perturbed_layers/layer_factory.py +0 -0
  400. {mindstudio_probe-1.2.1/msprobe/pytorch/free_benchmark/result_handlers → mindstudio_probe-1.3.0/msprobe/pytorch/free_benchmark/perturbed_layers/npu}/__init__.py +0 -0
  401. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/no_change.py +0 -0
  402. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/npu_base_layser.py +0 -0
  403. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/perturbed_layers/run_cpu.py +0 -0
  404. {mindstudio_probe-1.2.1/msprobe/pytorch/grad_probe → mindstudio_probe-1.3.0/msprobe/pytorch/free_benchmark/result_handlers}/__init__.py +0 -0
  405. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/result_handlers/base_handler.py +0 -0
  406. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/result_handlers/fix_handler.py +0 -0
  407. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/result_handlers/handler_factory.py +0 -0
  408. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/free_benchmark/result_handlers/preheat_handler.py +0 -0
  409. {mindstudio_probe-1.2.1/msprobe/pytorch/monitor → mindstudio_probe-1.3.0/msprobe/pytorch/grad_probe}/__init__.py +0 -0
  410. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/grad_probe/grad_stat_csv.py +0 -0
  411. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/hook_module/__init__.py +0 -0
  412. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/hook_module/utils.py +0 -0
  413. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/hook_module/wrap_aten.py +0 -0
  414. {mindstudio_probe-1.2.1/msprobe/pytorch/monitor/distributed → mindstudio_probe-1.3.0/msprobe/pytorch/monitor}/__init__.py +0 -0
  415. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/monitor/anomaly_analyse.py +0 -0
  416. {mindstudio_probe-1.2.1/msprobe/pytorch/monitor/unittest → mindstudio_probe-1.3.0/msprobe/pytorch/monitor/distributed}/__init__.py +0 -0
  417. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/monitor/distributed/distributed_ops.yaml +0 -0
  418. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/monitor/distributed/stack_blacklist.yaml +0 -0
  419. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/monitor/features.py +0 -0
  420. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/monitor/module_spec_verifier.py +0 -0
  421. {mindstudio_probe-1.2.1/msprobe/pytorch/parse_tool → mindstudio_probe-1.3.0/msprobe/pytorch/monitor/unittest}/__init__.py +0 -0
  422. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/monitor/visualizer.py +0 -0
  423. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/online_dispatch/__init__.py +0 -0
  424. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/online_dispatch/single_compare.py +0 -0
  425. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/online_dispatch/torch_ops_config.yaml +0 -0
  426. {mindstudio_probe-1.2.1/msprobe/pytorch/parse_tool/lib → mindstudio_probe-1.3.0/msprobe/pytorch/parse_tool}/__init__.py +0 -0
  427. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/parse_tool/cli.py +0 -0
  428. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/parse_tool/lib/compare.py +0 -0
  429. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/parse_tool/lib/config.py +0 -0
  430. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/parse_tool/lib/file_desc.py +0 -0
  431. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/parse_tool/lib/parse_exception.py +0 -0
  432. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/parse_tool/lib/parse_tool.py +0 -0
  433. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/pytorch/parse_tool/lib/visualization.py +0 -0
  434. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/visualization/__init__.py +0 -0
  435. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/visualization/builder/__init__.py +0 -0
  436. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/visualization/compare/__init__.py +0 -0
  437. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/visualization/graph/__init__.py +0 -0
  438. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/msprobe/visualization/graph/node_colors.py +0 -0
  439. {mindstudio_probe-1.2.1 → mindstudio_probe-1.3.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mindstudio-probe
3
- Version: 1.2.1
3
+ Version: 1.3.0
4
4
  Summary: Ascend Probe Utils
5
5
  Home-page: https://gitee.com/ascend/mstt/tree/master/debug/accuracy_tools/msprobe
6
6
  Author: Ascend Team
@@ -22,12 +22,12 @@ Requires-Python: >=3.6.2
22
22
  License-File: LICENSE
23
23
  Requires-Dist: wheel
24
24
  Requires-Dist: einops
25
- Requires-Dist: numpy<2.0
25
+ Requires-Dist: numpy<2.0,>=1.23.0
26
26
  Requires-Dist: pandas<2.1,>=1.3.5
27
27
  Requires-Dist: pyyaml
28
28
  Requires-Dist: rich
29
29
  Requires-Dist: tqdm
30
- Requires-Dist: openpyxl
30
+ Requires-Dist: openpyxl>=3.0.6
31
31
  Requires-Dist: pyopenssl
32
32
  Requires-Dist: twisted
33
33
  Requires-Dist: matplotlib
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mindstudio-probe
3
- Version: 1.2.1
3
+ Version: 1.3.0
4
4
  Summary: Ascend Probe Utils
5
5
  Home-page: https://gitee.com/ascend/mstt/tree/master/debug/accuracy_tools/msprobe
6
6
  Author: Ascend Team
@@ -22,12 +22,12 @@ Requires-Python: >=3.6.2
22
22
  License-File: LICENSE
23
23
  Requires-Dist: wheel
24
24
  Requires-Dist: einops
25
- Requires-Dist: numpy<2.0
25
+ Requires-Dist: numpy<2.0,>=1.23.0
26
26
  Requires-Dist: pandas<2.1,>=1.3.5
27
27
  Requires-Dist: pyyaml
28
28
  Requires-Dist: rich
29
29
  Requires-Dist: tqdm
30
- Requires-Dist: openpyxl
30
+ Requires-Dist: openpyxl>=3.0.6
31
31
  Requires-Dist: pyopenssl
32
32
  Requires-Dist: twisted
33
33
  Requires-Dist: matplotlib
@@ -19,6 +19,7 @@ msprobe/core/advisor/advisor.py
19
19
  msprobe/core/advisor/advisor_const.py
20
20
  msprobe/core/advisor/advisor_result.py
21
21
  msprobe/core/common/const.py
22
+ msprobe/core/common/decorator.py
22
23
  msprobe/core/common/exceptions.py
23
24
  msprobe/core/common/file_utils.py
24
25
  msprobe/core/common/inplace_op_checker.py
@@ -38,6 +39,8 @@ msprobe/core/compare/layer_mapping/layer_mapping.py
38
39
  msprobe/core/compare/layer_mapping/postprocess_pass.py
39
40
  msprobe/core/compare/merge_result/merge_result.py
40
41
  msprobe/core/compare/merge_result/merge_result_cli.py
42
+ msprobe/core/compare/merge_result/utils.py
43
+ msprobe/core/data_dump/api_registry.py
41
44
  msprobe/core/data_dump/data_collector.py
42
45
  msprobe/core/data_dump/json_writer.py
43
46
  msprobe/core/data_dump/scope.py
@@ -83,6 +86,10 @@ msprobe/docs/24.code_mapping_Mindspore.md
83
86
  msprobe/docs/25.tool_function_introduction.md
84
87
  msprobe/docs/26.data_dump_PyTorch_baseline.md
85
88
  msprobe/docs/27.dump_json_instruction.md
89
+ msprobe/docs/28.debugger_save_instruction.md
90
+ msprobe/docs/28.kernel_dump_MindSpore.md
91
+ msprobe/docs/29.data_dump_MSAdapter.md
92
+ msprobe/docs/30.overflow_check_MSAdapter.md
86
93
  msprobe/docs/FAQ.md
87
94
  msprobe/docs/S02.report_free_benchmarking_validation_performance_baseline.md
88
95
  msprobe/docs/accuracy_checker_MindSpore/accuracy_checker_MindSpore_baseline.md
@@ -124,12 +131,14 @@ msprobe/docs/img/ms_dump.png
124
131
  msprobe/docs/img/ms_layer.png
125
132
  msprobe/docs/img/pt_dump.png
126
133
  msprobe/docs/img/monitor/cpu_info.png
134
+ msprobe/docs/img/monitor/step_count_per_record.png
127
135
  msprobe/docs/img/visualization/fuzzy_match_ms.png
128
136
  msprobe/docs/img/visualization/fuzzy_match_pt.png
129
137
  msprobe/docs/img/visualization/tensorboard_1.png
130
138
  msprobe/docs/img/visualization/tensorboard_2.png
131
139
  msprobe/docs/img/visualization/vis_browser_1.png
132
140
  msprobe/docs/img/visualization/vis_browser_2.png
141
+ msprobe/docs/img/visualization/vis_match_info.png
133
142
  msprobe/docs/img/visualization/vis_precision_info.png
134
143
  msprobe/docs/img/visualization/vis_search_info.png
135
144
  msprobe/docs/img/visualization/vis_show_info.png
@@ -164,8 +173,11 @@ msprobe/mindspore/api_accuracy_checker/data_manager.py
164
173
  msprobe/mindspore/api_accuracy_checker/main.py
165
174
  msprobe/mindspore/api_accuracy_checker/multi_api_accuracy_checker.py
166
175
  msprobe/mindspore/api_accuracy_checker/multi_data_manager.py
176
+ msprobe/mindspore/api_accuracy_checker/torch_mindtorch_importer.py
167
177
  msprobe/mindspore/api_accuracy_checker/type_mapping.py
168
178
  msprobe/mindspore/api_accuracy_checker/utils.py
179
+ msprobe/mindspore/api_accuracy_checker/bench_functions/flash_attention_score.py
180
+ msprobe/mindspore/api_accuracy_checker/bench_functions/fusion_operator.py
169
181
  msprobe/mindspore/code_mapping/__init__.py
170
182
  msprobe/mindspore/code_mapping/bind.py
171
183
  msprobe/mindspore/code_mapping/cmd_parser.py
@@ -188,11 +200,10 @@ msprobe/mindspore/dump/dump_tool_factory.py
188
200
  msprobe/mindspore/dump/jit_dump.py
189
201
  msprobe/mindspore/dump/kernel_graph_dump.py
190
202
  msprobe/mindspore/dump/kernel_kbyk_dump.py
191
- msprobe/mindspore/dump/hook_cell/api_registry.py
203
+ msprobe/mindspore/dump/hook_cell/api_register.py
192
204
  msprobe/mindspore/dump/hook_cell/hook_cell.py
193
205
  msprobe/mindspore/dump/hook_cell/primitive_hooks.py
194
206
  msprobe/mindspore/dump/hook_cell/support_wrap_ops.yaml
195
- msprobe/mindspore/dump/hook_cell/wrap_api.py
196
207
  msprobe/mindspore/dump/kernel_dump/kernel_config.py
197
208
  msprobe/mindspore/dym_loader/hook_dynamic_loader.cc
198
209
  msprobe/mindspore/dym_loader/hook_dynamic_loader.h
@@ -225,12 +236,20 @@ msprobe/mindspore/grad_probe/hook.py
225
236
  msprobe/mindspore/grad_probe/utils.py
226
237
  msprobe/mindspore/mindtorch/__init__.py
227
238
  msprobe/mindspore/mindtorch/mindtorch_adaptor.py
239
+ msprobe/mindspore/monitor/anomaly_detect.py
240
+ msprobe/mindspore/monitor/features.py
241
+ msprobe/mindspore/monitor/module_hook.py
242
+ msprobe/mindspore/monitor/module_spec_verifier.py
243
+ msprobe/mindspore/monitor/utils.py
244
+ msprobe/mindspore/monitor/distributed/__init__.py
245
+ msprobe/mindspore/monitor/distributed/distributed_ops.yaml
246
+ msprobe/mindspore/monitor/distributed/stack_blacklist.yaml
247
+ msprobe/mindspore/monitor/distributed/wrap_distributed.py
228
248
  msprobe/mindspore/overflow_check/__init__.py
229
249
  msprobe/mindspore/overflow_check/kernel_graph_overflow_check.py
230
250
  msprobe/mindspore/overflow_check/overflow_check_tool_factory.py
231
251
  msprobe/pytorch/__init__.py
232
252
  msprobe/pytorch/function_factory.py
233
- msprobe/pytorch/parse.py
234
253
  msprobe/pytorch/pt_config.py
235
254
  msprobe/pytorch/service.py
236
255
  msprobe/pytorch/api_accuracy_checker/.keep
@@ -278,16 +297,21 @@ msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/server.py
278
297
  msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/torch_ops_config.yaml
279
298
  msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/utils.py
280
299
  msprobe/pytorch/bench_functions/__init__.py
300
+ msprobe/pytorch/bench_functions/apply_adam.py
281
301
  msprobe/pytorch/bench_functions/apply_adam_w.py
282
302
  msprobe/pytorch/bench_functions/confusion_transpose.py
283
303
  msprobe/pytorch/bench_functions/fast_gelu.py
304
+ msprobe/pytorch/bench_functions/group_norm_silu.py
284
305
  msprobe/pytorch/bench_functions/layer_norm_eval.py
285
306
  msprobe/pytorch/bench_functions/linear.py
286
307
  msprobe/pytorch/bench_functions/matmul_backward.py
308
+ msprobe/pytorch/bench_functions/mish.py
309
+ msprobe/pytorch/bench_functions/moe_gating_top_k_softmax.py
287
310
  msprobe/pytorch/bench_functions/npu_fusion_attention.py
288
311
  msprobe/pytorch/bench_functions/rms_norm.py
289
312
  msprobe/pytorch/bench_functions/rotary_mul.py
290
313
  msprobe/pytorch/bench_functions/scaled_mask_softmax.py
314
+ msprobe/pytorch/bench_functions/sort_v2.py
291
315
  msprobe/pytorch/bench_functions/swiglu.py
292
316
  msprobe/pytorch/common/__init__.py
293
317
  msprobe/pytorch/common/compare_script.template
@@ -336,18 +360,12 @@ msprobe/pytorch/grad_probe/__init__.py
336
360
  msprobe/pytorch/grad_probe/grad_monitor.py
337
361
  msprobe/pytorch/grad_probe/grad_stat_csv.py
338
362
  msprobe/pytorch/hook_module/__init__.py
339
- msprobe/pytorch/hook_module/api_registry.py
363
+ msprobe/pytorch/hook_module/api_register.py
340
364
  msprobe/pytorch/hook_module/hook_module.py
341
365
  msprobe/pytorch/hook_module/register_optimizer_hook.py
342
366
  msprobe/pytorch/hook_module/support_wrap_ops.yaml
343
367
  msprobe/pytorch/hook_module/utils.py
344
368
  msprobe/pytorch/hook_module/wrap_aten.py
345
- msprobe/pytorch/hook_module/wrap_distributed.py
346
- msprobe/pytorch/hook_module/wrap_functional.py
347
- msprobe/pytorch/hook_module/wrap_npu_custom.py
348
- msprobe/pytorch/hook_module/wrap_tensor.py
349
- msprobe/pytorch/hook_module/wrap_torch.py
350
- msprobe/pytorch/hook_module/wrap_vf.py
351
369
  msprobe/pytorch/monitor/__init__.py
352
370
  msprobe/pytorch/monitor/anomaly_analyse.py
353
371
  msprobe/pytorch/monitor/anomaly_detect.py
@@ -1,11 +1,11 @@
1
1
  wheel
2
2
  einops
3
- numpy<2.0
3
+ numpy<2.0,>=1.23.0
4
4
  pandas<2.1,>=1.3.5
5
5
  pyyaml
6
6
  rich
7
7
  tqdm
8
- openpyxl
8
+ openpyxl>=3.0.6
9
9
  pyopenssl
10
10
  twisted
11
11
  matplotlib
@@ -15,7 +15,7 @@ debugger = PrecisionDebugger(config_path='./config.json')
15
15
  ...
16
16
  debugger.start() # 一般在训练循环开头启动工具
17
17
  ... # 循环体
18
- debugger.stop() # 一般在训练循环末尾结束工具
18
+ debugger.stop() # 一般在训练循环末尾结束工具。必须调用,否则可能导致精度数据落盘不全
19
19
  debugger.step() # 在训练循环的最后需要重置工具,非循环场景不需要
20
20
  ```
21
21
 
@@ -44,6 +44,7 @@ export MSPROBE_LOG_LEVEL={x}
44
44
 
45
45
  - msprobe支持AscendPyTorch 1.11.0或更高版本,支持的PyTorch和CANN以及PyTorch和python软件版本配套关系请参见《[Ascend Extension for PyTorch插件](https://gitee.com/ascend/pytorch)》。
46
46
  - msprobe支持MindSpore 2.4.0或更高版本,支持的MindSpore和CANN以及MindSpore和python软件版本配套关系请参见《[MindSpore版本发布列表](https://www.mindspore.cn/versions)》。
47
+ - msprobe支持MSAdapter 2.1.0。
47
48
  - msprobe支持的固件驱动版本与配套CANN软件支持的固件驱动版本相同,开发者可通过“[昇腾社区-固件与驱动](https://gitee.com/link?target=https%3A%2F%2Fwww.hiascend.com%2Fhardware%2Ffirmware-drivers%2Fcommunity%3Fproduct%3D2%26model%3D28%26cann%3D8.0.RC3.alpha003%26driver%3D1.0.25.alpha)”页面根据产品型号与CANN软件版本获取配套的固件与驱动。
48
49
 
49
50
 
@@ -69,35 +70,37 @@ export MSPROBE_LOG_LEVEL={x}
69
70
 
70
71
  ### 1 数据采集
71
72
 
72
- msprobe 通过在训练脚本中添加 PrecisionDebugger 接口的方式对 API 执行精度数据 dump 操作,对应 config.json 中的 task 为 statistics 或 tensor。
73
+ msprobe 通过在训练脚本中添加 PrecisionDebugger 接口的方式对 API 执行精度数据 dump 操作。对应 config.json 中的 "statistics""tensor" task
73
74
 
74
75
  [PyTorch 场景的数据采集](./docs/05.data_dump_PyTorch.md)
75
76
 
76
77
  [MindSpore 场景的数据采集](./docs/06.data_dump_MindSpore.md)
77
78
 
79
+ [MSAdapter 场景的数据采集](./docs/29.data_dump_MSAdapter.md)
80
+
78
81
  ### 2 精度预检
79
82
 
80
- 精度预检旨在昇腾 NPU 上扫描训练模型中的所有 API 进行 API 复现,给出精度情况的诊断和分析。对应 config.json 中的 task 为 run_ut
83
+ 精度预检旨在昇腾 NPU 上扫描训练模型中的所有 API 进行 API 复现,给出精度情况的诊断和分析。对应 config.json 中的 "run_ut" task。
81
84
 
82
85
  PyTorch 场景的[离线预检](./docs/07.accuracy_checker_PyTorch.md)和[在线预检](./docs/08.accuracy_checker_online_PyTorch.md)
83
86
 
84
87
  MindSpore 动态图场景的[离线预检](./docs/09.accuracy_checker_MindSpore.md)
85
88
 
86
- ### 3 精度比对
89
+ ### 3 分级可视化构图比对
87
90
 
88
- 该功能进行 PyTorch 整网 API 粒度的数据 dump、精度比对,进而定位训练场景下的精度问题。
91
+ 该功能将msprobe工具dump的精度数据进行解析,还原模型图结构,实现模型各个层级的精度数据比对,方便用户理解模型结构、分析精度问题。
89
92
 
90
- [PyTorch 场景的精度比对](./docs/10.accuracy_compare_PyTorch.md)
93
+ [PyTorch 场景的分级可视化构图比对](./docs/21.visualization_PyTorch.md)
91
94
 
92
- [MindSpore 场景的精度比对](./docs/11.accuracy_compare_MindSpore.md)
95
+ [MindSpore 场景的分级可视化构图比对](./docs/22.visualization_MindSpore.md)
93
96
 
94
- ### 4 溢出检测与解析
97
+ ### 4 精度比对
95
98
 
96
- 溢出检测与解析是在执行精度数据 dump 时,判断是否存在输入正常但输出存在溢出的 API,从而判断是否为正常溢出。对应 config.json 中的 overflow_check。
99
+ 该功能进行 PyTorch 整网 API 粒度的数据 dump、精度比对,进而定位训练场景下的精度问题。
97
100
 
98
- [PyTorch 场景的溢出检测与解析](./docs/12.overflow_check_PyTorch.md)
101
+ [PyTorch 场景的精度比对](./docs/10.accuracy_compare_PyTorch.md)
99
102
 
100
- [MindSpore 场景的溢出检测与解析](./docs/13.overflow_check_MindSpore.md)
103
+ [MindSpore 场景的精度比对](./docs/11.accuracy_compare_MindSpore.md)
101
104
 
102
105
  ### 5 数据解析
103
106
 
@@ -127,28 +130,30 @@ MindSpore 动态图场景的[离线预检](./docs/09.accuracy_checker_MindSpore.
127
130
 
128
131
  该功能收集和聚合模型训练过程中的网络层,优化器, 通信算子的中间值,帮助诊断模型训练过程中计算, 通信,优化器各部分出现的异常情况。
129
132
 
130
- [PyTorch 场景的训练状态监控](./docs/19.monitor.md)
133
+ [兼容 PyTorch 和 MindSpore 框架的训练状态监控](./docs/19.monitor.md)
131
134
 
132
- ### 10 分级可视化构图比对
135
+ ### 10 单算子API自动生成脚本
133
136
 
134
- 该功能将msprobe工具dump的精度数据进行解析,还原模型图结构,实现模型各个层级的精度数据比对,方便用户理解模型结构、分析精度问题。
137
+ 该功能将msprobe工具dump的精度数据进行解析,自动生成单API脚本,用于复现整网中出现的算子问题,降低用户复现问题的成本,供开发分析算子问题。
135
138
 
136
- [PyTorch 场景的分级可视化构图比对](./docs/21.visualization_PyTorch.md)
139
+ [PyTorch 单算子API自动生成脚本](./docs/23.generate_operator_PyTorch.md)
137
140
 
138
- [MindSpore 场景的分级可视化构图比对](./docs/22.visualization_MindSpore.md)
141
+ ### 11 数码关联
139
142
 
143
+ 该功能只支持 MindSpore 静态图场景,用于将IR图与dump数据进行关联,获取dump数据和代码调用栈的关联关系。
140
144
 
141
- ### 11 单算子API自动生成脚本
145
+ [MindSpore 场景的数码关联](./docs/24.code_mapping_Mindspore.md)
142
146
 
143
- 该功能将msprobe工具dump的精度数据进行解析,自动生成单API脚本,用于复现整网中出现的算子问题,降低用户复现问题的成本,供开发分析算子问题。
147
+ ### 12 溢出检测与解析
144
148
 
145
- [PyTorch 单算子API自动生成脚本](./docs/23.generate_operator_PyTorch.md)
149
+ 溢出检测用于采集溢出 API 或 模块的精度数据,而溢出解析则是通过对溢出数据的分析,进一步判断是否为正常溢出。对应 config.json 中的 "overflow_check" task。
150
+ 推荐直接使用[数据采集](#1-数据采集)功能采集统计量信息,检测溢出问题。
146
151
 
147
- ### 12 数码关联
152
+ [PyTorch 场景的溢出检测与解析](./docs/12.overflow_check_PyTorch.md)
148
153
 
149
- 该功能只支持 MindSpore 静态图场景,用于将IR图与dump数据进行关联,获取dump数据和代码调用栈的关联关系。
154
+ [MindSpore 场景的溢出检测](./docs/13.overflow_check_MindSpore.md)
150
155
 
151
- [MindSpore 场景的数码关联](./docs/24.code_mapping_Mindspore.md)
156
+ [MSAdapter 场景的溢出检测](./docs/30.overflow_check_MSAdapter.md)
152
157
 
153
158
  ## 📑 补充材料
154
159
 
@@ -51,7 +51,10 @@ class Const:
51
51
  FOUR_SEGMENT = 4
52
52
  SIX_SEGMENT = 6
53
53
  SEVEN_SEGMENT = 7
54
+
54
55
  MAX_DEPTH = 10
56
+ CPU_QUARTER = 4
57
+ DUMP_MAX_DEPTH = 50
55
58
 
56
59
  # dump mode
57
60
  ALL = "all"
@@ -103,14 +106,16 @@ class Const:
103
106
  FREE_BENCHMARK = "free_benchmark"
104
107
  RUN_UT = "run_ut"
105
108
  GRAD_PROBE = "grad_probe"
106
- TASK_LIST = [TENSOR, STATISTICS, OVERFLOW_CHECK, FREE_BENCHMARK, RUN_UT, GRAD_PROBE]
107
- DUMP_DATA_COLLECTION_LIST = [STATISTICS, TENSOR]
109
+ STRUCTURE = "structure"
110
+ TASK_LIST = [TENSOR, STATISTICS, OVERFLOW_CHECK, FREE_BENCHMARK, RUN_UT, GRAD_PROBE, STRUCTURE]
111
+ DUMP_DATA_COLLECTION_LIST = [STATISTICS, TENSOR, STRUCTURE]
108
112
  DUMP_DATA_MODE_LIST = [ALL, INPUT, OUTPUT, FORWARD, BACKWARD]
109
113
  LEVEL_L0 = "L0"
110
114
  LEVEL_L1 = "L1"
111
115
  LEVEL_L2 = "L2"
112
116
  LEVEL_MIX = "mix"
113
- LEVEL_LIST = [LEVEL_L0, LEVEL_L1, LEVEL_L2, LEVEL_MIX]
117
+ LEVEL_DEBUG = "debug"
118
+ LEVEL_LIST = [LEVEL_L0, LEVEL_L1, LEVEL_L2, LEVEL_MIX, LEVEL_DEBUG]
114
119
  ATTR_NAME_PREFIX = "wrap_"
115
120
  ATTR_NAME_PREFIX_LEN = len(ATTR_NAME_PREFIX)
116
121
  KERNEL_DUMP = "kernel_dump"
@@ -228,6 +233,92 @@ class Const:
228
233
 
229
234
  TENSOR_STAT_LEN = 2
230
235
 
236
+ SUPPORT_API_FILE_NAME = "support_wrap_ops.yaml"
237
+
238
+ PT_API_TYPE_FUNCTIONAL = "functional"
239
+ PT_API_TYPE_TENSOR = "tensor"
240
+ PT_API_TYPE_TORCH = "torch"
241
+ PT_API_TYPE_VF = "_VF"
242
+ PT_API_TYPE_NPU = "torch_npu"
243
+ PT_API_TYPE_ATEN = "aten"
244
+ PT_API_TYPE_DIST = "distributed"
245
+ PT_API_TYPE_NPU_DIST = "npu_distributed"
246
+
247
+ MS_API_TYPE_OPS = "ops"
248
+ MS_API_TYPE_TENSOR = "tensor"
249
+ MS_API_TYPE_STUB_TENSOR = "stubtensor"
250
+ MS_API_TYPE_MINT = "mint.ops"
251
+ MS_API_TYPE_MINT_FUNC = "mint.nn.functional"
252
+ MS_API_TYPE_COM = "communication.comm_func"
253
+
254
+ FUNCTIONAL_API_TYPE_PREFIX = "Functional"
255
+ TENSOR_API_TYPE_PREFIX = "Tensor"
256
+ DIST_API_TYPE_PREFIX = "Distributed"
257
+
258
+ TORCH_API_TYPE_PREFIX = "Torch"
259
+ NPU_API_TYPE_PREFIX = "NPU"
260
+ ATEN_API_TYPE_PREFIX = "Aten"
261
+ VF_API_TYPE_PREFIX = "VF"
262
+
263
+ MINT_API_TYPE_PREFIX = "Mint"
264
+ MINT_FUNC_API_TYPE_PREFIX = "MintFunctional"
265
+
266
+ SUPPORT_API_DICT_KEY_MAP = {
267
+ PT_FRAMEWORK: {
268
+ PT_API_TYPE_FUNCTIONAL: PT_API_TYPE_FUNCTIONAL,
269
+ PT_API_TYPE_TENSOR: PT_API_TYPE_TENSOR,
270
+ PT_API_TYPE_TORCH: PT_API_TYPE_TORCH,
271
+ PT_API_TYPE_VF: PT_API_TYPE_VF,
272
+ PT_API_TYPE_NPU: PT_API_TYPE_NPU,
273
+ PT_API_TYPE_ATEN: PT_API_TYPE_ATEN,
274
+ PT_API_TYPE_DIST: PT_API_TYPE_DIST,
275
+ PT_API_TYPE_NPU_DIST: PT_API_TYPE_NPU_DIST
276
+ },
277
+ MS_FRAMEWORK: {
278
+ MS_API_TYPE_OPS: MS_API_TYPE_OPS,
279
+ MS_API_TYPE_TENSOR: MS_API_TYPE_TENSOR,
280
+ MS_API_TYPE_STUB_TENSOR: MS_API_TYPE_TENSOR,
281
+ MS_API_TYPE_MINT: MS_API_TYPE_MINT,
282
+ MS_API_TYPE_MINT_FUNC: MS_API_TYPE_MINT_FUNC,
283
+ MS_API_TYPE_COM: MS_API_TYPE_COM
284
+ },
285
+ MT_FRAMEWORK: {
286
+ PT_API_TYPE_FUNCTIONAL: PT_API_TYPE_FUNCTIONAL,
287
+ PT_API_TYPE_TENSOR: PT_API_TYPE_TENSOR,
288
+ PT_API_TYPE_TORCH: PT_API_TYPE_TORCH,
289
+ PT_API_TYPE_NPU: PT_API_TYPE_NPU,
290
+ PT_API_TYPE_DIST: PT_API_TYPE_DIST
291
+ }
292
+ }
293
+
294
+ API_DATA_PREFIX = {
295
+ PT_FRAMEWORK: {
296
+ PT_API_TYPE_FUNCTIONAL: FUNCTIONAL_API_TYPE_PREFIX,
297
+ PT_API_TYPE_TENSOR: TENSOR_API_TYPE_PREFIX,
298
+ PT_API_TYPE_TORCH: TORCH_API_TYPE_PREFIX,
299
+ PT_API_TYPE_VF: VF_API_TYPE_PREFIX,
300
+ PT_API_TYPE_NPU: NPU_API_TYPE_PREFIX,
301
+ PT_API_TYPE_ATEN: ATEN_API_TYPE_PREFIX,
302
+ PT_API_TYPE_DIST: DIST_API_TYPE_PREFIX,
303
+ PT_API_TYPE_NPU_DIST: DIST_API_TYPE_PREFIX
304
+ },
305
+ MS_FRAMEWORK: {
306
+ MS_API_TYPE_OPS: FUNCTIONAL_API_TYPE_PREFIX,
307
+ MS_API_TYPE_TENSOR: TENSOR_API_TYPE_PREFIX,
308
+ MS_API_TYPE_STUB_TENSOR: TENSOR_API_TYPE_PREFIX,
309
+ MS_API_TYPE_MINT: MINT_API_TYPE_PREFIX,
310
+ MS_API_TYPE_MINT_FUNC: MINT_FUNC_API_TYPE_PREFIX,
311
+ MS_API_TYPE_COM: DIST_API_TYPE_PREFIX
312
+ },
313
+ MT_FRAMEWORK: {
314
+ PT_API_TYPE_FUNCTIONAL: FUNCTIONAL_API_TYPE_PREFIX,
315
+ PT_API_TYPE_TENSOR: TENSOR_API_TYPE_PREFIX,
316
+ PT_API_TYPE_TORCH: TORCH_API_TYPE_PREFIX,
317
+ PT_API_TYPE_NPU: NPU_API_TYPE_PREFIX,
318
+ PT_API_TYPE_DIST: DIST_API_TYPE_PREFIX
319
+ }
320
+ }
321
+
231
322
 
232
323
  class CompareConst:
233
324
  """
@@ -254,6 +345,7 @@ class CompareConst:
254
345
  MEAN_DIFF = "Mean diff"
255
346
  NORM_DIFF = "L2norm diff"
256
347
  COSINE = "Cosine"
348
+ EUC_DIST = "EucDist"
257
349
  MAX_ABS_ERR = "MaxAbsErr"
258
350
  MAX_RELATIVE_ERR = "MaxRelativeErr"
259
351
  MIN_RELATIVE_ERR = "MinRelativeErr"
@@ -328,8 +420,8 @@ class CompareConst:
328
420
  ULP_ERR_STATUS = "ulp_err_status"
329
421
 
330
422
  COMPARE_RESULT_HEADER = [
331
- NPU_NAME, BENCH_NAME, NPU_DTYPE, BENCH_DTYPE, NPU_SHAPE, BENCH_SHAPE, COSINE, MAX_ABS_ERR, MAX_RELATIVE_ERR,
332
- ONE_THOUSANDTH_ERR_RATIO, FIVE_THOUSANDTHS_ERR_RATIO,
423
+ NPU_NAME, BENCH_NAME, NPU_DTYPE, BENCH_DTYPE, NPU_SHAPE, BENCH_SHAPE, COSINE, EUC_DIST,
424
+ MAX_ABS_ERR, MAX_RELATIVE_ERR, ONE_THOUSANDTH_ERR_RATIO, FIVE_THOUSANDTHS_ERR_RATIO,
333
425
  NPU_MAX, NPU_MIN, NPU_MEAN, NPU_NORM, BENCH_MAX, BENCH_MIN, BENCH_MEAN, BENCH_NORM, ACCURACY, ERROR_MESSAGE
334
426
  ]
335
427
 
@@ -355,18 +447,16 @@ class CompareConst:
355
447
  Const.MD5: MD5_COMPARE_RESULT_HEADER
356
448
  }
357
449
 
358
- ALL_COMPARE_INDEX = [COSINE, MAX_ABS_ERR, MAX_RELATIVE_ERR, ONE_THOUSANDTH_ERR_RATIO, FIVE_THOUSANDTHS_ERR_RATIO]
450
+ ALL_COMPARE_INDEX = [COSINE, EUC_DIST, MAX_ABS_ERR, MAX_RELATIVE_ERR, ONE_THOUSANDTH_ERR_RATIO,
451
+ FIVE_THOUSANDTHS_ERR_RATIO]
359
452
  SUMMARY_COMPARE_INDEX = [MAX_DIFF, MIN_DIFF, MEAN_DIFF, NORM_DIFF,
360
453
  MAX_RELATIVE_ERR, MIN_RELATIVE_ERR, MEAN_RELATIVE_ERR, NORM_RELATIVE_ERR]
361
454
 
362
455
  # dtype match
363
- MS_TYPE = [
364
- [Const.FLOAT16, Const.FLOAT32], [Const.FLOAT32, Const.FLOAT16],
365
- [Const.FLOAT16, Const.BFLOAT16], [Const.BFLOAT16, Const.FLOAT16]
366
- ]
367
- TORCH_TYPE = [
368
- [Const.TORCH_FLOAT16, Const.TORCH_FLOAT32], [Const.TORCH_FLOAT32, Const.TORCH_FLOAT16],
369
- [Const.TORCH_FLOAT16, Const.TORCH_BFLOAT16], [Const.TORCH_BFLOAT16, Const.TORCH_FLOAT16]
456
+
457
+ DTYPE_MATCH_GROUPS = [
458
+ {Const.FLOAT16, Const.FLOAT32, Const.BFLOAT16},
459
+ {Const.TORCH_FLOAT16, Const.TORCH_FLOAT32, Const.TORCH_BFLOAT16}
370
460
  ]
371
461
 
372
462
  # read_op
@@ -465,7 +555,7 @@ class CompareConst:
465
555
  BENCH_MEAN: None, BENCH_NORM: None, ACCURACY: '', ERROR_MESSAGE: ''
466
556
  }
467
557
  MS_GRAPH_NPY = {
468
- COSINE: None, MAX_ABS_ERR: None, MAX_RELATIVE_ERR: None, ONE_THOUSANDTH_ERR_RATIO: None,
558
+ COSINE: None, EUC_DIST: None, MAX_ABS_ERR: None, MAX_RELATIVE_ERR: None, ONE_THOUSANDTH_ERR_RATIO: None,
469
559
  FIVE_THOUSANDTHS_ERR_RATIO: None
470
560
  }
471
561
  MS_GRAPH_STATISTIC = {
@@ -536,46 +626,6 @@ class OverflowConst:
536
626
  OVERFLOW_DEBUG_MODE = 1
537
627
 
538
628
 
539
- class MsCompareConst:
540
- # api_info field
541
- MINT = "Mint"
542
- MINT_FUNCTIONAL = "MintFunctional"
543
- TENSOR_API = "Tensor"
544
-
545
- API_NAME_STR_LENGTH = 4
546
-
547
- TASK_FIELD = "task"
548
- STATISTICS_TASK = "statistics"
549
- TENSOR_TASK = "tensor"
550
- DUMP_DATA_DIR_FIELD = "dump_data_dir"
551
- DATA_FIELD = "data"
552
-
553
- # supported api yaml
554
- SUPPORTED_API_LIST_FILE = "checker_support_api.yaml"
555
- SUPPORTED_TENSOR_LIST_KEY = "tensor"
556
-
557
- # detail_csv
558
- DETAIL_CSV_API_NAME = "API Name"
559
- DETAIL_CSV_BENCH_DTYPE = "Bench Dtype"
560
- DETAIL_CSV_TESTED_DTYPE = "Tested Dtype"
561
- DETAIL_CSV_SHAPE = "Shape"
562
- DETAIL_CSV_PASS_STATUS = "Status"
563
- DETAIL_CSV_MESSAGE = "Message"
564
- DETAIL_CSV_FILE_NAME = "accuracy_checking_details"
565
-
566
- # result_csv
567
- RESULT_CSV_FORWARD_TEST_SUCCESS = "Forward Test Success"
568
- RESULT_CSV_BACKWARD_TEST_SUCCESS = "Backward Test Success"
569
- RESULT_CSV_FILE_NAME = "accuracy_checking_result"
570
-
571
- EPSILON = 1e-8
572
-
573
- class ProcessStatus:
574
- SUCCESS = "success"
575
- API_NOT_FOUND = "api_not_found"
576
- EXCEPTION_SKIP = "exception_skip"
577
-
578
-
579
629
  class MsgConst:
580
630
  """
581
631
  Class for log messages const
@@ -612,6 +662,15 @@ class MonitorConst:
612
662
  """
613
663
  Class for monitor const
614
664
  """
665
+
666
+ # monitor config set default values
667
+ DEFAULT_GRAD_ACC_STEPS = 1
668
+ DEFAULT_START_ITERATION = 0
669
+ DEFAULT_START_STEP = 0
670
+ DEFAULT_MAX_COLLECT_TIMES = 1e8
671
+ DEFAULT_MIN_COLLECT_TIMES = 0
672
+ DEFAULT_STEP_INTERVAL = 1
673
+
615
674
  OP_LIST = ["norm", "min", "max", "zeros", "nans", "id", "mean"]
616
675
  MONITOR_OUTPUT_DIR = "MONITOR_OUTPUT_DIR"
617
676
  DEFAULT_MONITOR_OUTPUT_DIR = "./monitor_output"
@@ -623,29 +682,39 @@ class MonitorConst:
623
682
  "DeepSpeedZeroOptimizer_Stage1_or_2",
624
683
  "DeepSpeedZeroOptimizer_Stage3"
625
684
  )
685
+ DEEPSPEED_ZERO_OPT_FILTER = "DeepSpeedZeroOptimizer"
626
686
  RULE_NAME = ['AnomalyTurbulence']
627
687
 
628
688
  SLICE_SIZE = 20480
689
+ # used for name
629
690
  DOT = "."
630
- VPP_SEP = ":"
691
+ NAME_SEP = ":"
692
+ INPUT_GRAD = "input_grad"
693
+ OUTPUT_GRAD = "output_grad"
631
694
  ACTV_IN = "input"
632
695
  ACTV_OUT = "output"
633
696
  ACTVGRAD_IN = "input_grad"
634
697
  ACTVGRAD_OUT = "output_grad"
698
+ # used for tasks
699
+ ACTV = "actv"
700
+ ACTVGRAD = "actv_grad"
635
701
  POST_GRAD = "post_grad"
636
702
  PRE_GRAD = "pre_grad"
637
703
  ACC_GRAD = "acc_grad"
638
704
  PREFIX_POST = "post"
639
705
  PREFIX_PRE = "pre"
640
- OUTPUT_DIR_PATTERN = r"([\w-]{0,20})-rank(\d{1,5})-"
641
-
642
706
  EXP_AVG = "exp_avg"
643
- EFXP_AVG_SQ = "efxp_avg_sq"
707
+ EXP_AVG_SQ = "exp_avg_sq"
708
+ PARAM = "param"
644
709
 
710
+ CSV_HEADER = ["vpp_stage", "name", "step"]
711
+ CSV_HEADER_XY = ["vpp_stage", "name", "step", "micro_step"]
712
+ OUTPUT_DIR_PATTERN = r"([\w-]{0,20})-rank(\d{1,5})-"
645
713
  ANOMALY_JSON = "anomaly.json"
646
714
  ANALYSE_JSON = "anomaly_analyse.json"
647
715
  TENSORBOARD = "tensorboard"
648
716
  CSV = "csv"
649
717
  API = "api"
650
- OPS_START_INDEX = 3
651
- HEADER_NAME_INDEX = 1
718
+ HEADER_NAME = 'name'
719
+
720
+ MAX_NDIGITS = 20
@@ -0,0 +1,50 @@
1
+ # Copyright (c) 2024-2025, Huawei Technologies Co., Ltd.
2
+ # All rights reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ from collections import defaultdict
17
+ from functools import wraps
18
+
19
+ from msprobe.core.common.const import Const
20
+ from msprobe.core.common.exceptions import MsprobeException
21
+ from msprobe.core.common.log import logger
22
+
23
+ # 记录工具函数递归的深度
24
+ recursion_depth = defaultdict(int)
25
+
26
+
27
+ def recursion_depth_decorator(func_info, max_depth=Const.MAX_DEPTH):
28
+ """装饰一个函数,当函数递归调用超过限制时,抛出异常并打印函数信息。"""
29
+ def decorator(func):
30
+ @wraps(func)
31
+ def wrapper(*args, **kwargs):
32
+ func_id = id(func)
33
+ recursion_depth[func_id] += 1
34
+ if recursion_depth[func_id] > max_depth:
35
+ msg = f"call {func_info} exceeds the recursion limit."
36
+ logger.error_log_with_exp(
37
+ msg,
38
+ MsprobeException(
39
+ MsprobeException.RECURSION_LIMIT_ERROR, msg
40
+ ),
41
+ )
42
+ try:
43
+ result = func(*args, **kwargs)
44
+ finally:
45
+ recursion_depth[func_id] -= 1
46
+ return result
47
+
48
+ return wrapper
49
+
50
+ return decorator
@@ -28,12 +28,14 @@ class MsprobeException(CodedException):
28
28
  OVERFLOW_NUMS_ERROR = 1
29
29
  RECURSION_LIMIT_ERROR = 2
30
30
  INTERFACE_USAGE_ERROR = 3
31
+ UNSUPPORTED_TYPE_ERROR = 4
31
32
 
32
33
  err_strs = {
33
34
  INVALID_PARAM_ERROR: "[msprobe] 无效参数:",
34
35
  OVERFLOW_NUMS_ERROR: "[msprobe] 超过预设溢出次数 当前溢出次数:",
35
36
  RECURSION_LIMIT_ERROR: "[msprobe] 递归调用超过限制:",
36
- INTERFACE_USAGE_ERROR: "[msprobe] Invalid interface usage: "
37
+ INTERFACE_USAGE_ERROR: "[msprobe] Invalid interface usage: ",
38
+ UNSUPPORTED_TYPE_ERROR: "[msprobe] Unsupported type: "
37
39
  }
38
40
 
39
41