calpt commited on
Commit
b37f9dd
1 Parent(s): cfe6df8

Add adapter xlm-roberta-large-sw-wiki_pfeiffer version madx

Browse files
Files changed (3) hide show
  1. README.md +63 -0
  2. adapter_config.json +41 -0
  3. pytorch_adapter.bin +3 -0
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - adapter-transformers
4
+ - adapterhub:sw/wiki
5
+ - xlm-roberta
6
+ language:
7
+ - sw
8
+ license: "apache-2.0"
9
+ ---
10
+
11
+ # Adapter `xlm-roberta-large-sw-wiki_pfeiffer` for xlm-roberta-large
12
+
13
+ Pfeiffer Adapter trained with Masked Language Modelling on Swahili Wikipedia Articles for 100k steps and a batch size of 64.
14
+
15
+
16
+ **This adapter was created for usage with the [Adapters](https://github.com/Adapter-Hub/adapters) library.**
17
+
18
+ ## Usage
19
+
20
+ First, install `adapters`:
21
+
22
+ ```
23
+ pip install -U adapters
24
+ ```
25
+
26
+ Now, the adapter can be loaded and activated like this:
27
+
28
+ ```python
29
+ from adapters import AutoAdapterModel
30
+
31
+ model = AutoAdapterModel.from_pretrained("xlm-roberta-large")
32
+ adapter_name = model.load_adapter("AdapterHub/xlm-roberta-large-sw-wiki_pfeiffer")
33
+ model.set_active_adapters(adapter_name)
34
+ ```
35
+
36
+ ## Architecture & Training
37
+
38
+ - Adapter architecture: pfeiffer
39
+ - Prediction head: None
40
+ - Dataset: [sw/wiki](https://adapterhub.ml/explore/sw/wiki/)
41
+
42
+ ## Author Information
43
+
44
+ - Author name(s): Jonas Pfeiffer
45
+ - Author email: [email protected]
46
+ - Author links: [Website](https://pfeiffer.ai), [GitHub](https://github.com/jopfeiff), [Twitter](https://twitter.com/@PfeiffJo)
47
+
48
+
49
+
50
+ ## Citation
51
+
52
+ ```bibtex
53
+ @article{pfeiffer20madx,
54
+ title={{MAD-X}: An {A}dapter-based {F}ramework for {M}ulti-task {C}ross-lingual {T}ransfer},
55
+ author={Pfeiffer, Jonas and Vuli\'{c}, Ivan and Gurevych, Iryna and Ruder, Sebastian},
56
+ journal={arXiv preprint},
57
+ year={2020},
58
+ url={https://arxiv.org/pdf/2005.00052.pdf},
59
+ }
60
+
61
+ ```
62
+
63
+ *This adapter has been auto-imported from https://github.com/Adapter-Hub/Hub/blob/master/adapters/ukp/xlm-roberta-large-sw-wiki_pfeiffer.yaml*.
adapter_config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "adapter_residual_before_ln": false,
4
+ "cross_adapter": false,
5
+ "dropout": 0.0,
6
+ "factorized_phm_W": true,
7
+ "factorized_phm_rule": false,
8
+ "hypercomplex_nonlinearity": "glorot-uniform",
9
+ "init_weights": "bert",
10
+ "inv_adapter": "nice",
11
+ "inv_adapter_reduction_factor": 2,
12
+ "is_parallel": false,
13
+ "learn_phm": true,
14
+ "leave_out": [],
15
+ "ln_after": false,
16
+ "ln_before": false,
17
+ "mh_adapter": false,
18
+ "non_linearity": "relu",
19
+ "original_ln_after": true,
20
+ "original_ln_before": true,
21
+ "output_adapter": true,
22
+ "phm_bias": true,
23
+ "phm_c_init": "normal",
24
+ "phm_dim": 4,
25
+ "phm_init_range": 0.0001,
26
+ "phm_layer": false,
27
+ "phm_rank": 1,
28
+ "reduction_factor": 2,
29
+ "residual_before_ln": true,
30
+ "scaling": 1.0,
31
+ "shared_W_phm": false,
32
+ "shared_phm_rule": true,
33
+ "use_gating": false
34
+ },
35
+ "hidden_size": 1024,
36
+ "model_class": "XLMRobertaAdapterModel",
37
+ "model_name": "xlm-roberta-large",
38
+ "model_type": "xlm-roberta",
39
+ "name": "sw",
40
+ "version": "0.2.0"
41
+ }
pytorch_adapter.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e38a2ec7ed81d2d322848b67abd78880fe06ab878d96fd29a40486811035382
3
+ size 102950018