mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-22 03:59:42 +00:00
adhere to python 3.11 syntax
This commit is contained in:
@@ -355,8 +355,9 @@ class GemmaDecoderLayer(GradientCheckpointingLayer):
|
|||||||
output_attentions: bool | None = False,
|
output_attentions: bool | None = False,
|
||||||
use_cache: bool | None = False,
|
use_cache: bool | None = False,
|
||||||
cache_position: torch.LongTensor | None = None,
|
cache_position: torch.LongTensor | None = None,
|
||||||
position_embeddings: None
|
position_embeddings: (
|
||||||
| (tuple[torch.Tensor, torch.Tensor]) = None, # necessary, but kept here for BC
|
None | tuple[torch.Tensor, torch.Tensor]
|
||||||
|
) = None, # necessary, but kept here for BC
|
||||||
adarms_cond: torch.Tensor | None = None,
|
adarms_cond: torch.Tensor | None = None,
|
||||||
**kwargs: Unpack[FlashAttentionKwargs],
|
**kwargs: Unpack[FlashAttentionKwargs],
|
||||||
) -> tuple[torch.FloatTensor, tuple[torch.FloatTensor, torch.FloatTensor] | None]:
|
) -> tuple[torch.FloatTensor, tuple[torch.FloatTensor, torch.FloatTensor] | None]:
|
||||||
|
|||||||
Reference in New Issue
Block a user