[Deprecation] Remove assistant_token_mask support (#57520)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user