feat: add logit_scale to PoolerConfig for affine score calibration (#39435)

Signed-off-by: Jesus Federico <jefp@amazon.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jesus Federico
2026-04-10 17:21:14 +00:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 42c6bb4b75
commit b87575d24b
6 changed files with 44 additions and 2 deletions
@@ -119,6 +119,7 @@ def pooler_for_classify(
head_dtype=model_config.head_dtype,
classifier=classifier,
logit_bias=model_config.pooler_config.logit_bias,
logit_scale=model_config.pooler_config.logit_scale,
activation=resolve_classifier_act_fn(
model_config, static_num_labels=True, act_fn=act_fn
),