Skip to content

Persist provider options across ClearProviders, AppendProvider where possible - #1454

Merged
Baiju Meswani (baijumeswani) merged 3 commits into
mainfrom
baijumeswani/povider-with-memory
May 7, 2025
Merged

Persist provider options across ClearProviders, AppendProvider where possible#1454
Baiju Meswani (baijumeswani) merged 3 commits into
mainfrom
baijumeswani/povider-with-memory

Conversation

@baijumeswani

@baijumeswani Baiju Meswani (baijumeswani) commented May 6, 2025

Copy link
Copy Markdown
Collaborator

Currently, most applications will ClearProviders and AppendProvider to change the execution provider at runtime to the desired EP. While doing this, the provider options listed in the genai config.json are lost.

Some models require a specific provider option to run correctly. So, doing ClearProviders and then doing AppendProvider does not work since the options are lost in the process.

This pull-request introduces changes that will clear the providers instead of the provider options in the config. At runtime, the providers array is used to determine which provider to pick.

Comment thread src/config.h Outdated
Comment thread src/config.h Outdated
Comment thread src/config.h Outdated
Comment thread src/config.cpp
Comment thread src/config.cpp
Comment thread src/models/model.cpp
@baijumeswani
Baiju Meswani (baijumeswani) deleted the baijumeswani/povider-with-memory branch May 7, 2025 05:25
Baiju Meswani (baijumeswani) added a commit that referenced this pull request May 14, 2025
Address previous PR review comments from #1470 (#1473)
Address QNN specific regressions (#1470)
Fix array eos_token_id handling (#1463)
Constrained decoding integration (#1381)
Remove BF16 CPU from valid GQA configuration (#1469)
Avoid adding providers if not requested (#1464)
Persist provider options across ClearProviders, AppendProvider where
possible (#1454)
Fix accuracy issues with Gemma models (#1448)
Add bfloat16 support in model builder (#1447)
Add final norm for LoRA models (#1446)

Update version to 0.8.0-rc3

---------

Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com>
Co-authored-by: Nenad Banfic <46795300+nenad1002@users.noreply.github.com>
Co-authored-by: Nenad Banfic <nebanfic@microsoft.com>
Co-authored-by: Baiju Meswani <bmeswani@microsoft.com>
Co-authored-by: Abhishek Jindal <abjindal@microsoft.com>
Co-authored-by: Ying Xiong <yingxiong@microsoft.com>
Co-authored-by: Michał Moskal <michal@moskal.me>
Co-authored-by: Kunal Vaishnavi <kvaishnavi@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants