[Deprecation] Remove assistant_token_mask support (#57520)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2026-09-19 00:17:51 +08:00
committed by GitHub
parent 164dca8d1e
commit 56cac80b14
7 changed files with 20 additions and 334 deletions
-10
View File
@@ -43,11 +43,6 @@ class TokensInput(_InputOptions):
"""Char-level (start, end) offsets per token, propagated from the
renderer's TokensPrompt when offsets were computed."""
assistant_tokens_mask: NotRequired[list[int] | None]
"""Per-token 0/1 mask marking assistant-generated tokens.
Populated when ``return_assistant_tokens_mask=True`` is set on the
render request and the chat template supports ``{% generation %}``."""
def tokens_input(
prompt_token_ids: list[int],
@@ -155,11 +150,6 @@ class MultiModalInput(_InputOptions):
`prompt_token_ids`.
"""
assistant_tokens_mask: NotRequired[list[int] | None]
"""Per-token 0/1 mask marking assistant-generated tokens.
Populated when ``return_assistant_tokens_mask=True`` is set on the
render request and the chat template supports ``{% generation %}``."""
def mm_input(
prompt_token_ids: list[int],