Update readme
#1
by
jammygrams
- opened
README.md
CHANGED
|
@@ -25,10 +25,10 @@ _Note: adapter-transformers is a fork of transformers that acts as a drop-in rep
|
|
| 25 |
Now, the adapter can be loaded and activated like this:
|
| 26 |
|
| 27 |
```python
|
| 28 |
-
from transformers import
|
| 29 |
|
| 30 |
-
model =
|
| 31 |
-
|
| 32 |
```
|
| 33 |
|
| 34 |
## Architecture & Training
|
|
|
|
| 25 |
Now, the adapter can be loaded and activated like this:
|
| 26 |
|
| 27 |
```python
|
| 28 |
+
from transformers import BartForConditionalGeneration
|
| 29 |
|
| 30 |
+
model = BartForConditionalGeneration.from_pretrained("facebook/bart-base")
|
| 31 |
+
model.load_adapter("AdapterHub/narrativeqa", source="hf")
|
| 32 |
```
|
| 33 |
|
| 34 |
## Architecture & Training
|