The llama.cpp project released build b11273, which introduces support for the `classifier_pooling` method in reranking models, specifically targeting ModernBERT architectures.

  • The update modifies `load_hparams` to read the classifier pooling type from model configurations.
  • Conversion logic now restricts accepted `classifier_pooling` values to only 'cls' and 'mean'.
  • The internal parameter name `classifier_pooling_type` was renamed to `pooling_type_cls` for clarity.
  • ModernBERT models fall back to mean pooling if the specific type is not explicitly specified in the config.

This change enables users to correctly load and utilize ModernBERT rerankers within llama.cpp by respecting their specific pooling requirements.