Fix string syntax error in logger warning message (additional comma) (#23083)

This commit is contained in:
Xin Wen 2023-05-01 21:14:16 +08:00 committed by GitHub
parent 9062d1bab2
commit 549e5f9f23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1627,7 +1627,7 @@ class Blip2ForConditionalGeneration(Blip2PreTrainedModel):
"The `language_model` is not in the `hf_device_map` dictionary and you are running your script"
" in a multi-GPU environment. this may lead to unexpected behavior when using `accelerate`."
" Please pass a `device_map` that contains `language_model` to remove this warning."
" Please refer to https://github.com/huggingface/blog/blob/main/accelerate-large-models.md for",
" Please refer to https://github.com/huggingface/blog/blob/main/accelerate-large-models.md for"
" more details on creating a `device_map` for large models.",
)