[Chore] Update type annotation of input_ids in model forward (#33063)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2026-01-26 06:02:10 -08:00
committed by GitHub
parent f4a0921c9c
commit dcd80206b7
164 changed files with 243 additions and 241 deletions
+4
View File
@@ -603,6 +603,8 @@ class SupportsPP(Protocol):
def forward(
self,
input_ids: Tensor | None,
positions: Tensor,
*,
intermediate_tensors: IntermediateTensors | None,
) -> IntermediateTensors | None:
@@ -631,6 +633,8 @@ class _SupportsPPType(Protocol):
def forward(
self,
input_ids: Tensor | None,
positions: Tensor,
*,
intermediate_tensors: IntermediateTensors | None,
) -> Tensor | IntermediateTensors: ...