Update vision.py
This commit is contained in:
parent
0512d65240
commit
40dcb698d6
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue