mindstudio-probe 1.0.1__tar.gz → 1.0.3__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.
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/MANIFEST.in +2 -0
- {mindstudio-probe-1.0.1/mindstudio_probe.egg-info → mindstudio-probe-1.0.3}/PKG-INFO +5 -1
- mindstudio-probe-1.0.3/README.md +21 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3/mindstudio_probe.egg-info}/PKG-INFO +5 -1
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/mindstudio_probe.egg-info/SOURCES.txt +105 -61
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/mindstudio_probe.egg-info/requires.txt +4 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/README.md +78 -23
- mindstudio-probe-1.0.3/msprobe/__init__.py +1 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/config/README.md +182 -40
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/config/config.json +22 -0
- {mindstudio-probe-1.0.1/msprobe/pytorch → mindstudio-probe-1.0.3/msprobe/core}/advisor/advisor.py +3 -3
- {mindstudio-probe-1.0.1/msprobe/pytorch → mindstudio-probe-1.0.3/msprobe/core}/advisor/advisor_result.py +2 -2
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/core/common/const.py +82 -5
- mindstudio-probe-1.0.3/msprobe/core/common/exceptions.py +100 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/core/common/file_check.py +19 -1
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/core/common/log.py +15 -1
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/core/common/utils.py +130 -30
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/core/common_config.py +32 -19
- mindstudio-probe-1.0.3/msprobe/core/compare/acc_compare.py +299 -0
- mindstudio-probe-1.0.3/msprobe/core/compare/check.py +95 -0
- mindstudio-probe-1.0.3/msprobe/core/compare/compare_cli.py +49 -0
- mindstudio-probe-1.0.3/msprobe/core/compare/highlight.py +222 -0
- mindstudio-probe-1.0.3/msprobe/core/compare/multiprocessing_compute.py +149 -0
- {mindstudio-probe-1.0.1/msprobe/pytorch → mindstudio-probe-1.0.3/msprobe/core}/compare/npy_compare.py +55 -4
- mindstudio-probe-1.0.3/msprobe/core/compare/utils.py +429 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/core/data_dump/data_collector.py +39 -35
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/core/data_dump/data_processor/base.py +85 -37
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/core/data_dump/data_processor/factory.py +5 -7
- mindstudio-probe-1.0.3/msprobe/core/data_dump/data_processor/mindspore_processor.py +198 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/core/data_dump/data_processor/pytorch_processor.py +94 -51
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/core/data_dump/json_writer.py +11 -11
- mindstudio-probe-1.0.3/msprobe/core/grad_probe/constant.py +71 -0
- mindstudio-probe-1.0.3/msprobe/core/grad_probe/grad_compare.py +175 -0
- mindstudio-probe-1.0.3/msprobe/core/grad_probe/utils.py +52 -0
- mindstudio-probe-1.0.3/msprobe/doc/grad_probe/grad_probe.md +207 -0
- mindstudio-probe-1.0.3/msprobe/doc/grad_probe/img/image-1.png +0 -0
- mindstudio-probe-1.0.3/msprobe/doc/grad_probe/img/image-2.png +0 -0
- mindstudio-probe-1.0.3/msprobe/doc/grad_probe/img/image-3.png +0 -0
- mindstudio-probe-1.0.3/msprobe/doc/grad_probe/img/image-4.png +0 -0
- mindstudio-probe-1.0.3/msprobe/doc/grad_probe/img/image.png +0 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/api_accuracy_checker/api_accuracy_checker.py +246 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/api_accuracy_checker/api_info.py +69 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/api_accuracy_checker/api_runner.py +152 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/api_accuracy_checker/base_compare_algorithm.py +197 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/api_accuracy_checker/compute_element.py +224 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/api_accuracy_checker/main.py +16 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/api_accuracy_checker/type_mapping.py +114 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/api_accuracy_checker/utils.py +63 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/cell_processor.py +34 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/common/const.py +87 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/common/log.py +38 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/common/utils.py +57 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/compare/distributed_compare.py +75 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/compare/ms_compare.py +117 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/compare/ms_graph_compare.py +317 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/compare/ms_to_pt_api.yaml +399 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/debugger/debugger_config.py +74 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/debugger/precision_debugger.py +107 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/doc/compare.md +58 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/doc/dump.md +217 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/dump/dump_tool_factory.py +35 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/dump/hook_cell/api_registry.py +104 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/dump/hook_cell/hook_cell.py +53 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/dump/hook_cell/support_wrap_ops.yaml +925 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/dump/hook_cell/wrap_functional.py +91 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/dump/hook_cell/wrap_tensor.py +63 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/dump/jit_dump.py +56 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/dump/kernel_kbyk_dump.py +65 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/api_pynative_self_check.py +116 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/common/config.py +12 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/common/handler_params.py +17 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/common/utils.py +71 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/data/support_wrap_ops.yaml +842 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/decorator/dec_forward.py +42 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/decorator/decorator_factory.py +107 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/handler/base_handler.py +90 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/handler/check_handler.py +41 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/handler/fix_handler.py +36 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/handler/handler_factory.py +21 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/perturbation/add_noise.py +67 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/perturbation/base_perturbation.py +21 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/perturbation/bit_noise.py +63 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/perturbation/improve_precision.py +34 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/perturbation/no_change.py +12 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/perturbation/perturbation_factory.py +27 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/self_check_tool_factory.py +33 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/grad_probe/global_context.py +91 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/grad_probe/grad_analyzer.py +231 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/grad_probe/grad_monitor.py +27 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/grad_probe/grad_stat_csv.py +132 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/grad_probe/hook.py +92 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/grad_probe/utils.py +29 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/ms_config.py +126 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/overflow_check/overflow_check_tool_factory.py +34 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/runtime.py +4 -0
- mindstudio-probe-1.0.3/msprobe/mindspore/service.py +354 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/mindspore/task_handler_factory.py +7 -4
- mindstudio-probe-1.0.3/msprobe/msprobe.py +107 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/__init__.py +1 -1
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/api_accuracy_checker/common/config.py +21 -16
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/api_accuracy_checker/common/utils.py +1 -60
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/api_accuracy_checker/compare/algorithm.py +2 -5
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/api_accuracy_checker/compare/api_precision_compare.py +46 -10
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/api_accuracy_checker/compare/compare.py +84 -48
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/api_accuracy_checker/compare/compare_utils.py +8 -12
- mindstudio-probe-1.0.3/msprobe/pytorch/api_accuracy_checker/config.yaml +10 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/api_accuracy_checker/run_ut/data_generate.py +15 -11
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/api_accuracy_checker/run_ut/multi_run_ut.py +11 -15
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/api_accuracy_checker/run_ut/run_overflow_check.py +16 -9
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/api_accuracy_checker/run_ut/run_ut.py +193 -105
- mindstudio-probe-1.0.3/msprobe/pytorch/api_accuracy_checker/run_ut/run_ut_utils.py +74 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/attl.py +202 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/client.py +324 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/device_dispatch.py +204 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/server.py +218 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/ssl_config.py +10 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/bench_functions/__init__.py +15 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/bench_functions/apply_adam_w.py +28 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/bench_functions/confusion_transpose.py +19 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/bench_functions/fast_gelu.py +55 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/bench_functions/layer_norm_eval.py +6 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/bench_functions/linear.py +12 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/bench_functions/matmul_backward.py +48 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/bench_functions/npu_fusion_attention.py +421 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/bench_functions/rms_norm.py +15 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/bench_functions/rotary_mul.py +52 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/bench_functions/scaled_mask_softmax.py +26 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/bench_functions/swiglu.py +55 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/common/parse_json.py +3 -1
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/common/utils.py +83 -7
- mindstudio-probe-1.0.3/msprobe/pytorch/compare/distributed_compare.py +66 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/compare/match.py +3 -6
- mindstudio-probe-1.0.3/msprobe/pytorch/compare/pt_compare.py +40 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/debugger/debugger_config.py +11 -2
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/debugger/precision_debugger.py +34 -4
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/api_accuracy_checker.md +57 -13
- mindstudio-probe-1.0.3/msprobe/pytorch/doc/api_accuracy_checker_online.md +187 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/dump.md +73 -20
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/ptdbg_ascend_compare.md +75 -11
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/ptdbg_ascend_quickstart.md +3 -3
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/run_overflow_check.md +1 -1
- mindstudio-probe-1.0.3/msprobe/pytorch/doc//346/227/240/346/240/207/346/235/206/345/267/245/345/205/267/345/234/272/346/231/257/351/252/214/350/257/201/345/222/214/346/200/247/350/203/275/345/237/272/347/272/277/346/212/245/345/221/212.md +151 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/free_benchmark/common/__init__.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/common/constant.py +3 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/common/utils.py +4 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/compare/grad_saver.py +22 -26
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/main.py +7 -4
- mindstudio-probe-1.0.3/msprobe/pytorch/free_benchmark/perturbed_layers/__init__.py +0 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/free_benchmark/perturbed_layers/npu/__init__.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/add_noise.py +1 -1
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/bit_noise.py +1 -1
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/change_value.py +1 -1
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/improve_precision.py +3 -3
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/no_change.py +1 -1
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/perturbed_layers/run_cpu.py +1 -1
- mindstudio-probe-1.0.3/msprobe/pytorch/free_benchmark/result_handlers/__init__.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/result_handlers/base_handler.py +43 -29
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/result_handlers/handler_factory.py +0 -1
- mindstudio-probe-1.0.3/msprobe/pytorch/function_factory.py +75 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/functional/__init__.py +0 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/functional/data_processor.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/functional/dump_module.py +4 -4
- mindstudio-probe-1.0.3/msprobe/pytorch/grad_probe/__init__.py +0 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/grad_probe/grad_monitor.py +90 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/grad_probe/grad_stat_csv.py +129 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/hook_module/hook_module.py +14 -3
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/hook_module/support_wrap_ops.yaml +2 -1
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/hook_module/utils.py +9 -9
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/hook_module/wrap_aten.py +20 -10
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/hook_module/wrap_distributed.py +10 -7
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/hook_module/wrap_functional.py +4 -7
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/hook_module/wrap_npu_custom.py +21 -10
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/hook_module/wrap_tensor.py +5 -6
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/hook_module/wrap_torch.py +5 -7
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/hook_module/wrap_vf.py +6 -8
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/module_processer.py +53 -13
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/online_dispatch/compare.py +4 -4
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/online_dispatch/dispatch.py +39 -41
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/online_dispatch/dump_compare.py +17 -47
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/online_dispatch/single_compare.py +5 -5
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/online_dispatch/utils.py +2 -43
- mindstudio-probe-1.0.3/msprobe/pytorch/parse_tool/__init__.py +0 -0
- mindstudio-probe-1.0.3/msprobe/pytorch/parse_tool/lib/__init__.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/parse_tool/lib/compare.py +31 -19
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/parse_tool/lib/config.py +2 -1
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/parse_tool/lib/parse_tool.py +4 -4
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/parse_tool/lib/utils.py +34 -80
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/parse_tool/lib/visualization.py +4 -3
- mindstudio-probe-1.0.3/msprobe/pytorch/pt_config.py +187 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/service.py +104 -19
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/setup.py +8 -3
- mindstudio-probe-1.0.1/README.md +0 -20
- mindstudio-probe-1.0.1/msprobe/core/common/exceptions.py +0 -88
- mindstudio-probe-1.0.1/msprobe/mindspore/debugger/debugger_config.py +0 -51
- mindstudio-probe-1.0.1/msprobe/mindspore/debugger/precision_debugger.py +0 -32
- mindstudio-probe-1.0.1/msprobe/mindspore/doc/dump.md +0 -65
- mindstudio-probe-1.0.1/msprobe/mindspore/dump/api_kbk_dump.py +0 -55
- mindstudio-probe-1.0.1/msprobe/mindspore/dump/dump_tool_factory.py +0 -38
- mindstudio-probe-1.0.1/msprobe/mindspore/ms_config.py +0 -78
- mindstudio-probe-1.0.1/msprobe/mindspore/overflow_check/overflow_check_tool_factory.py +0 -32
- mindstudio-probe-1.0.1/msprobe/msprobe.py +0 -67
- mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/config.yaml +0 -4
- mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/run_ut/run_ut_utils.py +0 -7
- mindstudio-probe-1.0.1/msprobe/pytorch/compare/acc_compare.py +0 -1024
- mindstudio-probe-1.0.1/msprobe/pytorch/compare/distributed_compare.py +0 -111
- mindstudio-probe-1.0.1/msprobe/pytorch/compare/highlight.py +0 -100
- mindstudio-probe-1.0.1/msprobe/pytorch/pt_config.py +0 -93
- mindstudio-probe-1.0.1/msprobe/test/core_ut/common/test_utils.py +0 -345
- mindstudio-probe-1.0.1/msprobe/test/core_ut/data_dump/test_data_collector.py +0 -47
- mindstudio-probe-1.0.1/msprobe/test/core_ut/data_dump/test_json_writer.py +0 -183
- mindstudio-probe-1.0.1/msprobe/test/core_ut/data_dump/test_scope.py +0 -151
- mindstudio-probe-1.0.1/msprobe/test/core_ut/test_common_config.py +0 -152
- mindstudio-probe-1.0.1/msprobe/test/core_ut/test_file_check.py +0 -218
- mindstudio-probe-1.0.1/msprobe/test/core_ut/test_log.py +0 -109
- mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_api_kbk_dump.py +0 -51
- mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_debugger_config.py +0 -42
- mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_dump_tool_factory.py +0 -51
- mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_kernel_graph_dump.py +0 -66
- mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_kernel_graph_overflow_check.py +0 -63
- mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_ms_config.py +0 -69
- mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_overflow_check_tool_factory.py +0 -51
- mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_precision_debugger.py +0 -56
- mindstudio-probe-1.0.1/msprobe/test/mindspore_ut/test_task_handler_factory.py +0 -58
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/advisor/test_advisor.py +0 -83
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/common/test_common_utils.py +0 -108
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/common/test_config.py +0 -39
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/compare/test_algorithm.py +0 -112
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/compare/test_api_precision_compare.py +0 -77
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/compare/test_compare.py +0 -125
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/compare/test_compare_column.py +0 -10
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/compare/test_compare_utils.py +0 -43
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/run_ut/dump.json +0 -179
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/run_ut/forward.json +0 -63
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/run_ut/test_data_generate.py +0 -99
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/run_ut/test_multi_run_ut.py +0 -115
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/api_accuracy_checker/run_ut/test_run_ut.py +0 -72
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/compare/test_acc_compare.py +0 -17
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/free_benchmark/perturbed_layers/test_perturbed_layser.py +0 -105
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/free_benchmark/result_handlers/test_result_handler.py +0 -121
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/free_benchmark/test_main.py +0 -101
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/functional/test_dump_module.py +0 -15
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/hook_module/test_api_registry.py +0 -130
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/hook_module/test_hook_module.py +0 -42
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/hook_module/test_wrap_aten.py +0 -65
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/hook_module/test_wrap_distributed.py +0 -35
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/hook_module/test_wrap_functional.py +0 -20
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/hook_module/test_wrap_tensor.py +0 -35
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/hook_module/test_wrap_torch.py +0 -43
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/hook_module/test_wrap_vf.py +0 -11
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/test_pt_config.py +0 -69
- mindstudio-probe-1.0.1/msprobe/test/pytorch_ut/test_service.py +0 -59
- mindstudio-probe-1.0.1/msprobe/test/resources/advisor.txt +0 -3
- mindstudio-probe-1.0.1/msprobe/test/resources/compare_result_20230703104808.csv +0 -9
- mindstudio-probe-1.0.1/msprobe/test/resources/compare_result_without_accuracy.csv +0 -9
- mindstudio-probe-1.0.1/msprobe/test/resources/config.yaml +0 -3
- mindstudio-probe-1.0.1/msprobe/test/resources/npu_test.pkl +0 -8
- mindstudio-probe-1.0.1/msprobe/test/run_test.sh +0 -30
- mindstudio-probe-1.0.1/msprobe/test/run_ut.py +0 -58
- mindstudio-probe-1.0.1/msprobe/test/test_module_processer.py +0 -64
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/LICENSE +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/mindstudio_probe.egg-info/dependency_links.txt +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/mindstudio_probe.egg-info/entry_points.txt +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/mindstudio_probe.egg-info/not-zip-safe +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/mindstudio_probe.egg-info/top_level.txt +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/config/img/free_benchmark.png +0 -0
- {mindstudio-probe-1.0.1/msprobe → mindstudio-probe-1.0.3/msprobe/core}/__init__.py +0 -0
- {mindstudio-probe-1.0.1/msprobe/pytorch → mindstudio-probe-1.0.3/msprobe/core}/advisor/advisor_const.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/core/data_dump/scope.py +0 -0
- {mindstudio-probe-1.0.1/msprobe/mindspore/debugger → mindstudio-probe-1.0.3/msprobe/core/grad_probe}/__init__.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/mindspore/__init__.py +0 -0
- {mindstudio-probe-1.0.1/msprobe/mindspore/dump → mindstudio-probe-1.0.3/msprobe/mindspore/api_accuracy_checker}/__init__.py +0 -0
- {mindstudio-probe-1.0.1/msprobe/mindspore/overflow_check → mindstudio-probe-1.0.3/msprobe/mindspore/debugger}/__init__.py +0 -0
- {mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker → mindstudio-probe-1.0.3/msprobe/mindspore/dump}/__init__.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/mindspore/dump/kernel_graph_dump.py +0 -0
- {mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/common → mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark}/__init__.py +0 -0
- {mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/compare → mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/common}/__init__.py +0 -0
- {mindstudio-probe-1.0.1/msprobe/pytorch/api_accuracy_checker/run_ut → mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/decorator}/__init__.py +0 -0
- {mindstudio-probe-1.0.1/msprobe/pytorch/debugger → mindstudio-probe-1.0.3/msprobe/mindspore/free_benchmark/handler}/__init__.py +0 -0
- {mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/common → mindstudio-probe-1.0.3/msprobe/mindspore/grad_probe}/__init__.py +0 -0
- {mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/perturbed_layers → mindstudio-probe-1.0.3/msprobe/mindspore/overflow_check}/__init__.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/mindspore/overflow_check/kernel_graph_overflow_check.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/api_accuracy_checker/.keep +0 -0
- {mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/perturbed_layers/npu → mindstudio-probe-1.0.3/msprobe/pytorch/api_accuracy_checker}/__init__.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/api_accuracy_checker/common/.keep +0 -0
- {mindstudio-probe-1.0.1/msprobe/pytorch/free_benchmark/result_handlers → mindstudio-probe-1.0.3/msprobe/pytorch/api_accuracy_checker/common}/__init__.py +0 -0
- {mindstudio-probe-1.0.1/msprobe/pytorch/functional → mindstudio-probe-1.0.3/msprobe/pytorch/api_accuracy_checker/compare}/__init__.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/api_accuracy_checker/compare/api_precision_standard.yaml +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/api_accuracy_checker/compare/api_precision_threshold.yaml +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/api_accuracy_checker/compare/compare_column.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/api_accuracy_checker/run_ut/.keep +0 -0
- {mindstudio-probe-1.0.1/msprobe/pytorch/parse_tool → mindstudio-probe-1.0.3/msprobe/pytorch/api_accuracy_checker/run_ut}/__init__.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/api_accuracy_checker/run_ut/torch_ut_setting.json +0 -0
- {mindstudio-probe-1.0.1/msprobe/pytorch/parse_tool/lib → mindstudio-probe-1.0.3/msprobe/pytorch/api_accuracy_checker/tensor_transport_layer}/__init__.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/common/__init__.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/common/compare_script.template +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/common/log.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/compare/mapping.yaml +0 -0
- /mindstudio-probe-1.0.1/msprobe/pytorch/functional/data_processor.py → /mindstudio-probe-1.0.3/msprobe/pytorch/debugger/__init__.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/FAQ.md +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/BLOOM-7B_1.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/BLOOM-7B_2.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/BLOOM-7B_3.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/BLOOM-7B_4.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/GPT-3_1.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/GPT-3_2.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/GPT-3_3.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/GPT-3_4.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/GPT-3_5.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/GPT-3_6.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/GPT-3_7.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/GPT-3_8.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/YOLOV5S_1.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/YOLOV5S_2.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/accuracy_checking_details.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/accuracy_checking_result.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/api_precision_compare_details.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/api_precision_compare_result.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/auto_analyze_log.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/compare_result_pkl.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/compare_result_pkl_md5.png.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/cpu_info.png +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/img/module_compare.png +0 -0
- {mindstudio-probe-1.0.1/msprobe/pytorch/doc/atat → mindstudio-probe-1.0.3/msprobe/pytorch/doc/msprobe}/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" +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/parse_tool.md +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc/ptdbg_ascend_overview.md +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/doc//345/234/250/347/272/277/347/262/276/345/272/246/346/257/224/345/257/271.md" +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/__init__.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/common/counter.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/common/enums.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/common/params.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/compare/single_benchmark.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/perturbed_layers/base_layer.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/perturbed_layers/layer_factory.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/perturbed_layers/npu/npu_base_layser.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/result_handlers/check_handler.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/result_handlers/fix_handler.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/free_benchmark/result_handlers/preheat_handler.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/hook_module/__init__.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/hook_module/api_registry.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/online_dispatch/__init__.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/online_dispatch/torch_ops_config.yaml +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/parse.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/parse_tool/cli.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/parse_tool/lib/file_desc.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/parse_tool/lib/interactive_cli.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/msprobe/pytorch/parse_tool/lib/parse_exception.py +0 -0
- {mindstudio-probe-1.0.1 → mindstudio-probe-1.0.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mindstudio-probe
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
4
4
|
Summary: Pytorch Ascend Probe Utils
|
|
5
5
|
Home-page: https://gitee.com/ascend/mstt/tree/master/debug/accuracy_tools/msprobe
|
|
6
6
|
Author: Ascend Team
|
|
@@ -20,11 +20,15 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
20
20
|
Requires-Python: >=3.6.2
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
Requires-Dist: wheel
|
|
23
|
+
Requires-Dist: einops
|
|
23
24
|
Requires-Dist: numpy
|
|
24
25
|
Requires-Dist: pandas>=1.3.5
|
|
25
26
|
Requires-Dist: pyyaml
|
|
26
27
|
Requires-Dist: rich
|
|
27
28
|
Requires-Dist: tqdm
|
|
28
29
|
Requires-Dist: openpyxl
|
|
30
|
+
Requires-Dist: pyOpenSSL
|
|
31
|
+
Requires-Dist: twisted
|
|
32
|
+
Requires-Dist: matplotlib
|
|
29
33
|
|
|
30
34
|
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,21 @@
|
|
|
1
|
+
# 精度工具
|
|
2
|
+
|
|
3
|
+
MindStudio Training Tools工具针对模型训练精度问题设计推出了一系列精度工具,包括模型精度预检工具和PyTorch精度工具的精度比对功能、溢出检测功能、通信精度检测等功能。这些工具有各自侧重的场景,用于辅助用户定位模型精度问题。
|
|
4
|
+
|
|
5
|
+
### 子功能介绍
|
|
6
|
+
|
|
7
|
+
NPU上训练的网络存在精度问题,精度指标(loss或者具体的评价指标)与标杆相差较多。对于该场景的问题,可以使用**MindStudio Probe工具**的**精度预检工具**和**精度比对工具**进行定位。
|
|
8
|
+
|
|
9
|
+
| 工具名称 | 说明 |
|
|
10
|
+
| ------------------------------------------------------------ | ------------------------------------------------------------ |
|
|
11
|
+
| [MindStudio Probe( MindStudio精度调试工具)](https://gitee.com/ascend/mstt/tree/master/debug/accuracy_tools/msprobe) | MindStudio Training Tools工具链下精度调试部分的工具包,主要包括精度预检和精度比对等子工具。 |
|
|
12
|
+
| [api_accuracy_checker(Ascend模型精度预检工具)](https://gitee.com/ascend/mstt/tree/master/debug/accuracy_tools/api_accuracy_checker) | 在昇腾NPU上扫描用户训练模型中所有API,进行API复现,给出精度情况的诊断和分析。 |
|
|
13
|
+
| [ptdbg_ascend(PyTorch精度工具)](https://gitee.com/ascend/mstt/tree/master/debug/accuracy_tools/ptdbg_ascend) | 进行PyTorch整网API粒度的数据dump、精度比对和溢出检测,从而定位PyTorch训练场景下的精度问题。 |
|
|
14
|
+
|
|
15
|
+
### 场景介绍
|
|
16
|
+
|
|
17
|
+
**精度预检工具**会对全网每一个API根据其实际训练中的shape、dtype和数值范围生成随机的输入,对比它与标杆的输出差异,并指出输出差异过大不符合精度标准的API。该工具检查单API精度问题准确率超过80%,对比一般dump比对方法减少落盘数据量99%以上。
|
|
18
|
+
|
|
19
|
+
**精度比对功能**可以对NPU整网API数据进行与CPU或GPU标杆数据的精度比对,从而检测精度问题。具体来说,dump统计量、分段dump、模块化dump,通讯算子dump等功能可以用较轻的数据量实现不同侧重的精度比对,从而定位精度问题。
|
|
20
|
+
|
|
21
|
+
**溢出检测功能**是在判断训练网络可能存在溢出现象时,例如某个step的loss突然变成inf nan,或者混精场景下loss_scale不断减小,可以通过ptdbg_ascend的精度检测工具检测API的溢出情况。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mindstudio-probe
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
4
4
|
Summary: Pytorch Ascend Probe Utils
|
|
5
5
|
Home-page: https://gitee.com/ascend/mstt/tree/master/debug/accuracy_tools/msprobe
|
|
6
6
|
Author: Ascend Team
|
|
@@ -20,11 +20,15 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
20
20
|
Requires-Python: >=3.6.2
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
Requires-Dist: wheel
|
|
23
|
+
Requires-Dist: einops
|
|
23
24
|
Requires-Dist: numpy
|
|
24
25
|
Requires-Dist: pandas>=1.3.5
|
|
25
26
|
Requires-Dist: pyyaml
|
|
26
27
|
Requires-Dist: rich
|
|
27
28
|
Requires-Dist: tqdm
|
|
28
29
|
Requires-Dist: openpyxl
|
|
30
|
+
Requires-Dist: pyOpenSSL
|
|
31
|
+
Requires-Dist: twisted
|
|
32
|
+
Requires-Dist: matplotlib
|
|
29
33
|
|
|
30
34
|
MindStudio-Probe is a set of tools for diagnosing and improving model accuracy on Ascend NPU, including API acc checker, ptdbg, grad tool etc.
|
|
@@ -15,40 +15,115 @@ msprobe/msprobe.py
|
|
|
15
15
|
msprobe/config/README.md
|
|
16
16
|
msprobe/config/config.json
|
|
17
17
|
msprobe/config/img/free_benchmark.png
|
|
18
|
+
msprobe/core/__init__.py
|
|
18
19
|
msprobe/core/common_config.py
|
|
20
|
+
msprobe/core/advisor/advisor.py
|
|
21
|
+
msprobe/core/advisor/advisor_const.py
|
|
22
|
+
msprobe/core/advisor/advisor_result.py
|
|
19
23
|
msprobe/core/common/const.py
|
|
20
24
|
msprobe/core/common/exceptions.py
|
|
21
25
|
msprobe/core/common/file_check.py
|
|
22
26
|
msprobe/core/common/log.py
|
|
23
27
|
msprobe/core/common/utils.py
|
|
28
|
+
msprobe/core/compare/acc_compare.py
|
|
29
|
+
msprobe/core/compare/check.py
|
|
30
|
+
msprobe/core/compare/compare_cli.py
|
|
31
|
+
msprobe/core/compare/highlight.py
|
|
32
|
+
msprobe/core/compare/multiprocessing_compute.py
|
|
33
|
+
msprobe/core/compare/npy_compare.py
|
|
34
|
+
msprobe/core/compare/utils.py
|
|
24
35
|
msprobe/core/data_dump/data_collector.py
|
|
25
36
|
msprobe/core/data_dump/json_writer.py
|
|
26
37
|
msprobe/core/data_dump/scope.py
|
|
27
38
|
msprobe/core/data_dump/data_processor/base.py
|
|
28
39
|
msprobe/core/data_dump/data_processor/factory.py
|
|
40
|
+
msprobe/core/data_dump/data_processor/mindspore_processor.py
|
|
29
41
|
msprobe/core/data_dump/data_processor/pytorch_processor.py
|
|
42
|
+
msprobe/core/grad_probe/__init__.py
|
|
43
|
+
msprobe/core/grad_probe/constant.py
|
|
44
|
+
msprobe/core/grad_probe/grad_compare.py
|
|
45
|
+
msprobe/core/grad_probe/utils.py
|
|
46
|
+
msprobe/doc/grad_probe/grad_probe.md
|
|
47
|
+
msprobe/doc/grad_probe/img/image-1.png
|
|
48
|
+
msprobe/doc/grad_probe/img/image-2.png
|
|
49
|
+
msprobe/doc/grad_probe/img/image-3.png
|
|
50
|
+
msprobe/doc/grad_probe/img/image-4.png
|
|
51
|
+
msprobe/doc/grad_probe/img/image.png
|
|
30
52
|
msprobe/mindspore/__init__.py
|
|
53
|
+
msprobe/mindspore/cell_processor.py
|
|
31
54
|
msprobe/mindspore/ms_config.py
|
|
55
|
+
msprobe/mindspore/runtime.py
|
|
56
|
+
msprobe/mindspore/service.py
|
|
32
57
|
msprobe/mindspore/task_handler_factory.py
|
|
58
|
+
msprobe/mindspore/api_accuracy_checker/__init__.py
|
|
59
|
+
msprobe/mindspore/api_accuracy_checker/api_accuracy_checker.py
|
|
60
|
+
msprobe/mindspore/api_accuracy_checker/api_info.py
|
|
61
|
+
msprobe/mindspore/api_accuracy_checker/api_runner.py
|
|
62
|
+
msprobe/mindspore/api_accuracy_checker/base_compare_algorithm.py
|
|
63
|
+
msprobe/mindspore/api_accuracy_checker/compute_element.py
|
|
64
|
+
msprobe/mindspore/api_accuracy_checker/main.py
|
|
65
|
+
msprobe/mindspore/api_accuracy_checker/type_mapping.py
|
|
66
|
+
msprobe/mindspore/api_accuracy_checker/utils.py
|
|
67
|
+
msprobe/mindspore/common/const.py
|
|
68
|
+
msprobe/mindspore/common/log.py
|
|
69
|
+
msprobe/mindspore/common/utils.py
|
|
70
|
+
msprobe/mindspore/compare/distributed_compare.py
|
|
71
|
+
msprobe/mindspore/compare/ms_compare.py
|
|
72
|
+
msprobe/mindspore/compare/ms_graph_compare.py
|
|
73
|
+
msprobe/mindspore/compare/ms_to_pt_api.yaml
|
|
33
74
|
msprobe/mindspore/debugger/__init__.py
|
|
34
75
|
msprobe/mindspore/debugger/debugger_config.py
|
|
35
76
|
msprobe/mindspore/debugger/precision_debugger.py
|
|
77
|
+
msprobe/mindspore/doc/compare.md
|
|
36
78
|
msprobe/mindspore/doc/dump.md
|
|
37
79
|
msprobe/mindspore/dump/__init__.py
|
|
38
|
-
msprobe/mindspore/dump/api_kbk_dump.py
|
|
39
80
|
msprobe/mindspore/dump/dump_tool_factory.py
|
|
81
|
+
msprobe/mindspore/dump/jit_dump.py
|
|
40
82
|
msprobe/mindspore/dump/kernel_graph_dump.py
|
|
83
|
+
msprobe/mindspore/dump/kernel_kbyk_dump.py
|
|
84
|
+
msprobe/mindspore/dump/hook_cell/api_registry.py
|
|
85
|
+
msprobe/mindspore/dump/hook_cell/hook_cell.py
|
|
86
|
+
msprobe/mindspore/dump/hook_cell/support_wrap_ops.yaml
|
|
87
|
+
msprobe/mindspore/dump/hook_cell/wrap_functional.py
|
|
88
|
+
msprobe/mindspore/dump/hook_cell/wrap_tensor.py
|
|
89
|
+
msprobe/mindspore/free_benchmark/__init__.py
|
|
90
|
+
msprobe/mindspore/free_benchmark/api_pynative_self_check.py
|
|
91
|
+
msprobe/mindspore/free_benchmark/self_check_tool_factory.py
|
|
92
|
+
msprobe/mindspore/free_benchmark/common/__init__.py
|
|
93
|
+
msprobe/mindspore/free_benchmark/common/config.py
|
|
94
|
+
msprobe/mindspore/free_benchmark/common/handler_params.py
|
|
95
|
+
msprobe/mindspore/free_benchmark/common/utils.py
|
|
96
|
+
msprobe/mindspore/free_benchmark/data/support_wrap_ops.yaml
|
|
97
|
+
msprobe/mindspore/free_benchmark/decorator/__init__.py
|
|
98
|
+
msprobe/mindspore/free_benchmark/decorator/dec_forward.py
|
|
99
|
+
msprobe/mindspore/free_benchmark/decorator/decorator_factory.py
|
|
100
|
+
msprobe/mindspore/free_benchmark/handler/__init__.py
|
|
101
|
+
msprobe/mindspore/free_benchmark/handler/base_handler.py
|
|
102
|
+
msprobe/mindspore/free_benchmark/handler/check_handler.py
|
|
103
|
+
msprobe/mindspore/free_benchmark/handler/fix_handler.py
|
|
104
|
+
msprobe/mindspore/free_benchmark/handler/handler_factory.py
|
|
105
|
+
msprobe/mindspore/free_benchmark/perturbation/add_noise.py
|
|
106
|
+
msprobe/mindspore/free_benchmark/perturbation/base_perturbation.py
|
|
107
|
+
msprobe/mindspore/free_benchmark/perturbation/bit_noise.py
|
|
108
|
+
msprobe/mindspore/free_benchmark/perturbation/improve_precision.py
|
|
109
|
+
msprobe/mindspore/free_benchmark/perturbation/no_change.py
|
|
110
|
+
msprobe/mindspore/free_benchmark/perturbation/perturbation_factory.py
|
|
111
|
+
msprobe/mindspore/grad_probe/__init__.py
|
|
112
|
+
msprobe/mindspore/grad_probe/global_context.py
|
|
113
|
+
msprobe/mindspore/grad_probe/grad_analyzer.py
|
|
114
|
+
msprobe/mindspore/grad_probe/grad_monitor.py
|
|
115
|
+
msprobe/mindspore/grad_probe/grad_stat_csv.py
|
|
116
|
+
msprobe/mindspore/grad_probe/hook.py
|
|
117
|
+
msprobe/mindspore/grad_probe/utils.py
|
|
41
118
|
msprobe/mindspore/overflow_check/__init__.py
|
|
42
119
|
msprobe/mindspore/overflow_check/kernel_graph_overflow_check.py
|
|
43
120
|
msprobe/mindspore/overflow_check/overflow_check_tool_factory.py
|
|
44
121
|
msprobe/pytorch/__init__.py
|
|
122
|
+
msprobe/pytorch/function_factory.py
|
|
45
123
|
msprobe/pytorch/module_processer.py
|
|
46
124
|
msprobe/pytorch/parse.py
|
|
47
125
|
msprobe/pytorch/pt_config.py
|
|
48
126
|
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
127
|
msprobe/pytorch/api_accuracy_checker/.keep
|
|
53
128
|
msprobe/pytorch/api_accuracy_checker/__init__.py
|
|
54
129
|
msprobe/pytorch/api_accuracy_checker/config.yaml
|
|
@@ -72,30 +147,48 @@ msprobe/pytorch/api_accuracy_checker/run_ut/run_overflow_check.py
|
|
|
72
147
|
msprobe/pytorch/api_accuracy_checker/run_ut/run_ut.py
|
|
73
148
|
msprobe/pytorch/api_accuracy_checker/run_ut/run_ut_utils.py
|
|
74
149
|
msprobe/pytorch/api_accuracy_checker/run_ut/torch_ut_setting.json
|
|
150
|
+
msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/__init__.py
|
|
151
|
+
msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/attl.py
|
|
152
|
+
msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/client.py
|
|
153
|
+
msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/device_dispatch.py
|
|
154
|
+
msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/server.py
|
|
155
|
+
msprobe/pytorch/api_accuracy_checker/tensor_transport_layer/ssl_config.py
|
|
156
|
+
msprobe/pytorch/bench_functions/__init__.py
|
|
157
|
+
msprobe/pytorch/bench_functions/apply_adam_w.py
|
|
158
|
+
msprobe/pytorch/bench_functions/confusion_transpose.py
|
|
159
|
+
msprobe/pytorch/bench_functions/fast_gelu.py
|
|
160
|
+
msprobe/pytorch/bench_functions/layer_norm_eval.py
|
|
161
|
+
msprobe/pytorch/bench_functions/linear.py
|
|
162
|
+
msprobe/pytorch/bench_functions/matmul_backward.py
|
|
163
|
+
msprobe/pytorch/bench_functions/npu_fusion_attention.py
|
|
164
|
+
msprobe/pytorch/bench_functions/rms_norm.py
|
|
165
|
+
msprobe/pytorch/bench_functions/rotary_mul.py
|
|
166
|
+
msprobe/pytorch/bench_functions/scaled_mask_softmax.py
|
|
167
|
+
msprobe/pytorch/bench_functions/swiglu.py
|
|
75
168
|
msprobe/pytorch/common/__init__.py
|
|
76
169
|
msprobe/pytorch/common/compare_script.template
|
|
77
170
|
msprobe/pytorch/common/log.py
|
|
78
171
|
msprobe/pytorch/common/parse_json.py
|
|
79
172
|
msprobe/pytorch/common/utils.py
|
|
80
|
-
msprobe/pytorch/compare/acc_compare.py
|
|
81
173
|
msprobe/pytorch/compare/distributed_compare.py
|
|
82
|
-
msprobe/pytorch/compare/highlight.py
|
|
83
174
|
msprobe/pytorch/compare/mapping.yaml
|
|
84
175
|
msprobe/pytorch/compare/match.py
|
|
85
|
-
msprobe/pytorch/compare/
|
|
176
|
+
msprobe/pytorch/compare/pt_compare.py
|
|
86
177
|
msprobe/pytorch/debugger/__init__.py
|
|
87
178
|
msprobe/pytorch/debugger/debugger_config.py
|
|
88
179
|
msprobe/pytorch/debugger/precision_debugger.py
|
|
89
180
|
msprobe/pytorch/doc/FAQ.md
|
|
90
181
|
msprobe/pytorch/doc/api_accuracy_checker.md
|
|
91
|
-
msprobe/pytorch/doc/
|
|
182
|
+
msprobe/pytorch/doc/api_accuracy_checker_online.md
|
|
92
183
|
msprobe/pytorch/doc/dump.md
|
|
184
|
+
msprobe/pytorch/doc/msprobe精度工具数据dump标准性能基线报告.md
|
|
93
185
|
msprobe/pytorch/doc/parse_tool.md
|
|
94
186
|
msprobe/pytorch/doc/ptdbg_ascend_compare.md
|
|
95
187
|
msprobe/pytorch/doc/ptdbg_ascend_overview.md
|
|
96
188
|
msprobe/pytorch/doc/ptdbg_ascend_quickstart.md
|
|
97
189
|
msprobe/pytorch/doc/run_overflow_check.md
|
|
98
190
|
msprobe/pytorch/doc/在线精度比对.md
|
|
191
|
+
msprobe/pytorch/doc/无标杆工具场景验证和性能基线报告.md
|
|
99
192
|
msprobe/pytorch/doc/img/BLOOM-7B_1.png
|
|
100
193
|
msprobe/pytorch/doc/img/BLOOM-7B_2.png
|
|
101
194
|
msprobe/pytorch/doc/img/BLOOM-7B_3.png
|
|
@@ -149,6 +242,9 @@ msprobe/pytorch/free_benchmark/result_handlers/preheat_handler.py
|
|
|
149
242
|
msprobe/pytorch/functional/__init__.py
|
|
150
243
|
msprobe/pytorch/functional/data_processor.py
|
|
151
244
|
msprobe/pytorch/functional/dump_module.py
|
|
245
|
+
msprobe/pytorch/grad_probe/__init__.py
|
|
246
|
+
msprobe/pytorch/grad_probe/grad_monitor.py
|
|
247
|
+
msprobe/pytorch/grad_probe/grad_stat_csv.py
|
|
152
248
|
msprobe/pytorch/hook_module/__init__.py
|
|
153
249
|
msprobe/pytorch/hook_module/api_registry.py
|
|
154
250
|
msprobe/pytorch/hook_module/hook_module.py
|
|
@@ -178,56 +274,4 @@ msprobe/pytorch/parse_tool/lib/interactive_cli.py
|
|
|
178
274
|
msprobe/pytorch/parse_tool/lib/parse_exception.py
|
|
179
275
|
msprobe/pytorch/parse_tool/lib/parse_tool.py
|
|
180
276
|
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
|
|
277
|
+
msprobe/pytorch/parse_tool/lib/visualization.py
|
|
@@ -10,13 +10,23 @@ MindStudio精度调试工具(MindStudio Probe),简称msprobe,是MindStud
|
|
|
10
10
|
```shell
|
|
11
11
|
pip install mindstudio-probe
|
|
12
12
|
```
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
使用`pip install mindstudio-probe==版本号`可安装指定版本的包。
|
|
14
|
+
|
|
15
|
+
pip命令会自动安装最新的包及其配套依赖。
|
|
16
|
+
|
|
17
|
+
提示如下信息则表示安装成功。
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
Successfully installed mindstudio_probe-{version}
|
|
21
|
+
```
|
|
17
22
|
|
|
18
23
|
### 下载whl包安装
|
|
19
|
-
1. 使用pip
|
|
24
|
+
1. 使用pip命令安装依赖:
|
|
25
|
+
|
|
26
|
+
1. 根据实际环境安装torch或mindspore
|
|
27
|
+
|
|
28
|
+
2. 安装numpy、openpyxl、pandas、PyYAML、rich、tqdm、einops、matplotlib、pyOpenSSL、twisted
|
|
29
|
+
|
|
20
30
|
|
|
21
31
|
若环境中已安装部分依赖,不需要重复安装。
|
|
22
32
|
|
|
@@ -24,12 +34,14 @@ MindStudio精度调试工具(MindStudio Probe),简称msprobe,是MindStud
|
|
|
24
34
|
|
|
25
35
|
请通过下表链接下载工具whl包。
|
|
26
36
|
|
|
27
|
-
| 版本 | 发布日期 | 支持PyTorch版本 | 下载链接 | 校验码 |
|
|
28
|
-
| ----- | ---------- |
|
|
29
|
-
| 1.0
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
| 0.0.
|
|
37
|
+
| 版本 | 发布日期 | 支持PyTorch版本 | 支持MindSpore版本 | 下载链接 | 校验码 |
|
|
38
|
+
| ----- | ---------- | ---------------- | ----------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
|
|
39
|
+
| 1.0.2 | 2024-08-09 | 1.11/2.0/2.1/2.2 | 2.3.1 | [mindstudio_probe-1.0.2-py3-none-any.whl](https://ptdbg.obs.myhuaweicloud.com/msprobe/1.0/mindstudio_probe-1.0.2-py3-none-any.whl) | e4a980e5d98c426ce5ce9842520d9bc031d3b3de621c74b3d59414cc6e238e0e |
|
|
40
|
+
| 1.0.1 | 2024-07-25 | 2.0/2.1/2.2 | 2.3.1 | [mindstudio_probe-1.0.1-py3-none-any.whl](https://ptdbg.obs.myhuaweicloud.com/msprobe/1.0/mindstudio_probe-1.0.1-py3-none-any.whl) | b699e224e4d4e3bcf9412c54fa858a1ee370f0d7a2bc69cb3f1273ac14a6dc82 |
|
|
41
|
+
| 1.0 | 2024-07-09 | 2.0/2.1/2.2 | 2.3.0 | [ascend_training_accuracy_tools-1.0-py3-none-any.whl](https://ptdbg.obs.myhuaweicloud.com/att/1.0/ascend_training_accuracy_tools-1.0-py3-none-any.whl) | 5016dfe886c5d340ec6f60a959673355855f313c91f100680da814efb49f8e81 |
|
|
42
|
+
| 0.0.3 | 2024-06-11 | 2.0/2.1/2.2 | 2.3.0 | [ascend_training_accuracy_tools-0.0.3-py3-none-any.whl](https://ptdbg.obs.myhuaweicloud.com/att/0.0/ascend_training_accuracy_tools-0.0.3-py3-none-any.whl) | f46d9714704859e2d67861a65bbb3c76b0a250cf6e238b978b5b959ab1fe125a |
|
|
43
|
+
| 0.0.2 | 2024-05-23 | 2.0/2.1/2.2 | 2.3.0 | [ascend_training_accuracy_tools-0.0.2-py3-none-any.whl](https://ptdbg.obs.myhuaweicloud.com/att/0.0/ascend_training_accuracy_tools-0.0.2-py3-none-any.whl) | 2e35809bde559e9c4d2f16a02ccde779ed9e436bb65fded0b7ebaf6ac2c88d93 |
|
|
44
|
+
| 0.0.1 | 2024-03-15 | 2.0/2.1 | - | [ascend_training_accuracy_tools-0.0.1-py3-none-any.whl](https://ptdbg.obs.myhuaweicloud.com/att/0.0/ascend_training_accuracy_tools-0.0.1-py3-none-any.whl) | 5801510d4e827e4859bc9a5aca021e4d30c2ea42d60a4c8ad0c2baab1b7782c9 |
|
|
33
45
|
|
|
34
46
|
3. whl包校验。
|
|
35
47
|
|
|
@@ -85,13 +97,46 @@ MindStudio精度调试工具(MindStudio Probe),简称msprobe,是MindStud
|
|
|
85
97
|
3. 安装msprobe
|
|
86
98
|
|
|
87
99
|
```shell
|
|
88
|
-
python setup.py
|
|
100
|
+
python setup.py bdist_wheel
|
|
101
|
+
cd dist
|
|
102
|
+
pip install mindstudio_probe*.whl
|
|
89
103
|
```
|
|
90
104
|
提示出现如下信息则表示源码安装成功。
|
|
91
105
|
```shell
|
|
92
|
-
|
|
106
|
+
Successfully installed ... mindstudio_probe-{version} ...
|
|
93
107
|
```
|
|
94
108
|
|
|
109
|
+
### 查看msprobe工具信息
|
|
110
|
+
|
|
111
|
+
执行如下命令查看msprobe工具信息。
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
pip show mindstudio-probe
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
输出结果如下示例:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
Name: mindstudio-probe
|
|
121
|
+
Version: 1.0
|
|
122
|
+
Summary: This is a pytorch precision comparison tools
|
|
123
|
+
Home-page:
|
|
124
|
+
Author:
|
|
125
|
+
Author-email:
|
|
126
|
+
License:
|
|
127
|
+
Location: /home/xx/anaconda3/envs/pt21py38/lib/python3.8/site-packages
|
|
128
|
+
Requires: numpy, openpyxl, pandas, pyyaml, rich, tqdm, wheel
|
|
129
|
+
Required-by:
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
关键字段含义:
|
|
133
|
+
|
|
134
|
+
- Name:工具名称。
|
|
135
|
+
- Version:工具版本号。
|
|
136
|
+
- Summary:工具概述。
|
|
137
|
+
- Location:工具安装路径。
|
|
138
|
+
- Requires:工具依赖。
|
|
139
|
+
|
|
95
140
|
## 工具使用
|
|
96
141
|
|
|
97
142
|
安装msprobe工具后,可以按照如下思路选择合适的子工具进行精度调试:
|
|
@@ -120,9 +165,9 @@ MindStudio精度调试工具(MindStudio Probe),简称msprobe,是MindStud
|
|
|
120
165
|
|
|
121
166
|
进行PyTorch整网API粒度的数据dump、精度比对和溢出检测,从而定位训练场景下的精度问题。
|
|
122
167
|
|
|
123
|
-
PyTorch场景:详见[PyTorch_精度比对工具](./pytorch/doc/
|
|
168
|
+
PyTorch场景:详见[PyTorch_精度比对工具](./pytorch/doc/ptdbg_ascend_compare.md)。
|
|
124
169
|
|
|
125
|
-
MindSpore
|
|
170
|
+
MindSpore场景:详见[MindSpore_精度比对工具](./mindspore/doc/compare.md)。
|
|
126
171
|
|
|
127
172
|
5. 执行溢出解析。
|
|
128
173
|
|
|
@@ -140,6 +185,14 @@ MindStudio精度调试工具(MindStudio Probe),简称msprobe,是MindStud
|
|
|
140
185
|
|
|
141
186
|
MindSpore场景:暂不支持。
|
|
142
187
|
|
|
188
|
+
6. 执行梯度采集和比对。
|
|
189
|
+
|
|
190
|
+
用于采集梯度数据并进行梯度相似度比对。可以精准定位问题出现的step。
|
|
191
|
+
|
|
192
|
+
详见[梯度状态监测工具](./doc/grad_probe/grad_probe.md)。
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
143
196
|
上述流程中的工具均为msprobe工具的子工具,使用相同的命令行,格式如下:
|
|
144
197
|
|
|
145
198
|
精度预检工具
|
|
@@ -156,6 +209,12 @@ msprobe -f <framework> multi_run_ut [-h]
|
|
|
156
209
|
msprobe -f <framework> api_precision_compare [-h]
|
|
157
210
|
```
|
|
158
211
|
|
|
212
|
+
精度比对工具
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
msprobe -f <framework> compare [-h]
|
|
216
|
+
```
|
|
217
|
+
|
|
159
218
|
溢出解析工具
|
|
160
219
|
|
|
161
220
|
```bash
|
|
@@ -168,15 +227,11 @@ msprobe -f <framework> run_overflow_check [-h]
|
|
|
168
227
|
msprobe -f <framework> parse [-h]
|
|
169
228
|
```
|
|
170
229
|
|
|
171
|
-
| 参数 | 说明
|
|
172
|
-
| ---- |
|
|
173
|
-
| -f |
|
|
174
|
-
| -h | 帮助信息。
|
|
230
|
+
| 参数 | 说明 |
|
|
231
|
+
| ---- | ------------------------------------------------------------ |
|
|
232
|
+
| -f | 框架,请按所使用框架配置,当前支持配置为:pytorch、mindspore。 |
|
|
233
|
+
| -h | 帮助信息。 |
|
|
175
234
|
|
|
176
235
|
## 贡献
|
|
177
236
|
|
|
178
237
|
push代码前,请务必保证已经完成了基础功能测试和网络测试。
|
|
179
|
-
|
|
180
|
-
## Release Notes
|
|
181
|
-
|
|
182
|
-
Release Notes请参见[RELEASE](RELEASE.md)。
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from msprobe.core.grad_probe.grad_compare import GradComparator
|