calpt commited on
Commit
9181be8
1 Parent(s): af72bf9

Initial version.

Browse files
Files changed (3) hide show
  1. README.md +3 -2
  2. pytorch_adapter.bin +1 -1
  3. pytorch_model_head.bin +1 -1
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
  tags:
3
  - adapter-transformers
4
- - roberta
5
  - adapterhub:sts/qqp
 
6
  language:
7
  - en
8
  ---
@@ -28,7 +28,8 @@ Now, the adapter can be loaded and activated like this:
28
  from transformers import AutoModelWithHeads
29
 
30
  model = AutoModelWithHeads.from_pretrained("roberta-base")
31
- model.load_adapter("AdapterHub/roberta-base-pf-qqp", source="hf", set_active=True)
 
32
  ```
33
 
34
  ## Architecture & Training
 
1
  ---
2
  tags:
3
  - adapter-transformers
 
4
  - adapterhub:sts/qqp
5
+ - roberta
6
  language:
7
  - en
8
  ---
 
28
  from transformers import AutoModelWithHeads
29
 
30
  model = AutoModelWithHeads.from_pretrained("roberta-base")
31
+ adapter_name = model.load_adapter("AdapterHub/roberta-base-pf-qqp", source="hf")
32
+ model.active_adapters = adapter_name
33
  ```
34
 
35
  ## Architecture & Training
pytorch_adapter.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c62d93bea5b130be5c5a9b6f9c66ba38f7e5108e46c98e40ff0ad10123a7b45e
3
  size 3594815
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba1ded61a8ef981ee6508acbe569cc959670e8b1f661d09938061e62df80ace0
3
  size 3594815
pytorch_model_head.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:cea270cc454fd285aabd0c28722d188d25a034375a9f7b673253a9a12b240944
3
  size 2370171
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ec05e98b174cd0c1479dd597c3acec35b66823ce96572e71f26b82d83d48596
3
  size 2370171