### What this PR does / why we need it? Fix #2033 Sync https://github.com/vllm-project/vllm/pull/14702 to solve `grammar_bitmask` IndexError caused by outdated `apply_grammar_bitmask` method ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Tested by upstream vllm - vLLM version: v0.10.0 - vLLM main: https://github.com/vllm-project/vllm/commit/6e599eebe8655dab75462a8a165f6d811d0d845f Signed-off-by: ApsarasX <apsarax@outlook.com>