calpt commited on
Commit
4315d2b
1 Parent(s): 5e3e322

Initial version.

Browse files
Files changed (3) hide show
  1. README.md +3 -2
  2. pytorch_adapter.bin +2 -2
  3. pytorch_model_head.bin +2 -2
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
  tags:
3
  - adapter-transformers
4
- - bert
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("bert-base-uncased")
31
- model.load_adapter("AdapterHub/bert-base-uncased-pf-qqp", source="hf", set_active=True)
 
32
  ```
33
 
34
  ## Architecture & Training
 
1
  ---
2
  tags:
3
  - adapter-transformers
 
4
  - adapterhub:sts/qqp
5
+ - bert
6
  language:
7
  - en
8
  ---
 
28
  from transformers import AutoModelWithHeads
29
 
30
  model = AutoModelWithHeads.from_pretrained("bert-base-uncased")
31
+ adapter_name = model.load_adapter("AdapterHub/bert-base-uncased-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:e4a7493be42503fed882f322c48a19d1804ac7eb86cc283437435726a03bddce
3
- size 3594690
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51a5901a3f7f764d350ed615ebea7c361f2f62271da3dc26a769e19a4a2c042a
3
+ size 3594687
pytorch_model_head.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bf73a0e629f78f97845410d40af26b29120839271991684cc70e8f13db8460b7
3
- size 2370173
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c01805d12529ecc6c8a3f5be603fb360855a68bda521e88a2507223d28d6a5b7
3
+ size 2370171