allenai / allenai/longformer

Adapting this repo to current version of transformers library

未关闭
#220 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
2.2k
派生
286
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。