allenai / allenai/longformer

Adapting this repo to current version of transformers library

Aberta
#220 3 comentários 1 reação 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
2.2k
Forks
285
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Hi,

First of all, thank all of you for the amazing work!
I was wondering if there is any plan to update this repo to work with the latest version of HF transformers library.

When I try to load the model I got this kind of error (similar errors are reported in other issues):

```
RuntimeError: Error(s) in loading state_dict for LongformerEncoderDecoderForConditionalGeneration:
size mismatch for model.encoder.embed_positions.weight: copying a param with shape torch.Size([4098, 1024]) from checkpoint, the shape in current model is torch.Size([1026, 1024]).
```

Is there an effective way to make it work?

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.