Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SCHENLIU authored Oct 27, 2020
1 parent 6ea69e6 commit 6524e5f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ All work is based on `Longformer`(https://github.com/allenai/longformer)

`Longformer-chinese` 基于BERT框架进行修改,在embedding层会与原版的稍有区别。加载时使用longformer.longformer:

```bash
conda create --name longformer python=3.7
conda activate longformer
conda install cudatoolkit=10.0
pip install git+https://github.com/allenai/longformer.git
```




```python
from longformer.longformer import *
config = LongformerConfig.from_pretrained('schen/longformer-chinese-base-4096')
Expand Down

0 comments on commit 6524e5f

Please sign in to comment.