Repository navigation
Conversation
ashhart
force-pushed
the
lead/logit-bias
branch
from
November 14, 2026 03:31
830b57b to
d3126e2
Compare
Merged
8 tasks done
5 of 8 tasks
1 task done
ashhart
force-pushed
the
lead/logit-bias
branch
from
November 14, 2026 20:11
d3126e2 to
ea4c650
Compare
4 tasks done
7 of 8 tasks
ashhart
force-pushed
the
lead/logit-bias
branch
2 times, most recently
from
November 19, 2026 02:01
a1c44aa to
eb90f57
Compare
This was referenced Nov 20, 2026
ashhart
added a commit
that referenced
this pull request
Nov 21, 2026
ashhart
force-pushed
the
lead/logit-bias
branch
from
November 21, 2026 05:22
eb90f57 to
ceae8c0
Compare
ashhart
added a commit
that referenced
this pull request
Nov 21, 2026
ashhart
force-pushed
the
lead/logit-bias
branch
from
November 21, 2026 21:19
ceae8c0 to
57050af
Compare
ashhart
added a commit
that referenced
this pull request
Nov 22, 2026
ashhart
force-pushed
the
lead/logit-bias
branch
from
November 22, 2026 03:29
57050af to
1fa6842
Compare
ashhart
added a commit
that referenced
this pull request
Nov 23, 2026
ashhart
force-pushed
the
lead/logit-bias
branch
from
November 23, 2026 19:37
1fa6842 to
614669a
Compare
ashhart
added a commit
that referenced
this pull request
Nov 26, 2026
ashhart
force-pushed
the
lead/logit-bias
branch
from
November 26, 2026 22:22
614669a to
d77a790
Compare
ashhart
added a commit
that referenced
this pull request
Nov 28, 2026
ashhart
force-pushed
the
lead/logit-bias
branch
from
November 28, 2026 01:57
d77a790 to
d6f3cfb
Compare
ashhart
added a commit
that referenced
this pull request
Nov 28, 2026
ashhart
force-pushed
the
lead/logit-bias
branch
from
November 28, 2026 06:48
d6f3cfb to
c21517d
Compare
ashhart
added a commit
that referenced
this pull request
Nov 28, 2026
ashhart
force-pushed
the
lead/logit-bias
branch
from
November 28, 2026 07:23
c21517d to
b0dadf6
Compare
8 tasks done
ashhart
added a commit
that referenced
this pull request
Nov 28, 2026
ashhart
force-pushed
the
lead/logit-bias
branch
from
November 28, 2026 18:21
3439823 to
d7c0208
Compare
ashhart
added a commit
that referenced
this pull request
Nov 28, 2026
ashhart
force-pushed
the
lead/logit-bias
branch
from
November 28, 2026 19:19
d7c0208 to
301a174
Compare
7 of 8 tasks
ashhart
force-pushed
the
lead/logit-bias
branch
from
November 29, 2026 21:50
301a174 to
386f418
Compare
ashhart
force-pushed
the
lead/logit-bias
branch
from
November 30, 2026 18:43
386f418 to
2c4fc13
Compare
8 tasks done
This was referenced Dec 2, 2026
Open
8 tasks done
Owner
Author
Synthena Initial Review — Performance receipt required (
|
1 of 6 tasks
8 tasks done
3 of 4 tasks
9 tasks done
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3110.
logit_biasadds each listed token's value to its logit before every draw, and -100 bans the token. Supported on Qwen3.8-27B and Qwen3.5-MoE on CUDA, Qwen3.5-2B on Metal and Nemotron Parse on HIP. The bias applies on each row's draw, so drafted replies equal undrafted ones. Every other engine now refuses a non-emptylogit_biaswith a 400 instead of silently ignoring it, and/v1/modelsnames the capability per engine.Bias lookup is a binary search over the request's sorted entries. A bias token past the model head's vocabulary is refused before launch. On CUDA the bias runs as a small kernel,
tf_bias_rows, before the draw. The shared sampling rule was refactored and checked equal to main for every temperature the server accepts.Tests: the refusal test fails on main (expected 400, got 200, because main ignored the field);
test-server-logit-bias-host24;test-logit-bias-host18 + 16; a draw-equality test;test-cuda-host393/393 steps; HIP 78/78; goldens updated for the new capability field; CUDA cross-compiles pass.Device check pending (GB10, Qwen3.8-27B with MTP and DFlash2):
tf-cuda-test kernel-contract tf_bias_rows, where the real kernel passes and the planted control fails. Served checkerzig/tests/server/logit_bias_served.py: no bias equals main, a banned token never appears, biased drafted equals undrafted, concurrent equals solo, an unbiased neighbour is unchanged. No-bias decode level with main; first-token latency of a 300-entry bias reported.tf_bias_rowsregister records move out of pending before a release.