[Mypy Fix] Mypy fix for "vllm/model_executor/models/[tT]" (#53466)

Signed-off-by: Jensen Chen <a1043904820@gmail.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Jensen Chen
2026-08-26 14:12:11 +00:00
committed by GitHub
co-authored by Claude Opus 5 mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 903a02192f
commit c47ca4aaeb
3 changed files with 14 additions and 9 deletions
+1 -1
View File
@@ -289,7 +289,7 @@ class Terratorch(nn.Module, IsAttentionFree, SupportsMultiModal):
def load_weights(self, weights: Iterable[tuple[str, torch.Tensor]]) -> set[str]:
params_list = []
model_buffers = dict(self.named_buffers())
loaded_buffers = []
loaded_buffers: list[str] = []
for key, value in weights:
if isinstance(value, (dict, OrderedDict)):
if key == "state_dict":