From 527dc04e46350ba4ef57a0bddbe34763cbda831b Mon Sep 17 00:00:00 2001 From: Fanli Lin Date: Tue, 3 Dec 2024 03:40:20 +0800 Subject: [PATCH] [docs] add the missing import for Image and bug fix (#34776) * add the missing import for Image lib * add more devices in comment * bug fix --- docs/source/en/tasks/video_text_to_text.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/source/en/tasks/video_text_to_text.md b/docs/source/en/tasks/video_text_to_text.md index fcc1c86e8b..3929f7994b 100644 --- a/docs/source/en/tasks/video_text_to_text.md +++ b/docs/source/en/tasks/video_text_to_text.md @@ -47,7 +47,7 @@ model_id = "llava-hf/llava-interleave-qwen-0.5b-hf" processor = LlavaProcessor.from_pretrained(model_id) model = LlavaForConditionalGeneration.from_pretrained(model_id, torch_dtype=torch.float16) -model.to("cuda") +model.to("cuda") # can also be xpu, mps, npu etc. depending on your hardware accelerator ``` Some models directly consume the `