Skip to content

Sampling: Support logit_bias on the exllamav3 backend - #445

Draft
sashko-zakharchuk wants to merge 1 commit into
theroyallab:mainfrom
sashko-zakharchuk:logit-bias-exl3
Draft

Sampling: Support logit_bias on the exllamav3 backend#445
sashko-zakharchuk wants to merge 1 commit into
theroyallab:mainfrom
sashko-zakharchuk:logit-bias-exl3

Conversation

@sashko-zakharchuk

Copy link
Copy Markdown

Passes logit_bias through to the exllamav3 backend, so requests that set it are honored instead of dropped with a warning (turboderp-org/exllamav3#270).

Three changes: drop logit_bias from UNSUPPORTED_PARAMS; add a logit_bias() method to ExllamaV3SamplerBuilder that prepends SS_LogitBias (it must run before the logits are transformed); and call it from the exllamav3 model when a request sets a bias.

Depends on turboderp-org/exllamav3#274, which adds SS_LogitBias — this won't import until that PR lands or an exllamav3 release includes it, so opening as a draft.

Passes logit_bias through to the exllamav3 backend instead of dropping it with an
unsupported-parameter warning. Adds a logit_bias() method to ExllamaV3SamplerBuilder
that prepends SS_LogitBias (it must run before the logits are transformed), calls it
from the exllamav3 model when a request sets a bias, and removes logit_bias from
UNSUPPORTED_PARAMS.

Depends on turboderp-org/exllamav3#274 (adds SS_LogitBias).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant