Artem Plastinkin commited on
Commit
2f72caa
·
1 Parent(s): 019befc

Update commands reproduce

Browse files
int8/benchmarks/x5h_mwmx_npu.yaml CHANGED
@@ -45,15 +45,21 @@ power:
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/*" --local-dir .
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
@@ -64,12 +70,12 @@ reproduce:
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: |
 
45
  # — reusing its verified reproduce steps rather than re-deriving them.
46
  reproduce:
47
  steps:
48
+ - title: Activate the Python environment
49
+ command: >-
50
+ Activate the Python virtual environment that has the `hf` CLI
51
+ (huggingface_hub) and the NNAC toolchain installed, e.g.
52
+ `source nnac_venv/bin/activate` -- path depends on your toolchain install.
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/*" --include "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
 
70
  # previous model), merge this block into it instead of appending a duplicate key.
71
  - title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
72
  command: |
73
+ python3 nnac_frontend/legalize.py -d binary/nnx ./RetinaNet-R101-ONNX-fp32/fp32/retinanet-9.onnx --num-core 12
74
  - title: Set up the R-Car X5H board
75
  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.
76
  kind: note
77
  - title: Copy the compiled artifact to the board
78
+ command: Copy ${WORKDIR}/binary/nnx (the working directory from the download/compile steps above) to the board -- method may vary (NFS mount, scp, USB, etc.).
79
  kind: note
80
  - title: Run on R-Car X5H (single NPU cluster, 12 AI cores)
81
  command: |
int8/benchmarks/x5h_mwmx_npu_apm80_12core.yaml CHANGED
@@ -48,15 +48,21 @@ power:
48
  # of the generic placeholder flow — see downloadRunHTML() / parse_reproduce().
49
  reproduce:
50
  steps:
 
 
 
 
 
 
51
  - title: Download the ONNX model and compile config
52
- command: hf download Renesas/RetinaNet-R101-ONNX --repo-type=model --include "fp32/*" --include "compile_config/*" --local-dir .
53
  - title: Configure the network for the 12-core build
54
  command: |
55
  cat >> ${WORKDIR}/nnac_config/config.yaml << 'EOF'
56
  network_configuration:
57
  retinanet_9:
58
  optimization_options:
59
- - -segmentation_json ./compile_config/RetinaNet_l2seg.json
60
  - -enable_dma_fusion
61
  - -enable_stu_multi_channel
62
  - -stu_multi_channel_config 0x15212420
@@ -67,12 +73,12 @@ reproduce:
67
  # previous model), merge this block into it instead of appending a duplicate key.
68
  - title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
69
  command: |
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: |
 
48
  # of the generic placeholder flow — see downloadRunHTML() / parse_reproduce().
49
  reproduce:
50
  steps:
51
+ - title: Activate the Python environment
52
+ command: >-
53
+ Activate the Python virtual environment that has the `hf` CLI
54
+ (huggingface_hub) and the NNAC toolchain installed, e.g.
55
+ `source nnac_venv/bin/activate` -- path depends on your toolchain install.
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/*" --include "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
 
73
  # previous model), merge this block into it instead of appending a duplicate key.
74
  - title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
75
  command: |
76
+ python3 nnac_frontend/legalize.py -d binary/nnx ./RetinaNet-R101-ONNX-fp32/fp32/retinanet-9.onnx --num-core 12
77
  - title: Set up the R-Car X5H board
78
  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.
79
  kind: note
80
  - title: Copy the compiled artifact to the board
81
+ command: Copy ${WORKDIR}/binary/nnx (the working directory from the download/compile steps above) to the board -- method may vary (NFS mount, scp, USB, etc.).
82
  kind: note
83
  - title: Run on R-Car X5H (single NPU cluster, 12 AI cores)
84
  command: |