Artem Plastinkin commited on
Commit ·
3de21a3
1
Parent(s): 7be2f48
Update commands reproduce
Browse files
int8/benchmarks/x5h_mwmx_npu_apm80_12core.yaml
CHANGED
|
@@ -52,8 +52,14 @@ power:
|
|
| 52 |
# command below is identical to the 1-core run.
|
| 53 |
reproduce:
|
| 54 |
steps:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
- title: Download the ONNX model and compile config
|
| 56 |
-
command: hf download Renesas/CenterNet-R18-ONNX --repo-type=model --include "fp32/*" --include "compile_config/*" --local-dir .
|
| 57 |
- title: Configure the network for the 12-core build
|
| 58 |
command: |
|
| 59 |
cat >> ${WORKDIR}/nnac_config/config.yaml << 'EOF'
|
|
@@ -66,7 +72,7 @@ reproduce:
|
|
| 66 |
global_config:
|
| 67 |
weight_symmetric: true
|
| 68 |
optimization_options:
|
| 69 |
-
- -segmentation_json ./compile_config/l2seg_csm_16mb.json
|
| 70 |
- -enable_shallow_conv_opt
|
| 71 |
- -enable_dma_fusion
|
| 72 |
- -stu_weight
|
|
@@ -76,12 +82,12 @@ reproduce:
|
|
| 76 |
# previous model), merge this block into it instead of appending a duplicate key.
|
| 77 |
- title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
|
| 78 |
command: |
|
| 79 |
-
python3 nnac_frontend/legalize.py -d binary/nnx ./fp32/centernet_r18_8xb16_crop512_140e_coco.onnx
|
| 80 |
- title: Set up the R-Car X5H board
|
| 81 |
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.
|
| 82 |
kind: note
|
| 83 |
- title: Copy the compiled artifact to the board
|
| 84 |
-
command: Copy ${WORKDIR}/binary/nnx to the board -- method may vary (NFS mount, scp, USB, etc.).
|
| 85 |
kind: note
|
| 86 |
- title: Run on R-Car X5H (single NPU cluster, 12 AI cores)
|
| 87 |
command: |
|
|
|
|
| 52 |
# command below is identical to the 1-core run.
|
| 53 |
reproduce:
|
| 54 |
steps:
|
| 55 |
+
- title: Activate the Python environment
|
| 56 |
+
command: >-
|
| 57 |
+
Activate the Python virtual environment that has the `hf` CLI
|
| 58 |
+
(huggingface_hub) and the NNAC toolchain installed, e.g.
|
| 59 |
+
`source nnac_venv/bin/activate` -- path depends on your toolchain install.
|
| 60 |
+
kind: note
|
| 61 |
- title: Download the ONNX model and compile config
|
| 62 |
+
command: hf download Renesas/CenterNet-R18-ONNX --repo-type=model --include "fp32/*" --include "compile_config/*" --local-dir ./CenterNet-R18-ONNX-fp32
|
| 63 |
- title: Configure the network for the 12-core build
|
| 64 |
command: |
|
| 65 |
cat >> ${WORKDIR}/nnac_config/config.yaml << 'EOF'
|
|
|
|
| 72 |
global_config:
|
| 73 |
weight_symmetric: true
|
| 74 |
optimization_options:
|
| 75 |
+
- -segmentation_json ./CenterNet-R18-ONNX-fp32/compile_config/l2seg_csm_16mb.json
|
| 76 |
- -enable_shallow_conv_opt
|
| 77 |
- -enable_dma_fusion
|
| 78 |
- -stu_weight
|
|
|
|
| 82 |
# previous model), merge this block into it instead of appending a duplicate key.
|
| 83 |
- title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
|
| 84 |
command: |
|
| 85 |
+
python3 nnac_frontend/legalize.py -d binary/nnx ./CenterNet-R18-ONNX-fp32/fp32/centernet_r18_8xb16_crop512_140e_coco.onnx --num-core 12
|
| 86 |
- title: Set up the R-Car X5H board
|
| 87 |
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.
|
| 88 |
kind: note
|
| 89 |
- title: Copy the compiled artifact to the board
|
| 90 |
+
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.).
|
| 91 |
kind: note
|
| 92 |
- title: Run on R-Car X5H (single NPU cluster, 12 AI cores)
|
| 93 |
command: |
|
int8/benchmarks/x5h_mwmx_npu_apm80_1core.yaml
CHANGED
|
@@ -46,16 +46,22 @@ power:
|
|
| 46 |
# in place of the generic placeholder flow — see downloadRunHTML() / parse_reproduce().
|
| 47 |
reproduce:
|
| 48 |
steps:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
- title: Download the ONNX model
|
| 50 |
-
command: hf download Renesas/CenterNet-R18-ONNX --repo-type=model --include "fp32/*" --local-dir .
|
| 51 |
- title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
|
| 52 |
command: |
|
| 53 |
-
python3 nnac_frontend/legalize.py -d binary/nnx ./fp32/centernet_r18_8xb16_crop512_140e_coco.onnx
|
| 54 |
- title: Set up the R-Car X5H board
|
| 55 |
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.
|
| 56 |
kind: note
|
| 57 |
- title: Copy the compiled artifact to the board
|
| 58 |
-
command: Copy ${WORKDIR}/binary/nnx to the board -- method may vary (NFS mount, scp, USB, etc.).
|
| 59 |
kind: note
|
| 60 |
- title: Run on R-Car X5H (single NPU cluster)
|
| 61 |
command: |
|
|
|
|
| 46 |
# in place of the generic placeholder flow — see downloadRunHTML() / parse_reproduce().
|
| 47 |
reproduce:
|
| 48 |
steps:
|
| 49 |
+
- title: Activate the Python environment
|
| 50 |
+
command: >-
|
| 51 |
+
Activate the Python virtual environment that has the `hf` CLI
|
| 52 |
+
(huggingface_hub) and the NNAC toolchain installed, e.g.
|
| 53 |
+
`source nnac_venv/bin/activate` -- path depends on your toolchain install.
|
| 54 |
+
kind: note
|
| 55 |
- title: Download the ONNX model
|
| 56 |
+
command: hf download Renesas/CenterNet-R18-ONNX --repo-type=model --include "fp32/*" --local-dir ./CenterNet-R18-ONNX-fp32
|
| 57 |
- title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
|
| 58 |
command: |
|
| 59 |
+
python3 nnac_frontend/legalize.py -d binary/nnx ./CenterNet-R18-ONNX-fp32/fp32/centernet_r18_8xb16_crop512_140e_coco.onnx --num-core 1
|
| 60 |
- title: Set up the R-Car X5H board
|
| 61 |
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.
|
| 62 |
kind: note
|
| 63 |
- title: Copy the compiled artifact to the board
|
| 64 |
+
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.).
|
| 65 |
kind: note
|
| 66 |
- title: Run on R-Car X5H (single NPU cluster)
|
| 67 |
command: |
|
int8/benchmarks/x5h_mwmx_npu_apm80_1core_2026-09-16.yaml
CHANGED
|
@@ -47,16 +47,22 @@ power:
|
|
| 47 |
# in place of the generic placeholder flow — see downloadRunHTML() / parse_reproduce().
|
| 48 |
reproduce:
|
| 49 |
steps:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
- title: Download the ONNX model
|
| 51 |
-
command: hf download Renesas/CenterNet-R18-ONNX --repo-type=model --include "fp32/*" --local-dir .
|
| 52 |
- title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
|
| 53 |
command: |
|
| 54 |
-
python3 nnac_frontend/legalize.py -d binary/nnx ./fp32/centernet_r18_8xb16_crop512_140e_coco.onnx
|
| 55 |
- title: Set up the R-Car X5H board
|
| 56 |
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.
|
| 57 |
kind: note
|
| 58 |
- title: Copy the compiled artifact to the board
|
| 59 |
-
command: Copy ${WORKDIR}/binary/nnx to the board -- method may vary (NFS mount, scp, USB, etc.).
|
| 60 |
kind: note
|
| 61 |
- title: Run on R-Car X5H (single NPU cluster)
|
| 62 |
command: |
|
|
|
|
| 47 |
# in place of the generic placeholder flow — see downloadRunHTML() / parse_reproduce().
|
| 48 |
reproduce:
|
| 49 |
steps:
|
| 50 |
+
- title: Activate the Python environment
|
| 51 |
+
command: >-
|
| 52 |
+
Activate the Python virtual environment that has the `hf` CLI
|
| 53 |
+
(huggingface_hub) and the NNAC toolchain installed, e.g.
|
| 54 |
+
`source nnac_venv/bin/activate` -- path depends on your toolchain install.
|
| 55 |
+
kind: note
|
| 56 |
- title: Download the ONNX model
|
| 57 |
+
command: hf download Renesas/CenterNet-R18-ONNX --repo-type=model --include "fp32/*" --local-dir ./CenterNet-R18-ONNX-fp32
|
| 58 |
- title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
|
| 59 |
command: |
|
| 60 |
+
python3 nnac_frontend/legalize.py -d binary/nnx ./CenterNet-R18-ONNX-fp32/fp32/centernet_r18_8xb16_crop512_140e_coco.onnx --num-core 1
|
| 61 |
- title: Set up the R-Car X5H board
|
| 62 |
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.
|
| 63 |
kind: note
|
| 64 |
- title: Copy the compiled artifact to the board
|
| 65 |
+
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.).
|
| 66 |
kind: note
|
| 67 |
- title: Run on R-Car X5H (single NPU cluster)
|
| 68 |
command: |
|