You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
vLLM input normalization silently changes prompts for interior or ignored attention masks #3884
An interior zero in a Hugging Face attention mask means token 20 is masked in place. The vLLM token-prompt adapter cannot represent that attention pattern; deleting the token changes the prompt IDs, length, and positions instead of preserving or rejecting the request. _apply_attention_mask also accepts nonbinary values via bool(keep), and the text-prompt branches ignore a supplied mask. The SGLang adapter already validates binary masks and rejects interior holes.
Expected
Accept only boolean/0-1 masks that remove contiguous left or right padding from token prompts; reject interior holes and masks supplied with text prompts with a clear error. Test that valid padding removal preserves the intended token sequence and that invalid masks do not silently alter it.
Activity
fix(vllm): reject attention masks a token prompt cannot represent (Mo…