Artem Plastinkin commited on
Commit
475db0d
·
1 Parent(s): 9b7a66d

Update download command

Browse files
int8/benchmarks/x5h_mwmx_npu_apm80_12core.yaml CHANGED
@@ -59,10 +59,10 @@ reproduce:
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/DeepLabV3Plus-R50-ONNX --repo-type=model --include "fp32/*" --include "compile_config/*" --local-dir ./DeepLabV3Plus-R50-ONNX-fp32
63
  - title: Configure the network for the 12-core build (required — this model has no working 1-core config)
64
  command: |
65
- cat >> ${WORKDIR}/nnac_config/config.yaml << 'EOF'
66
  network_configuration:
67
  deeplabv3plus_r50_oss_sim_inf:
68
  optimization_options:
@@ -73,8 +73,9 @@ reproduce:
73
  - -stu_weight
74
  - -distributed_coef_stu
75
  EOF
76
- # If config.yaml already has a network_configuration: key (e.g. from a
77
- # previous model), merge this block into it instead of appending a duplicate key.
 
78
  - title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
79
  command: |
80
  python3 nnac_frontend/legalize.py -d binary/nnx ./DeepLabV3Plus-R50-ONNX-fp32/fp32/deeplabv3plus_r50_oss_sim_inf.onnx --num-core 12
 
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/DeepLabV3Plus-R50-ONNX --repo-type model --include "fp32/*" "compile_config/*" --local-dir ./DeepLabV3Plus-R50-ONNX-fp32
63
  - title: Configure the network for the 12-core build (required — this model has no working 1-core config)
64
  command: |
65
+ cat > ${WORKDIR}/nnac_config/config.yaml << 'EOF'
66
  network_configuration:
67
  deeplabv3plus_r50_oss_sim_inf:
68
  optimization_options:
 
73
  - -stu_weight
74
  - -distributed_coef_stu
75
  EOF
76
+ # Overwrites (not appends to) config.yaml, so re-running this step is
77
+ # idempotent — a prior run's network_configuration: key can't get
78
+ # duplicated into an invalid/ambiguous second top-level key.
79
  - title: Compile with the NNAC toolchain (INT8 auto-cast from the FP32 graph)
80
  command: |
81
  python3 nnac_frontend/legalize.py -d binary/nnx ./DeepLabV3Plus-R50-ONNX-fp32/fp32/deeplabv3plus_r50_oss_sim_inf.onnx --num-core 12