Unverified Commit 54514634 authored by LF Marques's avatar LF Marques Committed by GitHub
Browse files

Adding f-string to validation error which is missing (#6748)

parent f4f8a9d8
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment