Skip to content

Commit

Permalink
Update llava.md (#34749)
Browse files Browse the repository at this point in the history
LLava -> Llava
  • Loading branch information
LysandreJik authored Nov 15, 2024
1 parent 8ba3e15 commit f5dbfab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/en/model_doc/llava.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ LLaVa also supports batched inference. Here is how you can do it:
import requests
from PIL import Image
import torch
from transformers import AutoProcessor, LLavaForConditionalGeneration
from transformers import AutoProcessor, LlavaForConditionalGeneration

# Load the model in half-precision
model = LLavaForConditionalGeneration.from_pretrained("llava-hf/llava-1.5-7b-hf", torch_dtype=torch.float16, device_map="auto")
model = LlavaForConditionalGeneration.from_pretrained("llava-hf/llava-1.5-7b-hf", torch_dtype=torch.float16, device_map="auto")
processor = AutoProcessor.from_pretrained("llava-hf/llava-1.5-7b-hf")

# Get two different images
Expand Down

0 comments on commit f5dbfab

Please sign in to comment.