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
9420a1fc
Unverified
Commit
9420a1fc
authored
Apr 24, 2025
by
Michael Goin
Committed by
GitHub
Apr 24, 2025
Browse files
Better error message for missing mistral params.json (#17132)
Signed-off-by:
mgoin
<
mgoin64@gmail.com
>
parent
583e9009
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
vllm/transformers_utils/config.py
vllm/transformers_utils/config.py
+5
-0
No files found.
vllm/transformers_utils/config.py
View file @
9420a1fc
...
...
@@ -650,6 +650,11 @@ def load_params_config(model: Union[str, Path], revision: Optional[str],
config_file_name
=
"params.json"
config_dict
=
get_hf_file_to_dict
(
config_file_name
,
model
,
revision
)
if
config_dict
is
None
:
raise
ValueError
(
f
"Failed to load mistral '
{
config_file_name
}
' config for model "
f
"
{
model
}
. Please check if the model is a mistral-format model "
f
"and if the config file exists."
)
assert
isinstance
(
config_dict
,
dict
)
config_mapping
=
{
...
...
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