Skip to content

Commit

Permalink
fuyu fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez committed Nov 5, 2023
1 parent 6e6fe8d commit 1fb1932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swarms/models/fuyu.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ def __call__(self, text: str, img_path: str):
model_inputs[k] = v.to(self.device_map)

output = self.model.generate(
**model_inputs, max_new_tokens=self.fmax_new_tokens
**model_inputs, max_new_tokens=self.max_new_tokens
)
text = self.processor.batch_decode(output[:, -7:], skip_special_tokens=True)

0 comments on commit 1fb1932

Please sign in to comment.