[MM] Simplify prompt updates: replace PromptSeq with list[int] (#53372)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
Co-authored-by: Qwen Code <noreply@alibaba-inc.com>
This commit is contained in:
Cyrus Leung
2026-08-23 14:50:32 +08:00
committed by GitHub
co-authored by Qwen Code
parent a3561ef8e4
commit ebcd606467
53 changed files with 831 additions and 855 deletions
@@ -192,11 +192,11 @@ def test_openvla_prompt_update_inserts_image_tokens_after_bos() -> None:
assert resolved.modality == "image"
assert [
(match.start_idx, match.end_idx)
for match in resolved.iter_matches([1, 10, 11], _FakeTokenizer())
for match in resolved.iter_token_matches([1, 10, 11])
] == [(1, 1)]
assert content.full == [32000] * 256
is_embed = content.is_embed(None, content.full)
is_embed = content.is_embed(content.full)
assert is_embed.dtype == torch.bool
assert is_embed.tolist() == [True] * 256