Artem Plastinkin commited on
Commit
42f34ea
·
1 Parent(s): 01333a0

Move network_config in dedicated file

Browse files
compile_config/network_config.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ optimization_options:
2
+ - -segmentation_json ./RetinaNet-R101-ONNX-fp32/compile_config/RetinaNet_l2seg.json
3
+ - -enable_dma_fusion
4
+ - -enable_stu_multi_channel
5
+ - -stu_multi_channel_config 0x15212420
6
+ - -stu_weight
7
+ - -distributed_coef_stu
int8/benchmarks/x5h_mwmx_npu.yaml CHANGED
@@ -41,17 +41,6 @@ memory:
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,20 +53,9 @@ 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: snippet
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
81
  - title: Set up the R-Car X5H board
82
  command: Configure the board per the AI Compiler (NNAC) "Getting Started" guide, section 3.4 (host TFTP/NFS setup, bootloader flashing, U-Boot, Linux boot, login) -- exact steps depend on your board/network setup.
83
  kind: note
 
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
  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: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
57
  command: |
58
+ python3 nnac_frontend/legalize.py -d binary/nnx ./RetinaNet-R101-ONNX-fp32/fp32/retinanet-9.onnx --num-core 12 --network-config ./RetinaNet-R101-ONNX-fp32/compile_config/network_config.yaml
59
  - title: Set up the R-Car X5H board
60
  command: Configure the board per the AI Compiler (NNAC) "Getting Started" guide, section 3.4 (host TFTP/NFS setup, bootloader flashing, U-Boot, Linux boot, login) -- exact steps depend on your board/network setup.
61
  kind: note
int8/benchmarks/x5h_mwmx_npu_apm80_12core.yaml CHANGED
@@ -41,20 +41,9 @@ memory:
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
58
  # compile_config/RetinaNet_l2seg.json). Rendered by the AI-Dashboard in place
59
  # of the generic placeholder flow — see downloadRunHTML() / parse_reproduce().
60
  reproduce:
@@ -67,20 +56,9 @@ reproduce:
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: snippet
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
84
  - title: Set up the R-Car X5H board
85
  command: Configure the board per the AI Compiler (NNAC) "Getting Started" guide, section 3.4 (host TFTP/NFS setup, bootloader flashing, U-Boot, Linux boot, login) -- exact steps depend on your board/network setup.
86
  kind: note
 
41
  power:
42
  avg_w: null
43
 
 
 
 
 
 
 
 
 
 
 
 
44
  # Exact commands verified against the NNAC "Getting Started" chapter, plus the
45
+ # network config verified against the internal model_zoo compile config for
46
+ # this model's 12-core slice (see
47
  # compile_config/RetinaNet_l2seg.json). Rendered by the AI-Dashboard in place
48
  # of the generic placeholder flow — see downloadRunHTML() / parse_reproduce().
49
  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: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
60
  command: |
61
+ python3 nnac_frontend/legalize.py -d binary/nnx ./RetinaNet-R101-ONNX-fp32/fp32/retinanet-9.onnx --num-core 12 --network-config ./RetinaNet-R101-ONNX-fp32/compile_config/network_config.yaml
62
  - title: Set up the R-Car X5H board
63
  command: Configure the board per the AI Compiler (NNAC) "Getting Started" guide, section 3.4 (host TFTP/NFS setup, bootloader flashing, U-Boot, Linux boot, login) -- exact steps depend on your board/network setup.
64
  kind: note