allenai / allenai/molmo

Question/Bug AttributeError: 'super' object has no attribute '_extract_past_from_model_output'

Đang mở
#42 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
933
Fork
96
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Upon running the quick start at [Huggingface](https://huggingface.co/allenai/Molmo-7B-O-0924) 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
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.