Skip to content

Remove commented-out debug print in QwenProcessor._preprocess_data#88

Open
lonexreb wants to merge 1 commit intoNVlabs:mainfrom
lonexreb:fix/qwen-processor-remove-dead-debug-print
Open

Remove commented-out debug print in QwenProcessor._preprocess_data#88
lonexreb wants to merge 1 commit intoNVlabs:mainfrom
lonexreb:fix/qwen-processor-remove-dead-debug-print

Conversation

@lonexreb
Copy link
Copy Markdown
Contributor

@lonexreb lonexreb commented May 4, 2026

Problem

A commented-out debug print was left next to the matching assert in QwenProcessor._preprocess_data:

text = text.replace("<|placeholder|>", processor.image_token)
# print(index, len(image_inputs["image_grid_thw"]))
assert index == len(image_inputs["image_grid_thw"])

The assert immediately below it already raises with the relevant values when the invariant breaks (Python's standard assertion failure format includes the operands), so the print would not provide any signal a developer can't already get from a normal failure.

Fix

Delete the commented line. One-line removal, no behavior change.

A commented `# print(index, len(image_inputs["image_grid_thw"]))` was
left next to the matching `assert index == len(...)` check. The assert
already provides the diagnostic information that the print would have
shown (it raises with the actual values via the standard assertion
message), so the comment is dead and just noise.

Pure cleanup. No behavior change.

Signed-off-by: lonexreb <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant