Artem Plastinkin commited on
Commit
786ec04
·
1 Parent(s): 3fa2283

Move network_config in dedicated file

Browse files
compile_config/network_config.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ optimization_options:
2
+ - -segmentation_json ./EfficientNetV2-B0-ONNX-fp32/compile_config/efficientnetv2_segments.json
3
+ - -enable_shallow_conv_opt
4
+ - -enable_dma_fusion
5
+ - -enable_stu_multi_channel
6
+ - -stu_multi_channel_config 0x15212420
7
+ - -stu_weight
8
+ - -distributed_coef_stu
int8/benchmarks/x5h_mwmx_npu_apm50_12core.yaml CHANGED
@@ -42,21 +42,9 @@ memory:
42
  power:
43
  avg_w: null
44
 
45
- network_configuration:
46
- key: efficientnetv2-b0_3rdparty_in1k_sim_opt
47
- entry_yaml: |
48
- optimization_options:
49
- - -segmentation_json ./EfficientNetV2-B0-ONNX-fp32/compile_config/efficientnetv2_segments.json
50
- - -enable_shallow_conv_opt
51
- - -enable_dma_fusion
52
- - -enable_stu_multi_channel
53
- - -stu_multi_channel_config 0x15212420
54
- - -stu_weight
55
- - -distributed_coef_stu
56
-
57
  # Exact commands verified against the NNAC "Getting Started" chapter, plus the
58
- # network_configuration block verified against the internal model_zoo compile
59
- # config for this model's 12-core slice (see
60
  # compile_config/efficientnetv2_segments.json). Rendered by the AI-Dashboard
61
  # in place of the generic placeholder flow — see downloadRunHTML() /
62
  # parse_reproduce().
@@ -70,21 +58,9 @@ reproduce:
70
  kind: note
71
  - title: Download the ONNX model and compile config
72
  command: hf download Renesas/EfficientNetV2-B0-ONNX --repo-type model --include "fp32/*" "compile_config/*" --local-dir ./EfficientNetV2-B0-ONNX-fp32
73
- - title: "Insert this model's entry into network_configuration: in nnac_config/config.yaml"
74
- command: |
75
- efficientnetv2-b0_3rdparty_in1k_sim_opt:
76
- optimization_options:
77
- - -segmentation_json ./EfficientNetV2-B0-ONNX-fp32/compile_config/efficientnetv2_segments.json
78
- - -enable_shallow_conv_opt
79
- - -enable_dma_fusion
80
- - -enable_stu_multi_channel
81
- - -stu_multi_channel_config 0x15212420
82
- - -stu_weight
83
- - -distributed_coef_stu
84
- kind: snippet
85
  - title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
86
  command: |
87
- python3 nnac_frontend/legalize.py -d binary/nnx ./EfficientNetV2-B0-ONNX-fp32/fp32/efficientnetv2-b0_3rdparty_in1k_sim_opt.onnx --num-core 12
88
  - title: Set up the R-Car X5H board
89
  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.
90
  kind: note
 
42
  power:
43
  avg_w: null
44
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  # Exact commands verified against the NNAC "Getting Started" chapter, plus the
46
+ # network config verified against the internal model_zoo compile config for
47
+ # this model's 12-core slice (see
48
  # compile_config/efficientnetv2_segments.json). Rendered by the AI-Dashboard
49
  # in place of the generic placeholder flow — see downloadRunHTML() /
50
  # parse_reproduce().
 
58
  kind: note
59
  - title: Download the ONNX model and compile config
60
  command: hf download Renesas/EfficientNetV2-B0-ONNX --repo-type model --include "fp32/*" "compile_config/*" --local-dir ./EfficientNetV2-B0-ONNX-fp32
 
 
 
 
 
 
 
 
 
 
 
 
61
  - title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
62
  command: |
63
+ python3 nnac_frontend/legalize.py -d binary/nnx ./EfficientNetV2-B0-ONNX-fp32/fp32/efficientnetv2-b0_3rdparty_in1k_sim_opt.onnx --num-core 12 --network-config ./EfficientNetV2-B0-ONNX-fp32/compile_config/network_config.yaml
64
  - title: Set up the R-Car X5H board
65
  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.
66
  kind: note