mindstudio-probe 1.0.1__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 (235) hide show
  1. mindstudio-probe-1.0.1/LICENSE +201 -0
  2. mindstudio-probe-1.0.1/MANIFEST.in +3 -0
  3. mindstudio-probe-1.0.1/PKG-INFO +30 -0
  4. mindstudio-probe-1.0.1/README.md +20 -0
  5. mindstudio-probe-1.0.1/mindstudio_probe.egg-info/PKG-INFO +30 -0
  6. mindstudio-probe-1.0.1/mindstudio_probe.egg-info/SOURCES.txt +233 -0
  7. mindstudio-probe-1.0.1/mindstudio_probe.egg-info/dependency_links.txt +1 -0
  8. mindstudio-probe-1.0.1/mindstudio_probe.egg-info/entry_points.txt +2 -0
  9. mindstudio-probe-1.0.1/mindstudio_probe.egg-info/not-zip-safe +1 -0
  10. mindstudio-probe-1.0.1/mindstudio_probe.egg-info/requires.txt +7 -0
  11. mindstudio-probe-1.0.1/mindstudio_probe.egg-info/top_level.txt +1 -0
  12. mindstudio-probe-1.0.1/msprobe/README.md +182 -0
  13. mindstudio-probe-1.0.1/msprobe/__init__.py +0 -0
  14. mindstudio-probe-1.0.1/msprobe/config/README.md +397 -0
  15. mindstudio-probe-1.0.1/msprobe/config/config.json +28 -0
  16. mindstudio-probe-1.0.1/msprobe/config/img/free_benchmark.png +0 -0
  17. mindstudio-probe-1.0.1/msprobe/core/common/const.py +241 -0
  18. mindstudio-probe-1.0.1/msprobe/core/common/exceptions.py +88 -0
  19. mindstudio-probe-1.0.1/msprobe/core/common/file_check.py +265 -0
  20. mindstudio-probe-1.0.1/msprobe/core/common/log.py +55 -0
  21. mindstudio-probe-1.0.1/msprobe/core/common/utils.py +516 -0
  22. mindstudio-probe-1.0.1/msprobe/core/common_config.py +58 -0
  23. mindstudio-probe-1.0.1/msprobe/core/data_dump/data_collector.py +140 -0
  24. mindstudio-probe-1.0.1/msprobe/core/data_dump/data_processor/base.py +245 -0
  25. mindstudio-probe-1.0.1/msprobe/core/data_dump/data_processor/factory.py +61 -0
  26. mindstudio-probe-1.0.1/msprobe/core/data_dump/data_processor/pytorch_processor.py +346 -0
  27. mindstudio-probe-1.0.1/msprobe/core/data_dump/json_writer.py +116 -0
  28. mindstudio-probe-1.0.1/msprobe/core/data_dump/scope.py +178 -0
  29. mindstudio-probe-1.0.1/msprobe/mindspore/__init__.py +1 -0
  30. mindstudio-probe-1.0.1/msprobe/mindspore/debugger/__init__.py +0 -0
  31. mindstudio-probe-1.0.1/msprobe/mindspore/debugger/debugger_config.py +51 -0
  32. mindstudio-probe-1.0.1/msprobe/mindspore/debugger/precision_debugger.py +32 -0
  33. mindstudio-probe-1.0.1/msprobe/mindspore/doc/dump.md +65 -0
  34. mindstudio-probe-1.0.1/msprobe/mindspore/dump/__init__.py +0 -0
  35. mindstudio-probe-1.0.1/msprobe/mindspore/dump/api_kbk_dump.py +55 -0
  36. mindstudio-probe-1.0.1/msprobe/mindspore/dump/dump_tool_factory.py +38 -0
  37. mindstudio-probe-1.0.1/msprobe/mindspore/dump/kernel_graph_dump.py +60 -0
  38. mindstudio-probe-1.0.1/msprobe/mindspore/ms_config.py +78 -0
  39. mindstudio-probe-1.0.1/msprobe/mindspore/overflow_check/__init__.py +0 -0
  40. mindstudio-probe-1.0.1/msprobe/mindspore/overflow_check/kernel_graph_overflow_check.py +45 -0
  41. mindstudio-probe-1.0.1/msprobe/mindspore/overflow_check/overflow_check_tool_factory.py +32 -0
  42. mindstudio-probe-1.0.1/msprobe/mindspore/task_handler_factory.py +21 -0
  43. mindstudio-probe-1.0.1/msprobe/msprobe.py +67 -0
  44. mindstudio-probe-1.0.1/msprobe/pytorch/__init__.py +4 -0
  45. mindstudio-probe-1.0.1/msprobe/pytorch/advisor/advisor.py +124 -0
  46. mindstudio-probe-1.0.1/msprobe/pytorch/advisor/advisor_const.py +59 -0
  47. mindstudio-probe-1.0.1/msprobe/pytorch/advisor/advisor_result.py +58 -0
  48. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/.keep +0 -0
  49. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/__init__.py +0 -0
  50. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/common/.keep +0 -0
  51. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/common/__init__.py +0 -0
  52. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/common/config.py +50 -0
  53. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/common/utils.py +224 -0
  54. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/compare/__init__.py +0 -0
  55. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/compare/algorithm.py +216 -0
  56. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/compare/api_precision_compare.py +545 -0
  57. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/compare/api_precision_standard.yaml +133 -0
  58. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/compare/api_precision_threshold.yaml +390 -0
  59. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/compare/compare.py +345 -0
  60. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/compare/compare_column.py +74 -0
  61. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/compare/compare_utils.py +249 -0
  62. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/config.yaml +4 -0
  63. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/run_ut/.keep +0 -0
  64. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/run_ut/__init__.py +0 -0
  65. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/run_ut/data_generate.py +328 -0
  66. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/run_ut/multi_run_ut.py +203 -0
  67. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/run_ut/run_overflow_check.py +127 -0
  68. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/run_ut/run_ut.py +493 -0
  69. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/run_ut/run_ut_utils.py +7 -0
  70. mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/run_ut/torch_ut_setting.json +5 -0
  71. mindstudio-probe-1.0.1/msprobe/pytorch/common/__init__.py +2 -0
  72. mindstudio-probe-1.0.1/msprobe/pytorch/common/compare_script.template +14 -0
  73. mindstudio-probe-1.0.1/msprobe/pytorch/common/log.py +32 -0
  74. mindstudio-probe-1.0.1/msprobe/pytorch/common/parse_json.py +37 -0
  75. mindstudio-probe-1.0.1/msprobe/pytorch/common/utils.py +224 -0
  76. mindstudio-probe-1.0.1/msprobe/pytorch/compare/acc_compare.py +1024 -0
  77. mindstudio-probe-1.0.1/msprobe/pytorch/compare/distributed_compare.py +111 -0
  78. mindstudio-probe-1.0.1/msprobe/pytorch/compare/highlight.py +100 -0
  79. mindstudio-probe-1.0.1/msprobe/pytorch/compare/mapping.yaml +607 -0
  80. mindstudio-probe-1.0.1/msprobe/pytorch/compare/match.py +36 -0
  81. mindstudio-probe-1.0.1/msprobe/pytorch/compare/npy_compare.py +244 -0
  82. mindstudio-probe-1.0.1/msprobe/pytorch/debugger/__init__.py +0 -0
  83. mindstudio-probe-1.0.1/msprobe/pytorch/debugger/debugger_config.py +86 -0
  84. mindstudio-probe-1.0.1/msprobe/pytorch/debugger/precision_debugger.py +95 -0
  85. mindstudio-probe-1.0.1/msprobe/pytorch/doc/FAQ.md +193 -0
  86. mindstudio-probe-1.0.1/msprobe/pytorch/doc/api_accuracy_checker.md +269 -0
  87. mindstudio-probe-1.0.1/msprobe/pytorch/doc/atat/347/262/276/345/272/246/345/267/245/345/205/267/346/225/260/346/215/256dump/346/240/207/345/207/206/346/200/247/350/203/275/345/237/272/347/272/277/346/212/245/345/221/212.md +182 -0
  88. mindstudio-probe-1.0.1/msprobe/pytorch/doc/dump.md +207 -0
  89. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/BLOOM-7B_1.png +0 -0
  90. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/BLOOM-7B_2.png +0 -0
  91. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/BLOOM-7B_3.png +0 -0
  92. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/BLOOM-7B_4.png +0 -0
  93. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/GPT-3_1.png +0 -0
  94. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/GPT-3_2.png +0 -0
  95. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/GPT-3_3.png +0 -0
  96. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/GPT-3_4.png +0 -0
  97. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/GPT-3_5.png +0 -0
  98. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/GPT-3_6.png +0 -0
  99. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/GPT-3_7.png +0 -0
  100. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/GPT-3_8.png +0 -0
  101. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/YOLOV5S_1.png +0 -0
  102. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/YOLOV5S_2.png +0 -0
  103. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/accuracy_checking_details.png +0 -0
  104. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/accuracy_checking_result.png +0 -0
  105. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/api_precision_compare_details.png +0 -0
  106. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/api_precision_compare_result.png +0 -0
  107. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/auto_analyze_log.png +0 -0
  108. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/compare_result_pkl.png +0 -0
  109. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/compare_result_pkl_md5.png.png +0 -0
  110. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/cpu_info.png +0 -0
  111. mindstudio-probe-1.0.1/msprobe/pytorch/doc/img/module_compare.png +0 -0
  112. mindstudio-probe-1.0.1/msprobe/pytorch/doc/parse_tool.md +286 -0
  113. mindstudio-probe-1.0.1/msprobe/pytorch/doc/ptdbg_ascend_compare.md +176 -0
  114. mindstudio-probe-1.0.1/msprobe/pytorch/doc/ptdbg_ascend_overview.md +68 -0
  115. mindstudio-probe-1.0.1/msprobe/pytorch/doc/ptdbg_ascend_quickstart.md +381 -0
  116. mindstudio-probe-1.0.1/msprobe/pytorch/doc/run_overflow_check.md +25 -0
  117. mindstudio-probe-1.0.1/msprobe/pytorch/doc//345/234/250/347/272/277/347/262/276/345/272/246/346/257/224/345/257/271.md +90 -0
  118. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/__init__.py +8 -0
  119. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/common/__init__.py +0 -0
  120. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/common/constant.py +67 -0
  121. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/common/counter.py +72 -0
  122. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/common/enums.py +37 -0
  123. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/common/params.py +129 -0
  124. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/common/utils.py +98 -0
  125. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/compare/grad_saver.py +183 -0
  126. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/compare/single_benchmark.py +104 -0
  127. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/main.py +102 -0
  128. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/perturbed_layers/__init__.py +0 -0
  129. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/perturbed_layers/base_layer.py +13 -0
  130. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/perturbed_layers/layer_factory.py +41 -0
  131. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/perturbed_layers/npu/__init__.py +0 -0
  132. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/perturbed_layers/npu/add_noise.py +90 -0
  133. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/perturbed_layers/npu/bit_noise.py +104 -0
  134. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/perturbed_layers/npu/change_value.py +63 -0
  135. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/perturbed_layers/npu/improve_precision.py +68 -0
  136. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/perturbed_layers/npu/no_change.py +28 -0
  137. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/perturbed_layers/npu/npu_base_layser.py +45 -0
  138. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/perturbed_layers/run_cpu.py +19 -0
  139. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/result_handlers/__init__.py +0 -0
  140. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/result_handlers/base_handler.py +203 -0
  141. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/result_handlers/check_handler.py +39 -0
  142. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/result_handlers/fix_handler.py +24 -0
  143. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/result_handlers/handler_factory.py +31 -0
  144. mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/result_handlers/preheat_handler.py +170 -0
  145. mindstudio-probe-1.0.1/msprobe/pytorch/functional/__init__.py +0 -0
  146. mindstudio-probe-1.0.1/msprobe/pytorch/functional/data_processor.py +0 -0
  147. mindstudio-probe-1.0.1/msprobe/pytorch/functional/dump_module.py +39 -0
  148. mindstudio-probe-1.0.1/msprobe/pytorch/hook_module/__init__.py +1 -0
  149. mindstudio-probe-1.0.1/msprobe/pytorch/hook_module/api_registry.py +161 -0
  150. mindstudio-probe-1.0.1/msprobe/pytorch/hook_module/hook_module.py +109 -0
  151. mindstudio-probe-1.0.1/msprobe/pytorch/hook_module/support_wrap_ops.yaml +1876 -0
  152. mindstudio-probe-1.0.1/msprobe/pytorch/hook_module/utils.py +29 -0
  153. mindstudio-probe-1.0.1/msprobe/pytorch/hook_module/wrap_aten.py +100 -0
  154. mindstudio-probe-1.0.1/msprobe/pytorch/hook_module/wrap_distributed.py +75 -0
  155. mindstudio-probe-1.0.1/msprobe/pytorch/hook_module/wrap_functional.py +108 -0
  156. mindstudio-probe-1.0.1/msprobe/pytorch/hook_module/wrap_npu_custom.py +73 -0
  157. mindstudio-probe-1.0.1/msprobe/pytorch/hook_module/wrap_tensor.py +72 -0
  158. mindstudio-probe-1.0.1/msprobe/pytorch/hook_module/wrap_torch.py +88 -0
  159. mindstudio-probe-1.0.1/msprobe/pytorch/hook_module/wrap_vf.py +64 -0
  160. mindstudio-probe-1.0.1/msprobe/pytorch/module_processer.py +98 -0
  161. mindstudio-probe-1.0.1/msprobe/pytorch/online_dispatch/__init__.py +20 -0
  162. mindstudio-probe-1.0.1/msprobe/pytorch/online_dispatch/compare.py +236 -0
  163. mindstudio-probe-1.0.1/msprobe/pytorch/online_dispatch/dispatch.py +274 -0
  164. mindstudio-probe-1.0.1/msprobe/pytorch/online_dispatch/dump_compare.py +186 -0
  165. mindstudio-probe-1.0.1/msprobe/pytorch/online_dispatch/single_compare.py +391 -0
  166. mindstudio-probe-1.0.1/msprobe/pytorch/online_dispatch/torch_ops_config.yaml +50 -0
  167. mindstudio-probe-1.0.1/msprobe/pytorch/online_dispatch/utils.py +187 -0
  168. mindstudio-probe-1.0.1/msprobe/pytorch/parse.py +4 -0
  169. mindstudio-probe-1.0.1/msprobe/pytorch/parse_tool/__init__.py +0 -0
  170. mindstudio-probe-1.0.1/msprobe/pytorch/parse_tool/cli.py +32 -0
  171. mindstudio-probe-1.0.1/msprobe/pytorch/parse_tool/lib/__init__.py +0 -0
  172. mindstudio-probe-1.0.1/msprobe/pytorch/parse_tool/lib/compare.py +259 -0
  173. mindstudio-probe-1.0.1/msprobe/pytorch/parse_tool/lib/config.py +51 -0
  174. mindstudio-probe-1.0.1/msprobe/pytorch/parse_tool/lib/file_desc.py +31 -0
  175. mindstudio-probe-1.0.1/msprobe/pytorch/parse_tool/lib/interactive_cli.py +102 -0
  176. mindstudio-probe-1.0.1/msprobe/pytorch/parse_tool/lib/parse_exception.py +54 -0
  177. mindstudio-probe-1.0.1/msprobe/pytorch/parse_tool/lib/parse_tool.py +158 -0
  178. mindstudio-probe-1.0.1/msprobe/pytorch/parse_tool/lib/utils.py +367 -0
  179. mindstudio-probe-1.0.1/msprobe/pytorch/parse_tool/lib/visualization.py +90 -0
  180. mindstudio-probe-1.0.1/msprobe/pytorch/pt_config.py +93 -0
  181. mindstudio-probe-1.0.1/msprobe/pytorch/service.py +167 -0
  182. mindstudio-probe-1.0.1/msprobe/test/core_ut/common/test_utils.py +345 -0
  183. mindstudio-probe-1.0.1/msprobe/test/core_ut/data_dump/test_data_collector.py +47 -0
  184. mindstudio-probe-1.0.1/msprobe/test/core_ut/data_dump/test_json_writer.py +183 -0
  185. mindstudio-probe-1.0.1/msprobe/test/core_ut/data_dump/test_scope.py +151 -0
  186. mindstudio-probe-1.0.1/msprobe/test/core_ut/test_common_config.py +152 -0
  187. mindstudio-probe-1.0.1/msprobe/test/core_ut/test_file_check.py +218 -0
  188. mindstudio-probe-1.0.1/msprobe/test/core_ut/test_log.py +109 -0
  189. mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_api_kbk_dump.py +51 -0
  190. mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_debugger_config.py +42 -0
  191. mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_dump_tool_factory.py +51 -0
  192. mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_kernel_graph_dump.py +66 -0
  193. mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_kernel_graph_overflow_check.py +63 -0
  194. mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_ms_config.py +69 -0
  195. mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_overflow_check_tool_factory.py +51 -0
  196. mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_precision_debugger.py +56 -0
  197. mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_task_handler_factory.py +58 -0
  198. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/advisor/test_advisor.py +83 -0
  199. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/common/test_common_utils.py +108 -0
  200. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/common/test_config.py +39 -0
  201. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/compare/test_algorithm.py +112 -0
  202. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/compare/test_api_precision_compare.py +77 -0
  203. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/compare/test_compare.py +125 -0
  204. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/compare/test_compare_column.py +10 -0
  205. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/compare/test_compare_utils.py +43 -0
  206. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/run_ut/dump.json +179 -0
  207. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/run_ut/forward.json +63 -0
  208. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/run_ut/test_data_generate.py +99 -0
  209. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/run_ut/test_multi_run_ut.py +115 -0
  210. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/run_ut/test_run_ut.py +72 -0
  211. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/compare/test_acc_compare.py +17 -0
  212. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/free_benchmark/perturbed_layers/test_perturbed_layser.py +105 -0
  213. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/free_benchmark/result_handlers/test_result_handler.py +121 -0
  214. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/free_benchmark/test_main.py +101 -0
  215. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/functional/test_dump_module.py +15 -0
  216. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/hook_module/test_api_registry.py +130 -0
  217. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/hook_module/test_hook_module.py +42 -0
  218. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/hook_module/test_wrap_aten.py +65 -0
  219. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/hook_module/test_wrap_distributed.py +35 -0
  220. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/hook_module/test_wrap_functional.py +20 -0
  221. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/hook_module/test_wrap_tensor.py +35 -0
  222. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/hook_module/test_wrap_torch.py +43 -0
  223. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/hook_module/test_wrap_vf.py +11 -0
  224. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/test_pt_config.py +69 -0
  225. mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/test_service.py +59 -0
  226. mindstudio-probe-1.0.1/msprobe/test/resources/advisor.txt +3 -0
  227. mindstudio-probe-1.0.1/msprobe/test/resources/compare_result_20230703104808.csv +9 -0
  228. mindstudio-probe-1.0.1/msprobe/test/resources/compare_result_without_accuracy.csv +9 -0
  229. mindstudio-probe-1.0.1/msprobe/test/resources/config.yaml +3 -0
  230. mindstudio-probe-1.0.1/msprobe/test/resources/npu_test.pkl +8 -0
  231. mindstudio-probe-1.0.1/msprobe/test/run_test.sh +30 -0
  232. mindstudio-probe-1.0.1/msprobe/test/run_ut.py +58 -0
  233. mindstudio-probe-1.0.1/msprobe/test/test_module_processer.py +64 -0
  234. mindstudio-probe-1.0.1/setup.cfg +4 -0
  235. mindstudio-probe-1.0.1/setup.py +67 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,3 @@
1
+ include README.md
2
+ include LICENSE
3
+ recursive-include msprobe *
@@ -0,0 +1,30 @@
1
+ Metadata-Version: 2.1
2
+ Name: mindstudio-probe
3
+ Version: 1.0.1
4
+ Summary: Pytorch Ascend Probe Utils
5
+ Home-page: https://gitee.com/ascend/mstt/tree/master/debug/accuracy_tools/msprobe
6
+ Author: Ascend Team
7
+ Author-email: pmail_mindstudio@huawei.com
8
+ License: Apache License 2.0
9
+ Keywords: pytorch msprobe ascend
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Intended Audience :: Education
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Topic :: Scientific/Engineering
15
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
16
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
+ Classifier: Topic :: Software Development
18
+ Classifier: Topic :: Software Development :: Libraries
19
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
+ Requires-Python: >=3.6.2
21
+ License-File: LICENSE
22
+ Requires-Dist: wheel
23
+ Requires-Dist: numpy
24
+ Requires-Dist: pandas>=1.3.5
25
+ Requires-Dist: pyyaml
26
+ Requires-Dist: rich
27
+ Requires-Dist: tqdm
28
+ Requires-Dist: openpyxl
29
+
30
+ MindStudio-Probe is a set of tools for diagnosing and improving model accuracy on Ascend NPU, including API acc checker, ptdbg, grad tool etc.
@@ -0,0 +1,20 @@
1
+ # 精度工具
2
+
3
+ MindStudio Training Tools工具针对模型训练精度问题设计推出了一系列精度工具,包括模型精度预检工具和PyTorch精度工具的精度比对功能、溢出检测功能、通信精度检测等功能。这些工具有各自侧重的场景,用于辅助用户定位模型精度问题。
4
+
5
+ ### 子功能介绍
6
+
7
+ NPU上训练的网络存在精度问题,精度指标(loss或者具体的评价指标)与标杆相差较多。对于该场景的问题,可以使用**Ascend模型精度预检工具**或者**PyTorch精度工具**进行定位。
8
+
9
+ | 工具名称 | 说明 |
10
+ | ------------------------------------------------------------ | ------------------------------------------------------------ |
11
+ | [api_accuracy_checker(Ascend模型精度预检工具)](https://gitee.com/ascend/mstt/tree/master/debug/accuracy_tools/api_accuracy_checker) | 在昇腾NPU上扫描用户训练模型中所有API,进行API复现,给出精度情况的诊断和分析。 |
12
+ | [ptdbg_ascend(PyTorch精度工具)](https://gitee.com/ascend/mstt/tree/master/debug/accuracy_tools/ptdbg_ascend) | 进行PyTorch整网API粒度的数据dump、精度比对和溢出检测,从而定位PyTorch训练场景下的精度问题。 |
13
+
14
+ ### 场景介绍
15
+
16
+ **Ascend模型精度预检工具**会对全网每一个API根据其实际训练中的shape、dtype和数值范围生成随机的输入,对比它与标杆的输出差异,并指出输出差异过大不符合精度标准的API。该工具检查单API精度问题准确率超过80%,对比一般dump比对方法减少落盘数据量99%以上。具体使用请参见《[Ascend模型精度预检工具](https://gitee.com/ascend/mstt/blob/master/debug/accuracy_tools/api_accuracy_checker/README.md)》
17
+
18
+ **PyTorch精度工具精度比对功能**可以对NPU整网API数据进行与CPU或GPU标杆数据的精度比对,从而检测精度问题。具体来说,dump统计量、分段dump、模块化dump,通讯算子dump等功能可以用较轻的数据量实现不同侧重的精度比对,从而定位精度问题。具体使用请参见《[ptdbg_ascend精度工具功能说明](https://gitee.com/ascend/mstt/tree/master/debug/accuracy_tools/ptdbg_ascend/doc)》。
19
+
20
+ **PyTorch精度工具溢出检测功能**是在判断训练网络可能存在溢出现象时,例如某个step的loss突然变成inf nan,或者混精场景下loss_scale不断减小,可以通过ptdbg_ascend的精度检测工具检测API的溢出情况。具体使用请参见《[ptdbg_ascend精度工具功能说明](https://gitee.com/ascend/mstt/tree/master/debug/accuracy_tools/ptdbg_ascend/doc)》。
@@ -0,0 +1,30 @@
1
+ Metadata-Version: 2.1
2
+ Name: mindstudio-probe
3
+ Version: 1.0.1
4
+ Summary: Pytorch Ascend Probe Utils
5
+ Home-page: https://gitee.com/ascend/mstt/tree/master/debug/accuracy_tools/msprobe
6
+ Author: Ascend Team
7
+ Author-email: pmail_mindstudio@huawei.com
8
+ License: Apache License 2.0
9
+ Keywords: pytorch msprobe ascend
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Intended Audience :: Education
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Topic :: Scientific/Engineering
15
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
16
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
+ Classifier: Topic :: Software Development
18
+ Classifier: Topic :: Software Development :: Libraries
19
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
+ Requires-Python: >=3.6.2
21
+ License-File: LICENSE
22
+ Requires-Dist: wheel
23
+ Requires-Dist: numpy
24
+ Requires-Dist: pandas>=1.3.5
25
+ Requires-Dist: pyyaml
26
+ Requires-Dist: rich
27
+ Requires-Dist: tqdm
28
+ Requires-Dist: openpyxl
29
+
30
+ MindStudio-Probe is a set of tools for diagnosing and improving model accuracy on Ascend NPU, including API acc checker, ptdbg, grad tool etc.
@@ -0,0 +1,233 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ setup.py
5
+ mindstudio_probe.egg-info/PKG-INFO
6
+ mindstudio_probe.egg-info/SOURCES.txt
7
+ mindstudio_probe.egg-info/dependency_links.txt
8
+ mindstudio_probe.egg-info/entry_points.txt
9
+ mindstudio_probe.egg-info/not-zip-safe
10
+ mindstudio_probe.egg-info/requires.txt
11
+ mindstudio_probe.egg-info/top_level.txt
12
+ msprobe/README.md
13
+ msprobe/__init__.py
14
+ msprobe/msprobe.py
15
+ msprobe/config/README.md
16
+ msprobe/config/config.json
17
+ msprobe/config/img/free_benchmark.png
18
+ msprobe/core/common_config.py
19
+ msprobe/core/common/const.py
20
+ msprobe/core/common/exceptions.py
21
+ msprobe/core/common/file_check.py
22
+ msprobe/core/common/log.py
23
+ msprobe/core/common/utils.py
24
+ msprobe/core/data_dump/data_collector.py
25
+ msprobe/core/data_dump/json_writer.py
26
+ msprobe/core/data_dump/scope.py
27
+ msprobe/core/data_dump/data_processor/base.py
28
+ msprobe/core/data_dump/data_processor/factory.py
29
+ msprobe/core/data_dump/data_processor/pytorch_processor.py
30
+ msprobe/mindspore/__init__.py
31
+ msprobe/mindspore/ms_config.py
32
+ msprobe/mindspore/task_handler_factory.py
33
+ msprobe/mindspore/debugger/__init__.py
34
+ msprobe/mindspore/debugger/debugger_config.py
35
+ msprobe/mindspore/debugger/precision_debugger.py
36
+ msprobe/mindspore/doc/dump.md
37
+ msprobe/mindspore/dump/__init__.py
38
+ msprobe/mindspore/dump/api_kbk_dump.py
39
+ msprobe/mindspore/dump/dump_tool_factory.py
40
+ msprobe/mindspore/dump/kernel_graph_dump.py
41
+ msprobe/mindspore/overflow_check/__init__.py
42
+ msprobe/mindspore/overflow_check/kernel_graph_overflow_check.py
43
+ msprobe/mindspore/overflow_check/overflow_check_tool_factory.py
44
+ msprobe/pytorch/__init__.py
45
+ msprobe/pytorch/module_processer.py
46
+ msprobe/pytorch/parse.py
47
+ msprobe/pytorch/pt_config.py
48
+ msprobe/pytorch/service.py
49
+ msprobe/pytorch/advisor/advisor.py
50
+ msprobe/pytorch/advisor/advisor_const.py
51
+ msprobe/pytorch/advisor/advisor_result.py
52
+ msprobe/pytorch/api_accuracy_checker/.keep
53
+ msprobe/pytorch/api_accuracy_checker/__init__.py
54
+ msprobe/pytorch/api_accuracy_checker/config.yaml
55
+ msprobe/pytorch/api_accuracy_checker/common/.keep
56
+ msprobe/pytorch/api_accuracy_checker/common/__init__.py
57
+ msprobe/pytorch/api_accuracy_checker/common/config.py
58
+ msprobe/pytorch/api_accuracy_checker/common/utils.py
59
+ msprobe/pytorch/api_accuracy_checker/compare/__init__.py
60
+ msprobe/pytorch/api_accuracy_checker/compare/algorithm.py
61
+ msprobe/pytorch/api_accuracy_checker/compare/api_precision_compare.py
62
+ msprobe/pytorch/api_accuracy_checker/compare/api_precision_standard.yaml
63
+ msprobe/pytorch/api_accuracy_checker/compare/api_precision_threshold.yaml
64
+ msprobe/pytorch/api_accuracy_checker/compare/compare.py
65
+ msprobe/pytorch/api_accuracy_checker/compare/compare_column.py
66
+ msprobe/pytorch/api_accuracy_checker/compare/compare_utils.py
67
+ msprobe/pytorch/api_accuracy_checker/run_ut/.keep
68
+ msprobe/pytorch/api_accuracy_checker/run_ut/__init__.py
69
+ msprobe/pytorch/api_accuracy_checker/run_ut/data_generate.py
70
+ msprobe/pytorch/api_accuracy_checker/run_ut/multi_run_ut.py
71
+ msprobe/pytorch/api_accuracy_checker/run_ut/run_overflow_check.py
72
+ msprobe/pytorch/api_accuracy_checker/run_ut/run_ut.py
73
+ msprobe/pytorch/api_accuracy_checker/run_ut/run_ut_utils.py
74
+ msprobe/pytorch/api_accuracy_checker/run_ut/torch_ut_setting.json
75
+ msprobe/pytorch/common/__init__.py
76
+ msprobe/pytorch/common/compare_script.template
77
+ msprobe/pytorch/common/log.py
78
+ msprobe/pytorch/common/parse_json.py
79
+ msprobe/pytorch/common/utils.py
80
+ msprobe/pytorch/compare/acc_compare.py
81
+ msprobe/pytorch/compare/distributed_compare.py
82
+ msprobe/pytorch/compare/highlight.py
83
+ msprobe/pytorch/compare/mapping.yaml
84
+ msprobe/pytorch/compare/match.py
85
+ msprobe/pytorch/compare/npy_compare.py
86
+ msprobe/pytorch/debugger/__init__.py
87
+ msprobe/pytorch/debugger/debugger_config.py
88
+ msprobe/pytorch/debugger/precision_debugger.py
89
+ msprobe/pytorch/doc/FAQ.md
90
+ msprobe/pytorch/doc/api_accuracy_checker.md
91
+ msprobe/pytorch/doc/atat精度工具数据dump标准性能基线报告.md
92
+ msprobe/pytorch/doc/dump.md
93
+ msprobe/pytorch/doc/parse_tool.md
94
+ msprobe/pytorch/doc/ptdbg_ascend_compare.md
95
+ msprobe/pytorch/doc/ptdbg_ascend_overview.md
96
+ msprobe/pytorch/doc/ptdbg_ascend_quickstart.md
97
+ msprobe/pytorch/doc/run_overflow_check.md
98
+ msprobe/pytorch/doc/在线精度比对.md
99
+ msprobe/pytorch/doc/img/BLOOM-7B_1.png
100
+ msprobe/pytorch/doc/img/BLOOM-7B_2.png
101
+ msprobe/pytorch/doc/img/BLOOM-7B_3.png
102
+ msprobe/pytorch/doc/img/BLOOM-7B_4.png
103
+ msprobe/pytorch/doc/img/GPT-3_1.png
104
+ msprobe/pytorch/doc/img/GPT-3_2.png
105
+ msprobe/pytorch/doc/img/GPT-3_3.png
106
+ msprobe/pytorch/doc/img/GPT-3_4.png
107
+ msprobe/pytorch/doc/img/GPT-3_5.png
108
+ msprobe/pytorch/doc/img/GPT-3_6.png
109
+ msprobe/pytorch/doc/img/GPT-3_7.png
110
+ msprobe/pytorch/doc/img/GPT-3_8.png
111
+ msprobe/pytorch/doc/img/YOLOV5S_1.png
112
+ msprobe/pytorch/doc/img/YOLOV5S_2.png
113
+ msprobe/pytorch/doc/img/accuracy_checking_details.png
114
+ msprobe/pytorch/doc/img/accuracy_checking_result.png
115
+ msprobe/pytorch/doc/img/api_precision_compare_details.png
116
+ msprobe/pytorch/doc/img/api_precision_compare_result.png
117
+ msprobe/pytorch/doc/img/auto_analyze_log.png
118
+ msprobe/pytorch/doc/img/compare_result_pkl.png
119
+ msprobe/pytorch/doc/img/compare_result_pkl_md5.png.png
120
+ msprobe/pytorch/doc/img/cpu_info.png
121
+ msprobe/pytorch/doc/img/module_compare.png
122
+ msprobe/pytorch/free_benchmark/__init__.py
123
+ msprobe/pytorch/free_benchmark/main.py
124
+ msprobe/pytorch/free_benchmark/common/__init__.py
125
+ msprobe/pytorch/free_benchmark/common/constant.py
126
+ msprobe/pytorch/free_benchmark/common/counter.py
127
+ msprobe/pytorch/free_benchmark/common/enums.py
128
+ msprobe/pytorch/free_benchmark/common/params.py
129
+ msprobe/pytorch/free_benchmark/common/utils.py
130
+ msprobe/pytorch/free_benchmark/compare/grad_saver.py
131
+ msprobe/pytorch/free_benchmark/compare/single_benchmark.py
132
+ msprobe/pytorch/free_benchmark/perturbed_layers/__init__.py
133
+ msprobe/pytorch/free_benchmark/perturbed_layers/base_layer.py
134
+ msprobe/pytorch/free_benchmark/perturbed_layers/layer_factory.py
135
+ msprobe/pytorch/free_benchmark/perturbed_layers/run_cpu.py
136
+ msprobe/pytorch/free_benchmark/perturbed_layers/npu/__init__.py
137
+ msprobe/pytorch/free_benchmark/perturbed_layers/npu/add_noise.py
138
+ msprobe/pytorch/free_benchmark/perturbed_layers/npu/bit_noise.py
139
+ msprobe/pytorch/free_benchmark/perturbed_layers/npu/change_value.py
140
+ msprobe/pytorch/free_benchmark/perturbed_layers/npu/improve_precision.py
141
+ msprobe/pytorch/free_benchmark/perturbed_layers/npu/no_change.py
142
+ msprobe/pytorch/free_benchmark/perturbed_layers/npu/npu_base_layser.py
143
+ msprobe/pytorch/free_benchmark/result_handlers/__init__.py
144
+ msprobe/pytorch/free_benchmark/result_handlers/base_handler.py
145
+ msprobe/pytorch/free_benchmark/result_handlers/check_handler.py
146
+ msprobe/pytorch/free_benchmark/result_handlers/fix_handler.py
147
+ msprobe/pytorch/free_benchmark/result_handlers/handler_factory.py
148
+ msprobe/pytorch/free_benchmark/result_handlers/preheat_handler.py
149
+ msprobe/pytorch/functional/__init__.py
150
+ msprobe/pytorch/functional/data_processor.py
151
+ msprobe/pytorch/functional/dump_module.py
152
+ msprobe/pytorch/hook_module/__init__.py
153
+ msprobe/pytorch/hook_module/api_registry.py
154
+ msprobe/pytorch/hook_module/hook_module.py
155
+ msprobe/pytorch/hook_module/support_wrap_ops.yaml
156
+ msprobe/pytorch/hook_module/utils.py
157
+ msprobe/pytorch/hook_module/wrap_aten.py
158
+ msprobe/pytorch/hook_module/wrap_distributed.py
159
+ msprobe/pytorch/hook_module/wrap_functional.py
160
+ msprobe/pytorch/hook_module/wrap_npu_custom.py
161
+ msprobe/pytorch/hook_module/wrap_tensor.py
162
+ msprobe/pytorch/hook_module/wrap_torch.py
163
+ msprobe/pytorch/hook_module/wrap_vf.py
164
+ msprobe/pytorch/online_dispatch/__init__.py
165
+ msprobe/pytorch/online_dispatch/compare.py
166
+ msprobe/pytorch/online_dispatch/dispatch.py
167
+ msprobe/pytorch/online_dispatch/dump_compare.py
168
+ msprobe/pytorch/online_dispatch/single_compare.py
169
+ msprobe/pytorch/online_dispatch/torch_ops_config.yaml
170
+ msprobe/pytorch/online_dispatch/utils.py
171
+ msprobe/pytorch/parse_tool/__init__.py
172
+ msprobe/pytorch/parse_tool/cli.py
173
+ msprobe/pytorch/parse_tool/lib/__init__.py
174
+ msprobe/pytorch/parse_tool/lib/compare.py
175
+ msprobe/pytorch/parse_tool/lib/config.py
176
+ msprobe/pytorch/parse_tool/lib/file_desc.py
177
+ msprobe/pytorch/parse_tool/lib/interactive_cli.py
178
+ msprobe/pytorch/parse_tool/lib/parse_exception.py
179
+ msprobe/pytorch/parse_tool/lib/parse_tool.py
180
+ msprobe/pytorch/parse_tool/lib/utils.py
181
+ msprobe/pytorch/parse_tool/lib/visualization.py
182
+ msprobe/test/run_test.sh
183
+ msprobe/test/run_ut.py
184
+ msprobe/test/test_module_processer.py
185
+ msprobe/test/core_ut/test_common_config.py
186
+ msprobe/test/core_ut/test_file_check.py
187
+ msprobe/test/core_ut/test_log.py
188
+ msprobe/test/core_ut/common/test_utils.py
189
+ msprobe/test/core_ut/data_dump/test_data_collector.py
190
+ msprobe/test/core_ut/data_dump/test_json_writer.py
191
+ msprobe/test/core_ut/data_dump/test_scope.py
192
+ msprobe/test/mindspore_ut/test_api_kbk_dump.py
193
+ msprobe/test/mindspore_ut/test_debugger_config.py
194
+ msprobe/test/mindspore_ut/test_dump_tool_factory.py
195
+ msprobe/test/mindspore_ut/test_kernel_graph_dump.py
196
+ msprobe/test/mindspore_ut/test_kernel_graph_overflow_check.py
197
+ msprobe/test/mindspore_ut/test_ms_config.py
198
+ msprobe/test/mindspore_ut/test_overflow_check_tool_factory.py
199
+ msprobe/test/mindspore_ut/test_precision_debugger.py
200
+ msprobe/test/mindspore_ut/test_task_handler_factory.py
201
+ msprobe/test/pytorch_ut/test_pt_config.py
202
+ msprobe/test/pytorch_ut/test_service.py
203
+ msprobe/test/pytorch_ut/advisor/test_advisor.py
204
+ msprobe/test/pytorch_ut/api_accuracy_checker/common/test_common_utils.py
205
+ msprobe/test/pytorch_ut/api_accuracy_checker/common/test_config.py
206
+ msprobe/test/pytorch_ut/api_accuracy_checker/compare/test_algorithm.py
207
+ msprobe/test/pytorch_ut/api_accuracy_checker/compare/test_api_precision_compare.py
208
+ msprobe/test/pytorch_ut/api_accuracy_checker/compare/test_compare.py
209
+ msprobe/test/pytorch_ut/api_accuracy_checker/compare/test_compare_column.py
210
+ msprobe/test/pytorch_ut/api_accuracy_checker/compare/test_compare_utils.py
211
+ msprobe/test/pytorch_ut/api_accuracy_checker/run_ut/dump.json
212
+ msprobe/test/pytorch_ut/api_accuracy_checker/run_ut/forward.json
213
+ msprobe/test/pytorch_ut/api_accuracy_checker/run_ut/test_data_generate.py
214
+ msprobe/test/pytorch_ut/api_accuracy_checker/run_ut/test_multi_run_ut.py
215
+ msprobe/test/pytorch_ut/api_accuracy_checker/run_ut/test_run_ut.py
216
+ msprobe/test/pytorch_ut/compare/test_acc_compare.py
217
+ msprobe/test/pytorch_ut/free_benchmark/test_main.py
218
+ msprobe/test/pytorch_ut/free_benchmark/perturbed_layers/test_perturbed_layser.py
219
+ msprobe/test/pytorch_ut/free_benchmark/result_handlers/test_result_handler.py
220
+ msprobe/test/pytorch_ut/functional/test_dump_module.py
221
+ msprobe/test/pytorch_ut/hook_module/test_api_registry.py
222
+ msprobe/test/pytorch_ut/hook_module/test_hook_module.py
223
+ msprobe/test/pytorch_ut/hook_module/test_wrap_aten.py
224
+ msprobe/test/pytorch_ut/hook_module/test_wrap_distributed.py
225
+ msprobe/test/pytorch_ut/hook_module/test_wrap_functional.py
226
+ msprobe/test/pytorch_ut/hook_module/test_wrap_tensor.py
227
+ msprobe/test/pytorch_ut/hook_module/test_wrap_torch.py
228
+ msprobe/test/pytorch_ut/hook_module/test_wrap_vf.py
229
+ msprobe/test/resources/advisor.txt
230
+ msprobe/test/resources/compare_result_20230703104808.csv
231
+ msprobe/test/resources/compare_result_without_accuracy.csv
232
+ msprobe/test/resources/config.yaml
233
+ msprobe/test/resources/npu_test.pkl
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ msprobe = msprobe.msprobe:main
@@ -0,0 +1,7 @@
1
+ wheel
2
+ numpy
3
+ pandas>=1.3.5
4
+ pyyaml
5
+ rich
6
+ tqdm
7
+ openpyxl