feat: provider-agnostic ModelConfig (#49, #50, #51)#110
Merged
Shreyas582 merged 1 commit intomainfrom Apr 5, 2026
Merged
Conversation
Replace ModelConfig.vitis_config with generic backend_override/backend_config fields. VitisEpConfig retained as CLI helper with into_backend_config()/from_backend_config(). All onnx_vitis functions now read from the generic backend_config map. CPU and non-Vitis callers use Default::default() backend_config. Closes #49, closes #50, closes #51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactors
ModelConfigto use generic backend configuration instead of Vitis-specific fields. This is the foundation for multi-backend inference in the v1.3.0 milestone.Changes
#49 — Refactor ModelConfig for provider-agnostic config
vitis_config: Option<VitisEpConfig>withbackend_override: Option<String>andbackend_config: HashMap<String, String>#[serde(default)]for backward-compatible deserializationVitisEpConfigretained as CLI-level helper withinto_backend_config()/from_backend_config()conversion methods#50 — Extract Vitis EP to use backend_config
discover_ort_dylib_path(),build_base_session_builder_with_provider(),build_session_with_vitis_cascade()now read from the genericbackend_configmapbackend_config.contains_key(config_file)#51 — CPU EP unblocked by config refactor
CpuBackend, API server, tests) usebackend_override: None, backend_config: Default::default()Testing
Closes #49, closes #50, closes #51