Added extra_repr() to pooler classes to improve debuggability (#44805)

Signed-off-by: Taneem Ibrahim <taneem.ibrahim@gmail.com>
This commit is contained in:
Taneem Ibrahim
2026-06-08 03:19:31 +00:00
committed by GitHub
parent 6124a98a9b
commit 5633405964
7 changed files with 73 additions and 0 deletions
@@ -164,6 +164,9 @@ class BOSEOSFilter(Pooler):
self.bos_token_id = bos_token_id
self.eos_token_id = eos_token_id
def extra_repr(self) -> str:
return f"bos_token_id={self.bos_token_id}, eos_token_id={self.eos_token_id}"
def get_supported_tasks(self) -> Set[PoolingTask]:
return self.pooler.get_supported_tasks()