Files changed (1) hide show
  1. README.md +3 -3
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 AutoModelWithHeads
29
 
30
- model = AutoModelWithHeads.from_pretrained("facebook/bart-base")
31
- adapter_name = model.load_adapter("hSterz/narrativeqa", source="hf", set_active=True)
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