Commit
·
3ce2735
1
Parent(s):
9381975
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
```python
|
| 4 |
from transformers import BigBirdForQuestionAnswering
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 9 |
|
| 10 |
-
|
| 11 |
-
tokenizer = BigBirdTokenizer.from_pretrained(model_id, revision=revision)
|
| 12 |
-
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: en
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
datasets: natural_questions
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
This checkpoint is obtained after training `BigBirdForQuestionAnswering` on [`natural_questions`](https://huggingface.co/datasets/natural_questions) dataset for ~ 2 weeks on 2 K80 GPUs. Script for training can be found here: https://github.com/vasudevgupta7/bigbird
|
| 9 |
+
|
| 10 |
+
**Use this model just like any other model from 🤗Transformers**
|
| 11 |
|
| 12 |
```python
|
| 13 |
from transformers import BigBirdForQuestionAnswering
|
| 14 |
|
| 15 |
+
model_id = "vasudevgupta/bigbird-roberta-natural-questions"
|
| 16 |
+
model = BigBirdForQuestionAnswering.from_pretrained(model_id)
|
| 17 |
+
tokenizer = BigBirdTokenizer.from_pretrained(model_id)
|
| 18 |
+
```
|
| 19 |
|
| 20 |
+
In case you are interested in predicting category (null, long, short, yes, no) as well, use `BigBirdForNaturalQuestions` (instead of `BigBirdForQuestionAnswering`) from my training script.
|
|
|
|
|
|