Skip to content

Commit

Permalink
Update vision.py
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhanchen committed Nov 21, 2024
1 parent 8b57e17 commit 69cbd13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unsloth/models/vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _wrap_fast_inference(generate, device_type, dtype, model):
@torch.inference_mode
def _fast_generate(*args, **kwargs):
# For num_logits_to_keep
kwargs["num_logits_to_keep"] = 1
# kwargs["num_logits_to_keep"] = 1

# Remove token_type_ids
kwargs.pop("token_type_ids", None)
Expand Down

0 comments on commit 69cbd13

Please sign in to comment.