calpt commited on
Commit
2f6c9aa
1 Parent(s): d8f3b1e

Upload model

Browse files
Files changed (3) hide show
  1. README.md +61 -0
  2. adapter_config.json +40 -0
  3. pytorch_adapter.bin +3 -0
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - adapterhub:af/cc100
4
+ - adapters
5
+ - xmod
6
+ language:
7
+ - af
8
+ license: "mit"
9
+ ---
10
+
11
+ # Adapter `AdapterHub/xmod-base-af_ZA` for xmod_output
12
+
13
+ An [adapter](https://adapterhub.ml) for the `xmod_output` model that was trained on the [af/cc100](https://adapterhub.ml/explore/af/cc100/) dataset.
14
+
15
+ This adapter was created for usage with the **[Adapters](https://github.com/Adapter-Hub/adapters)** library.
16
+
17
+ ## Usage
18
+
19
+ First, install `adapters`:
20
+
21
+ ```
22
+ pip install -U adapters
23
+ ```
24
+
25
+ Now, the adapter can be loaded and activated like this:
26
+
27
+ ```python
28
+ from adapters import AutoAdapterModel
29
+
30
+ model = AutoAdapterModel.from_pretrained("xmod_output")
31
+ adapter_name = model.load_adapter("AdapterHub/xmod-base-af_ZA", source="hf", set_active=True)
32
+ ```
33
+
34
+ ## Architecture & Training
35
+
36
+ <!-- Add some description here -->
37
+
38
+ ## Evaluation results
39
+
40
+ <!-- Add some description here -->
41
+
42
+ ## Citation
43
+
44
+ @inproceedings{pfeiffer-etal-2022-lifting,
45
+ title = "Lifting the Curse of Multilinguality by Pre-training Modular Transformers",
46
+ author = "Pfeiffer, Jonas and
47
+ Goyal, Naman and
48
+ Lin, Xi and
49
+ Li, Xian and
50
+ Cross, James and
51
+ Riedel, Sebastian and
52
+ Artetxe, Mikel",
53
+ booktitle = "Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies",
54
+ month = jul,
55
+ year = "2022",
56
+ address = "Seattle, United States",
57
+ publisher = "Association for Computational Linguistics",
58
+ url = "https://aclanthology.org/2022.naacl-main.255",
59
+ doi = "10.18653/v1/2022.naacl-main.255",
60
+ pages = "3479--3495"
61
+ }
adapter_config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "adapter_residual_before_ln": false,
4
+ "cross_adapter": false,
5
+ "factorized_phm_W": true,
6
+ "factorized_phm_rule": false,
7
+ "hypercomplex_nonlinearity": "glorot-uniform",
8
+ "init_weights": "bert",
9
+ "inv_adapter": null,
10
+ "inv_adapter_reduction_factor": null,
11
+ "is_parallel": false,
12
+ "learn_phm": true,
13
+ "leave_out": [],
14
+ "ln_after": false,
15
+ "ln_before": false,
16
+ "mh_adapter": false,
17
+ "non_linearity": "gelu",
18
+ "original_ln_after": false,
19
+ "original_ln_before": true,
20
+ "output_adapter": true,
21
+ "phm_bias": true,
22
+ "phm_c_init": "normal",
23
+ "phm_dim": 4,
24
+ "phm_init_range": 0.0001,
25
+ "phm_layer": false,
26
+ "phm_rank": 1,
27
+ "reduction_factor": 2,
28
+ "residual_before_ln": false,
29
+ "scaling": 1.0,
30
+ "shared_W_phm": false,
31
+ "shared_phm_rule": true,
32
+ "use_gating": false
33
+ },
34
+ "hidden_size": 768,
35
+ "model_class": "XmodAdapterModel",
36
+ "model_name": "xmod_output",
37
+ "model_type": "xmod",
38
+ "name": "af_ZA",
39
+ "version": "0.0.0"
40
+ }
pytorch_adapter.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b68abe1c92eaa33fad69282e44ff38a497b4e5cf1fb43b78782244f53236dba0
3
+ size 28383333