Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dnth committed Nov 8, 2024
1 parent dc68df4 commit 862fe43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xinfer/transformers/llama32.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def infer(self, image: str, text: str, **generate_kwargs) -> Result:
input_text,
add_special_tokens=False,
return_tensors="pt",
# padding=True,
).to(self.model.device)

with torch.inference_mode():
Expand Down Expand Up @@ -89,7 +88,7 @@ def infer_batch(
input_texts,
add_special_tokens=False,
return_tensors="pt",
# padding=True,
padding=True,
).to(self.model.device)

with torch.inference_mode():
Expand Down

0 comments on commit 862fe43

Please sign in to comment.