[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
+2 -2
View File
@@ -93,7 +93,7 @@ def test_cache_item_size(item, expected_size):
cache[""] = item
assert cache.currsize == expected_size
prompt_update = PromptInsertion("dummy", "target", "insertion").resolve(0)
prompt_update = PromptInsertion("dummy", [0], [1]).resolve(0)
cache[""] = MultiModalProcessorCacheItem(item, [prompt_update])
assert cache.currsize == expected_size
@@ -151,7 +151,7 @@ def _compare_caches(
for item in all_items
]
prompt_update = PromptInsertion("dummy", "target", "insertion").resolve(0)
prompt_update = PromptInsertion("dummy", [0], [1]).resolve(0)
for it in range(n_iter):
num_items_to_select = rng.randint(0, max_items_per_iter)