Commit 6f940bc 1 parent eb31cd2 commit 6f940bc Copy full SHA for 6f940bc
File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -362,6 +362,8 @@ def _supports_logits_to_keep(self) -> bool:
362
362
363
363
def _supports_num_logits_to_keep (self ) -> bool :
364
364
"""
365
+ Will be deprecated after we no longer support transformers < 4.49
366
+
365
367
Return True if the current model supports the keyword argument `num_logits_to_keep` in forward()
366
368
to save memory. Checking it in this way allows to avoid using a new model attribute.
367
369
"""
@@ -486,6 +488,8 @@ def _supports_logits_to_keep(self) -> bool:
486
488
487
489
def _supports_num_logits_to_keep (self ) -> bool :
488
490
"""
491
+ Will be deprecated after we no longer support transformers < 4.49
492
+
489
493
Return True if the current model supports the keyword argument `num_logits_to_keep` in forward()
490
494
to save memory. Checking it in this way allows to avoid using a new model attribute.
491
495
"""
You can’t perform that action at this time.
0 commit comments