[Model Runner V2] Enable encoder token classification (#50293)

Signed-off-by: Taneem Ibrahim <taneem.ibrahim@gmail.com>
This commit is contained in:
Taneem Ibrahim
2026-07-31 04:15:36 +00:00
committed by GitHub
parent bebf918044
commit 0f17394564
4 changed files with 92 additions and 20 deletions
+3 -1
View File
@@ -291,7 +291,9 @@ class GPUModelRunner(LoRAModelRunnerMixin):
# Do not rely on pooling_runner here, since this information is needed
# on the first PP rank, while pooling_runner is only initialized
# on the last PP rank.
tasks.extend(PoolingRunner.get_supported_tasks(self.model))
tasks.extend(
PoolingRunner.get_supported_tasks(self.model, self.model_config)
)
return tuple(tasks)
def load_model(self, load_dummy_weights: bool = False, *args, **kwargs) -> None: