Skip to content

Comments

Add allow_unknown_config option to ModelStore.#843

Open
copybara-service[bot] wants to merge 1 commit intodevfrom
test_874817169
Open

Add allow_unknown_config option to ModelStore.#843
copybara-service[bot] wants to merge 1 commit intodevfrom
test_874817169

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Feb 24, 2026

Add allow_unknown_config option to ModelStore.

This change introduces an allow_unknown_config parameter to the ModelStore constructor. When set to true, if a ModelConfig is present in the blob, the model type deduction is skipped. This allow Gemma.cpp to work with custom models without having to hardcode their parameters.

@google-cla
Copy link

google-cla bot commented Feb 24, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@copybara-service copybara-service bot changed the title Add allow_unknown_config option to ModelStore. Add allow_unknown_config option to ModelStore. Feb 25, 2026
This change introduces an `allow_unknown_config` parameter to the ModelStore constructor. When set to true, if a ModelConfig is present in the blob, the model type deduction is skipped. This allow Gemma.cpp to work with custom models without having to hardcode their parameters.

PiperOrigin-RevId: 874817169
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants