Repository navigation
Conversation
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.
What & why
read_generation_defaultsignores unsupported provider fields, but its parser first converts every number into signed int64 or double. A validseed: 18446744073709551615, or a large counter inside an otherwise ignored object, therefore rejects the entire configuration and prevents model loading.Let syntactically valid out-of-range numbers survive parsing as an ignored marker. The existing type checks still reject out-of-range values in supported defaults and required catalog fields. Invalid numeric grammar is still rejected.
Area
edge0-infer/)How was it tested?
Built and ran
tests/unit/model/generation_test.cppwith GCC 14 against the CPU GGML libraries. The new unsigned-seed regression fails against the base parser and the updated test passes with the fix. The test covers ignored nested/list values, strict rejection of overflowingtop_k, invalid numeric suffixes and the existing defaults cases.The normal CPU build exposes pre-existing GCC 14 warnings treated as errors; this focused binary was compiled without
-Werror. No model files or network providers are used.Checklist