Skip to content

train 1120214140: #3146 (CI only) - #4263

Closed
ashhart wants to merge 5 commits into
mainfrom
lead/train-1120214140
Closed

ashhart wants to merge 5 commits into
mainfrom
lead/train-1120214140

Conversation

@ashhart

@ashhart ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #3146 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.

…DA, Qwen3.5-2B Metal and Nemotron Parse HIP

The server dropped logit_bias from its field list, so a request sending it got unbiased draws. It is now parsed
(decimal token IDs inside the tokenizer's vocabulary, finite values from -100 to 100, at most 300 entries, sorted,
duplicates refused; exactly -100 is a ban) and carried on the request and lane stream beside the penalties. An
engine without Info.logit_bias refuses a non-empty object by name, even one of zeros; {} and null keep working, and
Engine.submit refuses a list the engine did not declare.

On Qwen3.8-27B and Qwen3.5-MoE CUDA each kept row's (row, token) cell takes one amount, the penalty less the bias
(+inf for a ban), so a cell has one writer; a new tf_bias_rows launch subtracts in fp32 and rounds once to bf16 as
tf_penalize_rows does, and writes -inf for a ban whatever the cell held. tf_penalize_rows is unchanged and still
runs for rounds with no bias. A kernel set without tf_bias_rows does not offer the field. The first token is drawn
on the host from the cached row with the same arithmetic, and a masked verify row draws from the processed row,
skipping a ban's -inf. Qwen3.5-2B on Metal applies it in every host draw; Nemotron Parse's HIP host draw applies it
after repetition and the penalties, and a banned forced end token fails the draw rather than being emitted.

Every wrapper (CUDA host, drafter, recorder) copies Backend.logit_bias. Model discovery publishes the flag, so the
frozen /v1/models answers gain "logit_bias": false. tf_bias_rows has a pending contract record: its resources are
still to be measured on nvcc 13.0.88, 13.2 and 13.3 for the five targets before a release.
Main had three lines here the PR did not; with the three logit_bias fields the file reached 602. Three blank separators were dropped so the file is 599 lines, with every statement and its formatting unchanged.
@ashhart

ashhart commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Closing this CI-only train PR: it was stacked on an older main (or its riders have landed). A fresh train restacks on today's main.

@ashhart ashhart closed this Nov 21, 2026
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