You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace `/path/to/qnn/env/bin` in [sam21_vision_encoder_qnn_ctx.json](sam21_vision_encoder_qnn_ctx.json)and [sam21_mask_decoder_qnn_ctx.json](sam21_mask_decoder_qnn_ctx.json) with the path to the directory containing your QNN environment's Python executable. This path can be found by running the following command in the environment:
22
+
Replace `/path/to/qnn/env/bin` in [sam21_vision_encoder_qnn_ctx.json](sam21_vision_encoder_qnn_ctx.json), [sam21_mask_decoder_qnn_fp16_ctx.json](sam21_mask_decoder_qnn_fp16_ctx.json)and [sam21_mask_decoder_qnn_mp_ctx.json](sam21_mask_decoder_qnn_mp_ctx.json) with the path to the directory containing your QNN environment's Python executable. This path can be found by running the following command in the environment:
23
23
24
24
```bash
25
25
# Linux
@@ -45,9 +45,14 @@ For Encoder Model:
45
45
olive run --config sam21_vision_encoder_qnn_ctx.json
46
46
```
47
47
48
-
For Decoder Model:
48
+
For Decoder Model with FP16 quantization:
49
49
```bash
50
-
olive run --config sam21_mask_decoder_qnn_ctx.json
50
+
olive run --config sam21_mask_decoder_qnn_fp16_ctx.json
51
+
```
52
+
53
+
For Decoder Model with Mixed Precision quantization:
54
+
```bash
55
+
olive run --config sam21_mask_decoder_qnn_mp_ctx.json
51
56
```
52
57
53
58
> ⚠️ If optimization fails during context binary generation, rerun the command. The process will resume from the last completed step.
0 commit comments