[Docs] Reduce time spent generating API docs (#34255)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2026-02-11 11:56:02 +01:00
committed by GitHub
parent 5045d5c983
commit 40b8f55358
25 changed files with 50 additions and 2 deletions

View File

@@ -1557,6 +1557,7 @@ class ModelConfig:
@property
def attn_type(self) -> AttnTypeStr:
"""Determine the attention type based on model configuration."""
if self.pooler_config is not None:
seq_pooling_type = self._model_info.default_seq_pooling_type
if seq_pooling_type == "CLS":