[Bugfix] Default Gemma3 Model intermediate_tensors to None (#50777)

Signed-off-by: Taneem Ibrahim <taneem.ibrahim@gmail.com>
Co-authored-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com>
This commit is contained in:
Taneem Ibrahim
2026-08-03 15:07:59 -04:00
committed by GitHub
co-authored by Wentao Ye
parent 7f2e78ba4d
commit 1c0d207915
+1 -1
View File
@@ -344,7 +344,7 @@ class Gemma3Model(nn.Module):
self,
input_ids: torch.Tensor | None,
positions: torch.Tensor,
intermediate_tensors: IntermediateTensors | None,
intermediate_tensors: IntermediateTensors | None = None,
inputs_embeds: torch.Tensor | None = None,
**kwargs,
) -> torch.Tensor | IntermediateTensors: