allenai / allenai/molmo

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

Aberta
#42 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
933
Forks
96
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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
```

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.