Skip to content

Commit

Permalink
pass text and images as kwargs to VLM processor
Browse files Browse the repository at this point in the history
  • Loading branch information
lapp0 authored and rlouf committed Aug 30, 2024
1 parent 7cf63d6 commit 18eafb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions outlines/models/transformers_vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def generate( # type: ignore
-------
The generated text
"""
inputs = self.processor(prompts, media, padding=True, return_tensors="pt").to(
self.model.device
)
inputs = self.processor(
text=prompts, images=media, padding=True, return_tensors="pt"
).to(self.model.device)

generation_kwargs = self._get_generation_kwargs(
prompts,
Expand Down

0 comments on commit 18eafb0

Please sign in to comment.