Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
18572e33
Unverified
Commit
18572e33
authored
Jan 20, 2025
by
Cyrus Leung
Committed by
GitHub
Jan 20, 2025
Browse files
[Bugfix] Fix `HfExampleModels.find_hf_info` (#12223)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
86bfb6db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
tests/models/registry.py
tests/models/registry.py
+5
-0
No files found.
tests/models/registry.py
View file @
18572e33
...
...
@@ -302,6 +302,11 @@ class HfExampleModels:
if
info
.
default
==
model_id
:
return
info
# Fallback to extras
for
info
in
self
.
hf_models
.
values
():
if
any
(
extra
==
model_id
for
extra
in
info
.
extras
.
values
()):
return
info
raise
ValueError
(
f
"No example model defined for
{
model_id
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment