chore(rl): add message to multimodal packing assert (#3117)

Follow-up to #3103 review feedback: make the mm_kwargs invariant assert self-describing when it fires.

Co-authored-by: eligotts <eligotts@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
eligotts
2026-07-23 06:11:09 +02:00
committed by GitHub
co-authored by eligotts Cursor
parent 1b8c5ef01a
commit 055f62ca32
+1 -1
View File
@@ -270,7 +270,7 @@ class _MicroBatchBin:
if existing_mm_sample is not None and sample_is_mm:
dst = existing_mm_sample.mm_kwargs
src = sample.mm_kwargs
assert dst is not None and src is not None
assert dst is not None and src is not None, "multimodal samples must carry mm_kwargs"
return set(dst) == set(src) and all(
dst[key].dtype == src[key].dtype
and len(dst[key].shape) > 0