transformers
f4e033de - [emu3] Fix image generation broken since #37033

Commit
7 days ago
[emu3] Fix image generation broken since #37033 `Emu3ForConditionalGeneration.forward()` received `pixel_values` and `image_sizes` but never forwarded them to `self.model()`, so images were silently ignored and generation produced garbage output. Two fixes: - Pass `pixel_values` and `image_sizes` to `self.model()` in `Emu3ForConditionalGeneration.forward()` (modular + modeling files) - Cast `pixel_values` to the VQVAE's dtype in `Emu3VQVAE.encode()` to handle float16 inputs with float32 conv weights (PyTorch 2.13+ is stricter about dtype mismatches than earlier versions) Also update the expected integration test string to match current model output (minor generation difference due to PyTorch version). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Author
Parents
Loading