Artem Plastinkin commited on
Commit
a77a74b
·
1 Parent(s): 1024868

Update steps

Browse files
int8/benchmarks/x5h_mwmx_npu.yaml CHANGED
@@ -40,3 +40,39 @@ memory:
40
 
41
  power:
42
  avg_w: null # not yet characterized
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
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:
47
+ steps:
48
+ - title: Download the ONNX model and compile config
49
+ command: hf download Renesas/RetinaNet-R101-ONNX --repo-type=model --include "fp32/*" --include "compile_config/*"
50
+ - title: Configure the network for the 12-core build
51
+ command: |
52
+ cat >> ${WORKDIR}/nnac_config/config.yaml << 'EOF'
53
+ network_configuration:
54
+ retinanet_9:
55
+ optimization_options:
56
+ - -segmentation_json ./compile_config/RetinaNet_l2seg.json
57
+ - -enable_dma_fusion
58
+ - -enable_stu_multi_channel
59
+ - -stu_multi_channel_config 0x15212420
60
+ - -stu_weight
61
+ - -distributed_coef_stu
62
+ EOF
63
+ # If config.yaml already has a network_configuration: key (e.g. from a
64
+ # previous model), merge this block into it instead of appending a duplicate key.
65
+ - title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
66
+ command: |
67
+ python3 nnac_frontend/legalize.py -d binary/nnx ./fp32/retinanet-9.onnx
68
+ - title: Set up the R-Car X5H board
69
+ 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.
70
+ kind: note
71
+ - title: Copy the compiled artifact to the board
72
+ command: Copy ${WORKDIR}/binary/nnx to the board -- method may vary (NFS mount, scp, USB, etc.).
73
+ kind: note
74
+ - title: Run on R-Car X5H (single NPU cluster, 12 AI cores)
75
+ command: |
76
+ cd binary
77
+ ./host_app ./arc_prog_npus ./nnx/retinanet-9
78
+ expected: hash[n] = 0x...(OK) means the run's output matches the reference hash in hash.txt; latency is the NPX execution time reported in cycles and ms.
int8/benchmarks/x5h_mwmx_npu_apm80_12core.yaml CHANGED
@@ -70,12 +70,12 @@ reproduce:
70
  python3 nnac_frontend/legalize.py -d binary/nnx ./fp32/retinanet-9.onnx
71
  - title: Set up the R-Car X5H board
72
  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.
 
73
  - title: Copy the compiled artifact to the board
74
  command: Copy ${WORKDIR}/binary/nnx to the board -- method may vary (NFS mount, scp, USB, etc.).
 
75
  - title: Run on R-Car X5H (single NPU cluster, 12 AI cores)
76
  command: |
77
  cd binary
78
  ./host_app ./arc_prog_npus ./nnx/retinanet-9
79
- notes: >-
80
- hash[n] = 0x...(OK) means the run's output matches the reference hash in
81
- hash.txt; latency is the NPX execution time reported in cycles and ms.
 
70
  python3 nnac_frontend/legalize.py -d binary/nnx ./fp32/retinanet-9.onnx
71
  - title: Set up the R-Car X5H board
72
  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.
73
+ kind: note
74
  - title: Copy the compiled artifact to the board
75
  command: Copy ${WORKDIR}/binary/nnx to the board -- method may vary (NFS mount, scp, USB, etc.).
76
+ kind: note
77
  - title: Run on R-Car X5H (single NPU cluster, 12 AI cores)
78
  command: |
79
  cd binary
80
  ./host_app ./arc_prog_npus ./nnx/retinanet-9
81
+ expected: hash[n] = 0x...(OK) means the run's output matches the reference hash in hash.txt; latency is the NPX execution time reported in cycles and ms.