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
+7
View File
@@ -83,6 +83,13 @@ class PoolerConfig:
If provided, apply classification logit biases. Defaults to None.
"""
logit_scale: float | None = None
"""
If provided, scale the classification logits by this factor before
activation. Combined with logit_bias, enables affine score calibration:
activation(logit_scale * (score - logit_bias)). Defaults to None.
"""
## for reward models
step_tag_id: int | None = None
"""