Skip to content

fix: Validate model_name when Loading Model from Repository - #8427

Merged
whoisj merged 12 commits into
mainfrom
jwyman/tri-46-2509-checkmarx-triage
Oct 3, 2025
Merged

fix: Validate model_name when Loading Model from Repository#8427
whoisj merged 12 commits into
mainfrom
jwyman/tri-46-2509-checkmarx-triage

Conversation

@whoisj

@whoisj whoisj commented Sep 30, 2025

Copy link
Copy Markdown
Contributor

This change adds additional validation of user input model_name prior to using to load a model from the repository.

TRI-46

@whoisj whoisj added bug Something isn't working PR: fix A bug fix labels Sep 30, 2025
Comment thread python/openai/openai_frontend/engine/utils/triton.py Fixed
@whoisj whoisj changed the title fix: Validate model_name When Loading Model from Repository fix: Validate model_name when Loading Model from Repository Sep 30, 2025
@whoisj
whoisj force-pushed the jwyman/tri-46-2509-checkmarx-triage branch 2 times, most recently from 445c78d to f768007 Compare September 30, 2025 19:13
This change adds additional validation of user input `model_name` prior to using to load a model from the repository.
@whoisj
whoisj force-pushed the jwyman/tri-46-2509-checkmarx-triage branch from f768007 to 4653f77 Compare September 30, 2025 19:15
@whoisj
whoisj requested a review from mattwittwer September 30, 2025 19:27
yinggeh
yinggeh previously approved these changes Sep 30, 2025
@whoisj
whoisj force-pushed the jwyman/tri-46-2509-checkmarx-triage branch 6 times, most recently from 0f60f74 to 3b502e3 Compare September 30, 2025 23:57
@whoisj
whoisj requested review from Christina-Young-NVIDIA and yinggeh and removed request for mattwittwer October 1, 2025 15:37
yinggeh
yinggeh previously approved these changes Oct 1, 2025
Comment thread python/openai/tests/test_openai_server_args.py Outdated
@yinggeh

yinggeh commented Oct 1, 2025

Copy link
Copy Markdown
Contributor

Can you also add the missing tests for #8406?

Comment thread python/openai/tests/test_openai_server_args.py Outdated
@yinggeh
yinggeh self-requested a review October 1, 2025 16:19
@whoisj
whoisj force-pushed the jwyman/tri-46-2509-checkmarx-triage branch from 3b502e3 to a74116a Compare October 1, 2025 16:19
This change adds a test to validate that the modification provides the expected outcome.
@whoisj
whoisj force-pushed the jwyman/tri-46-2509-checkmarx-triage branch from 0ca3689 to 4b4c676 Compare October 1, 2025 17:13
@whoisj
whoisj requested a review from yinggeh October 1, 2025 17:20
Comment thread python/openai/tests/test_lora.py Outdated
Comment thread python/openai/tests/test_lora.py Outdated
Co-authored-by: Yingge He <157551214+yinggeh@users.noreply.github.com>
Comment thread python/openai/tests/test_lora.py Outdated
@whoisj
whoisj requested review from mc-nv and yinggeh October 1, 2025 21:17
@yinggeh

yinggeh commented Oct 1, 2025

Copy link
Copy Markdown
Contributor

Can you also add the missing tests for #8406?

Nvm. Thought they were different issues.

pskiran1
pskiran1 previously approved these changes Oct 2, 2025

@pskiran1 pskiran1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

whoisj and others added 3 commits October 2, 2025 15:16
Co-authored-by: Yingge He <157551214+yinggeh@users.noreply.github.com>
Comment thread python/openai/tests/test_lora.py Fixed
@whoisj
whoisj force-pushed the jwyman/tri-46-2509-checkmarx-triage branch 2 times, most recently from 309c238 to a420738 Compare October 2, 2025 22:27
@whoisj
whoisj force-pushed the jwyman/tri-46-2509-checkmarx-triage branch from 03fa35d to 3500de5 Compare October 2, 2025 22:57
@whoisj
whoisj merged commit 44273e8 into main Oct 3, 2025
3 checks passed
@whoisj
whoisj deleted the jwyman/tri-46-2509-checkmarx-triage branch October 3, 2025 15:32
whoisj added a commit that referenced this pull request Oct 3, 2025
Co-authored-by: Yingge He <157551214+yinggeh@users.noreply.github.com>
mc-nv pushed a commit that referenced this pull request Oct 3, 2025
…#8439)

Co-authored-by: Yingge He <157551214+yinggeh@users.noreply.github.com>
mc-nv pushed a commit that referenced this pull request Oct 6, 2025
…#8439)

Co-authored-by: Yingge He <157551214+yinggeh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working PR: fix A bug fix

Development

Successfully merging this pull request may close these issues.

5 participants