Skip to content

fix(llm): parse config.json with JSON5 when deriving max context length - #11511

Merged
nv-nmailhot merged 2 commits into
release/1.3.0from
rmccormick/cherrypick-11445-json5-config
Jul 11, 2026
Merged

fix(llm): parse config.json with JSON5 when deriving max context length#11511
nv-nmailhot merged 2 commits into
release/1.3.0from
rmccormick/cherrypick-11445-json5-config

Conversation

@rmccorm4

Copy link
Copy Markdown
Contributor

Summary

Fixes DIS-2378

Root cause

The max-context probe pre-parsed the entire model config with strict serde_json. A bare non-finite literal anywhere in the file caused parsing to fail before Dynamo could read the relevant max_position_embeddings field.

Original PR

Test plan

  • cargo test --locked -p dynamo-llm --lib --no-default-features model_card::ownership_tests::architectural_context_ (3 passed)
  • Source and backport patch IDs match
  • Release-branch CI passes

…th (#11445)

Signed-off-by: ssojrani@nvidia.com <ssojrani@nvidia.com>
Signed-off-by: Ryan McCormick <rmccormick@nvidia.com>
@github-actions github-actions Bot added the fix label Jul 10, 2026
@rmccorm4
rmccorm4 marked this pull request as ready for review July 10, 2026 00:30
@rmccorm4
rmccorm4 requested a review from a team July 10, 2026 00:31

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@rmccorm4

rmccorm4 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

vLLM CI failures appear to be a pre-existing failure introduced on another PR

I think this PR might've broken something, but for some reason the filters on github CI triggers are wrong and this change didn't trigger vllm tests: #11374

@nv-nmailhot @tanmayv25

@nv-nmailhot
nv-nmailhot merged commit 39bf4f6 into release/1.3.0 Jul 11, 2026
100 of 101 checks passed
@nv-nmailhot
nv-nmailhot deleted the rmccormick/cherrypick-11445-json5-config branch July 11, 2026 01:04
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