Upon running the quick start at Huggingface I encountered an error mentioned below.
File "/home/user/.cache/huggingface/modules/transformers_modules/allenai/Molmo-7B-O-0924/ed442fa7789ab66fc9f435f790823319d51196fb/modeling_molmo.py", line 2275, in _update_model_kwargs_for_generation
cache_name, cache = super()._extract_past_from_model_output(outputs)
AttributeError: 'super' object has no attribute '_extract_past_from_model_output'
Now in the modeling_molmo.py I tried replacing super() with self in the hopes that it may not need to inherit and might function normally.However it didn't work.
I was finally able to get inference by commenting that line entirely but I didn't get why i faced this error. Was it a bug? or some dependency issue?
Below I have listed the dependency as per pip list of my env.
tokenizers 0.21.2
torch 2.7.1
torchvision 0.22.1
tqdm 4.67.1
transformers 4.53.3
triton 3.3.1