chore(style): fix pre-commit

This commit is contained in:
Steven Palma
2026-02-12 19:37:57 +01:00
parent 9e1a67c862
commit 3f3d08e5a8
3 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -60,8 +60,7 @@ class ActionSelectKwargs(TypedDict, total=False):
def _gated_residual(residual: torch.Tensor, hidden_states: torch.Tensor, gate: torch.Tensor) -> torch.Tensor:
"""Gated residual connection: residual + gate * hidden_states.
"""
"""Gated residual connection: residual + gate * hidden_states."""
return residual + gate.unsqueeze(-1) * hidden_states
+1 -2
View File
@@ -59,8 +59,7 @@ class ActionSelectKwargs(TypedDict, total=False):
def _gated_residual(residual: torch.Tensor, hidden_states: torch.Tensor, gate: torch.Tensor) -> torch.Tensor:
"""Gated residual connection: residual + gate * hidden_states.
"""
"""Gated residual connection: residual + gate * hidden_states."""
return residual + gate.unsqueeze(-1) * hidden_states
@@ -30,6 +30,7 @@ from transformers.utils import (
from .configuration_qwen2_5_vl import Qwen2_5_VLConfig, Qwen2_5_VLVisionConfig
# TODO(Steven): SlidingWindowCache was removed in transformers v5. Define a placeholder so isinstance checks
# always return False (which is the correct behavior when no sliding window cache is in use).
class _SlidingWindowCachePlaceholder: