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
54514634
Unverified
Commit
54514634
authored
Jul 24, 2024
by
LF Marques
Committed by
GitHub
Jul 24, 2024
Browse files
Adding f-string to validation error which is missing (#6748)
parent
f4f8a9d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/entrypoints/chat_utils.py
vllm/entrypoints/chat_utils.py
+1
-1
No files found.
vllm/entrypoints/chat_utils.py
View file @
54514634
...
...
@@ -107,7 +107,7 @@ def _image_token_str(model_config: ModelConfig,
return
tokenizer
.
decode
(
model_config
.
hf_config
.
image_token_index
)
if
model_type
==
"chameleon"
:
return
"<image>"
raise
TypeError
(
"Unknown model type: {model_type}"
)
raise
TypeError
(
f
"Unknown model type:
{
model_type
}
"
)
# TODO: Let user specify how to insert image tokens into prompt
...
...
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