Artem Plastinkin commited on
Commit
5b6880c
·
1 Parent(s): fa7a192

Update command sto reproduce

Browse files
int8/benchmarks/x5h_mwmx_npu.yaml CHANGED
@@ -41,6 +41,17 @@ memory:
41
  power:
42
  avg_w: null # not yet characterized
43
 
 
 
 
 
 
 
 
 
 
 
 
44
  # Same config (1 instance, 12 cores, 850 MHz) as x5h_mwmx_npu_apm80_12core.yaml
45
  # — reusing its verified reproduce steps rather than re-deriving them.
46
  reproduce:
@@ -53,22 +64,17 @@ reproduce:
53
  kind: note
54
  - title: Download the ONNX model and compile config
55
  command: hf download Renesas/RetinaNet-R101-ONNX --repo-type model --include "fp32/*" "compile_config/*" --local-dir ./RetinaNet-R101-ONNX-fp32
56
- - title: Configure the network for the 12-core build
57
  command: |
58
- cat > ${WORKDIR}/nnac_config/config.yaml << 'EOF'
59
- network_configuration:
60
- retinanet_9:
61
- optimization_options:
62
- - -segmentation_json ./RetinaNet-R101-ONNX-fp32/compile_config/RetinaNet_l2seg.json
63
- - -enable_dma_fusion
64
- - -enable_stu_multi_channel
65
- - -stu_multi_channel_config 0x15212420
66
- - -stu_weight
67
- - -distributed_coef_stu
68
- EOF
69
- # Overwrites (not appends to) config.yaml, so re-running this step is
70
- # idempotent — a prior run's network_configuration: key can't get
71
- # duplicated into an invalid/ambiguous second top-level key.
72
  - title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
73
  command: |
74
  python3 nnac_frontend/legalize.py -d binary/nnx ./RetinaNet-R101-ONNX-fp32/fp32/retinanet-9.onnx --num-core 12
 
41
  power:
42
  avg_w: null # not yet characterized
43
 
44
+ network_configuration:
45
+ key: retinanet_9
46
+ entry_yaml: |
47
+ optimization_options:
48
+ - -segmentation_json ./RetinaNet-R101-ONNX-fp32/compile_config/RetinaNet_l2seg.json
49
+ - -enable_dma_fusion
50
+ - -enable_stu_multi_channel
51
+ - -stu_multi_channel_config 0x15212420
52
+ - -stu_weight
53
+ - -distributed_coef_stu
54
+
55
  # Same config (1 instance, 12 cores, 850 MHz) as x5h_mwmx_npu_apm80_12core.yaml
56
  # — reusing its verified reproduce steps rather than re-deriving them.
57
  reproduce:
 
64
  kind: note
65
  - title: Download the ONNX model and compile config
66
  command: hf download Renesas/RetinaNet-R101-ONNX --repo-type model --include "fp32/*" "compile_config/*" --local-dir ./RetinaNet-R101-ONNX-fp32
67
+ - title: "Insert this model's entry into network_configuration: in nnac_config/config.yaml"
68
  command: |
69
+ retinanet_9:
70
+ optimization_options:
71
+ - -segmentation_json ./RetinaNet-R101-ONNX-fp32/compile_config/RetinaNet_l2seg.json
72
+ - -enable_dma_fusion
73
+ - -enable_stu_multi_channel
74
+ - -stu_multi_channel_config 0x15212420
75
+ - -stu_weight
76
+ - -distributed_coef_stu
77
+ kind: note
 
 
 
 
 
78
  - title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
79
  command: |
80
  python3 nnac_frontend/legalize.py -d binary/nnx ./RetinaNet-R101-ONNX-fp32/fp32/retinanet-9.onnx --num-core 12
int8/benchmarks/x5h_mwmx_npu_apm80_12core.yaml CHANGED
@@ -41,6 +41,17 @@ memory:
41
  power:
42
  avg_w: null
43
 
 
 
 
 
 
 
 
 
 
 
 
44
  # Exact commands verified against the NNAC "Getting Started" chapter, plus the
45
  # network_configuration block verified against the internal model_zoo compile
46
  # config for this model's 12-core slice (see
@@ -56,22 +67,17 @@ reproduce:
56
  kind: note
57
  - title: Download the ONNX model and compile config
58
  command: hf download Renesas/RetinaNet-R101-ONNX --repo-type model --include "fp32/*" "compile_config/*" --local-dir ./RetinaNet-R101-ONNX-fp32
59
- - title: Configure the network for the 12-core build
60
  command: |
61
- cat > ${WORKDIR}/nnac_config/config.yaml << 'EOF'
62
- network_configuration:
63
- retinanet_9:
64
- optimization_options:
65
- - -segmentation_json ./RetinaNet-R101-ONNX-fp32/compile_config/RetinaNet_l2seg.json
66
- - -enable_dma_fusion
67
- - -enable_stu_multi_channel
68
- - -stu_multi_channel_config 0x15212420
69
- - -stu_weight
70
- - -distributed_coef_stu
71
- EOF
72
- # Overwrites (not appends to) config.yaml, so re-running this step is
73
- # idempotent — a prior run's network_configuration: key can't get
74
- # duplicated into an invalid/ambiguous second top-level key.
75
  - title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
76
  command: |
77
  python3 nnac_frontend/legalize.py -d binary/nnx ./RetinaNet-R101-ONNX-fp32/fp32/retinanet-9.onnx --num-core 12
 
41
  power:
42
  avg_w: null
43
 
44
+ network_configuration:
45
+ key: retinanet_9
46
+ entry_yaml: |
47
+ optimization_options:
48
+ - -segmentation_json ./RetinaNet-R101-ONNX-fp32/compile_config/RetinaNet_l2seg.json
49
+ - -enable_dma_fusion
50
+ - -enable_stu_multi_channel
51
+ - -stu_multi_channel_config 0x15212420
52
+ - -stu_weight
53
+ - -distributed_coef_stu
54
+
55
  # Exact commands verified against the NNAC "Getting Started" chapter, plus the
56
  # network_configuration block verified against the internal model_zoo compile
57
  # config for this model's 12-core slice (see
 
67
  kind: note
68
  - title: Download the ONNX model and compile config
69
  command: hf download Renesas/RetinaNet-R101-ONNX --repo-type model --include "fp32/*" "compile_config/*" --local-dir ./RetinaNet-R101-ONNX-fp32
70
+ - title: "Insert this model's entry into network_configuration: in nnac_config/config.yaml"
71
  command: |
72
+ retinanet_9:
73
+ optimization_options:
74
+ - -segmentation_json ./RetinaNet-R101-ONNX-fp32/compile_config/RetinaNet_l2seg.json
75
+ - -enable_dma_fusion
76
+ - -enable_stu_multi_channel
77
+ - -stu_multi_channel_config 0x15212420
78
+ - -stu_weight
79
+ - -distributed_coef_stu
80
+ kind: note
 
 
 
 
 
81
  - title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
82
  command: |
83
  python3 nnac_frontend/legalize.py -d binary/nnx ./RetinaNet-R101-ONNX-fp32/fp32/retinanet-9.onnx --num-core 12