From c75bf2c36e871dfde468dcd98c3df22f3cda2679 Mon Sep 17 00:00:00 2001 From: Monish Singhal <42601474+mynameismon@users.noreply.github.com> Date: Fri, 6 Jun 2025 01:55:07 +0530 Subject: [PATCH] Fix typo in LLaVa documentation (#38618) * Fix typo in LLaVa documentation In exactly one section, LlavaImageProcessor was spelt wrongly as LLavaImageProcessor, which throws off copy-pasting the section. * Fix LlavaImageProcessor url to make it valid (and copypaste-able) Earlier, the URL contained the entire HF prefix. This commit removes that to ensure that the code block can be copied and run as is. --- docs/source/en/model_doc/llava.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/en/model_doc/llava.md b/docs/source/en/model_doc/llava.md index dcf2cd2f3f..d4cc90d2ec 100644 --- a/docs/source/en/model_doc/llava.md +++ b/docs/source/en/model_doc/llava.md @@ -216,12 +216,12 @@ processor.batch_decode(generate_ids, skip_special_tokens=True) ## Note regarding reproducing original implementation -In order to match the logits of the [original implementation](https://github.com/haotian-liu/LLaVA/tree/main), one needs to additionally specify `do_pad=True` when instantiating `LLavaImageProcessor`: +In order to match the logits of the [original implementation](https://github.com/haotian-liu/LLaVA/tree/main), one needs to additionally specify `do_pad=True` when instantiating `LlavaImageProcessor`: ```python -from transformers import LLavaImageProcessor +from transformers import LlavaImageProcessor -image_processor = LLavaImageProcessor.from_pretrained("https://huggingface.co/llava-hf/llava-1.5-7b-hf", do_pad=True) +image_processor = LlavaImageProcessor.from_pretrained("llava-hf/llava-1.5-7b-hf", do_pad=True) ``` ### Using Flash Attention 2