You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: comprehensive prompt diagnostics for debugging garbage output (#248)
Adds detailed one-time logging to help debug the persistent garbage
output issue:
1. Raw messages (role, content types, text preview) before chat template
2. Full rendered text_input (2000 chars, not 300)
3. Image metadata (mode, size, format)
4. Generation config (max_new_tokens, temperature, constrained, model type)
5. First generation output (500 chars + token count)
6. Input tensor shapes (input_ids, attention_mask, pixel_values, image_grid_thw)
The tensor shape logging is critical: if pixel_values is MISSING, the
model isn't seeing the screenshot — which would explain degenerate output
regardless of prompt correctness.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments