Update modeling_molmo.py for compatibility

#17

Make code compatible with transformers >= 4.50.3.
Update code to align with recent changes in the Transformers library (calling _extract_past_from_model_output() raises an error).

Same PR from allenai/Molmo-7B-D-0924
https://huggingface.co/allenai/Molmo-7B-D-0924/discussions/43

amanrangapur changed pull request status to merged

Sign up or log in to comment