Commit 1d5b84b
MobiusBuilder: route OpenVINO EP to mobius openvino build with device_type (microsoft#2553)
Maps `OpenVINOExecutionProvider` to the mobius `openvino` EP in
`EXECUTION_PROVIDER_TO_MOBIUS_EP` (previously `"default"`), so the
generated `genai_config.json` targets the OpenVINO EP with its provider
options instead of emitting empty (CPU) provider options.
The OpenVINO graph is device-independent, so **no `device_type` logic is
needed in MobiusBuilder** — mobius emits a default OpenVINO
`device_type`, overridable downstream in genai_config.
## Changes
- `olive/hardware/constants.py`:
`EXECUTION_PROVIDER_TO_MOBIUS_EP[OpenVINOExecutionProvider] =
"openvino"`.
- Test for the mapping.
Requires the mobius `openvino` EP (onnxruntime/mobius#388).
Signed-off-by: Justin Chu <11205048+justinchuby@users.noreply.github.com>
Co-authored-by: Justin Chu <11205048+justinchuby@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 94ccd02 commit 1d5b84b
2 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
159 | 167 | | |
160 | 168 | | |
161 | 169 | | |
| |||
0 commit comments