Artem Plastinkin commited on
Commit ·
fa7a192
1
Parent(s): 0644f4c
Update download command
Browse files
int8/benchmarks/x5h_mwmx_npu.yaml
CHANGED
|
@@ -52,10 +52,10 @@ reproduce:
|
|
| 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
|
| 56 |
- title: Configure the network for the 12-core build
|
| 57 |
command: |
|
| 58 |
-
cat >
|
| 59 |
network_configuration:
|
| 60 |
retinanet_9:
|
| 61 |
optimization_options:
|
|
@@ -66,8 +66,9 @@ reproduce:
|
|
| 66 |
- -stu_weight
|
| 67 |
- -distributed_coef_stu
|
| 68 |
EOF
|
| 69 |
-
#
|
| 70 |
-
#
|
|
|
|
| 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
|
|
|
|
| 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/*" "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:
|
|
|
|
| 66 |
- -stu_weight
|
| 67 |
- -distributed_coef_stu
|
| 68 |
EOF
|
| 69 |
+
# Overwrites (not appends to) config.yaml, so re-running this step is
|
| 70 |
+
# idempotent — a prior run's network_configuration: key can't get
|
| 71 |
+
# duplicated into an invalid/ambiguous second top-level key.
|
| 72 |
- title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
|
| 73 |
command: |
|
| 74 |
python3 nnac_frontend/legalize.py -d binary/nnx ./RetinaNet-R101-ONNX-fp32/fp32/retinanet-9.onnx --num-core 12
|
int8/benchmarks/x5h_mwmx_npu_apm80_12core.yaml
CHANGED
|
@@ -55,10 +55,10 @@ reproduce:
|
|
| 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
|
| 59 |
- title: Configure the network for the 12-core build
|
| 60 |
command: |
|
| 61 |
-
cat >
|
| 62 |
network_configuration:
|
| 63 |
retinanet_9:
|
| 64 |
optimization_options:
|
|
@@ -69,8 +69,9 @@ reproduce:
|
|
| 69 |
- -stu_weight
|
| 70 |
- -distributed_coef_stu
|
| 71 |
EOF
|
| 72 |
-
#
|
| 73 |
-
#
|
|
|
|
| 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
|
|
|
|
| 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/*" "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:
|
|
|
|
| 69 |
- -stu_weight
|
| 70 |
- -distributed_coef_stu
|
| 71 |
EOF
|
| 72 |
+
# Overwrites (not appends to) config.yaml, so re-running this step is
|
| 73 |
+
# idempotent — a prior run's network_configuration: key can't get
|
| 74 |
+
# duplicated into an invalid/ambiguous second top-level key.
|
| 75 |
- title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
|
| 76 |
command: |
|
| 77 |
python3 nnac_frontend/legalize.py -d binary/nnx ./RetinaNet-R101-ONNX-fp32/fp32/retinanet-9.onnx --num-core 12
|