YvanCarre commited on
Commit
44b4ccf
·
verified ·
1 Parent(s): 5e4c398

Upload InkubaLM multi-task with adapters

Browse files
config.json ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "lelapa/InkubaLM-0.4B",
3
+ "adapters": {
4
+ "adapters": {
5
+ "machine-translation": "26cd1b10db746518",
6
+ "sentiment-analysis": "seq_bn",
7
+ "xnli": "seq_bn"
8
+ },
9
+ "config_map": {
10
+ "26cd1b10db746518": {
11
+ "adapter_residual_before_ln": false,
12
+ "cross_adapter": false,
13
+ "dropout": 0.0,
14
+ "factorized_phm_W": true,
15
+ "factorized_phm_rule": false,
16
+ "hypercomplex_nonlinearity": "glorot-uniform",
17
+ "init_weights": "bert",
18
+ "inv_adapter": null,
19
+ "inv_adapter_reduction_factor": null,
20
+ "is_parallel": false,
21
+ "learn_phm": true,
22
+ "leave_out": [],
23
+ "ln_after": false,
24
+ "ln_before": false,
25
+ "mh_adapter": false,
26
+ "non_linearity": "relu",
27
+ "original_ln_after": true,
28
+ "original_ln_before": true,
29
+ "output_adapter": true,
30
+ "phm_bias": true,
31
+ "phm_c_init": "normal",
32
+ "phm_dim": 4,
33
+ "phm_init_range": 0.0001,
34
+ "phm_layer": false,
35
+ "phm_rank": 1,
36
+ "reduction_factor": 8,
37
+ "residual_before_ln": true,
38
+ "scaling": 1.0,
39
+ "shared_W_phm": false,
40
+ "shared_phm_rule": true,
41
+ "stochastic_depth": 0.0,
42
+ "use_gating": false
43
+ }
44
+ },
45
+ "fusion_config_map": {},
46
+ "fusion_name_map": {},
47
+ "fusions": {}
48
+ },
49
+ "architectures": [
50
+ "LlamaAdapterModel"
51
+ ],
52
+ "attention_bias": false,
53
+ "attention_dropout": 0.0,
54
+ "auto_map": {
55
+ "AutoModelForCausalLM": "lelapa/InkubaLM-0.4B--vulavulaslm.VulavulaLlamaForCausalLM"
56
+ },
57
+ "bos_token_id": 1,
58
+ "eos_token_id": 2,
59
+ "head_dim": 64,
60
+ "hidden_act": "silu",
61
+ "hidden_size": 2048,
62
+ "id2label": null,
63
+ "initializer_range": 0.02,
64
+ "intermediate_size": 5632,
65
+ "label2id": null,
66
+ "max_position_embeddings": 2048,
67
+ "mlp_bias": false,
68
+ "model_type": "llama",
69
+ "num_attention_heads": 32,
70
+ "num_hidden_layers": 8,
71
+ "num_key_value_heads": 32,
72
+ "prediction_heads": {
73
+ "default": {
74
+ "activation_function": null,
75
+ "bias": false,
76
+ "dropout_prob": null,
77
+ "embedding_size": 2048,
78
+ "head_type": "causal_lm",
79
+ "label2id": null,
80
+ "layer_norm": false,
81
+ "layers": 1,
82
+ "shift_labels": true,
83
+ "vocab_size": 61788
84
+ },
85
+ "machine-translation": {
86
+ "activation_function": "gelu",
87
+ "bias": true,
88
+ "dropout_prob": null,
89
+ "embedding_size": 2048,
90
+ "head_type": "causal_lm",
91
+ "label2id": null,
92
+ "layer_norm": true,
93
+ "layers": 2,
94
+ "shift_labels": true,
95
+ "vocab_size": 61788
96
+ },
97
+ "sentiment-analysis": {
98
+ "activation_function": "tanh",
99
+ "bias": true,
100
+ "dropout_prob": null,
101
+ "head_type": "classification",
102
+ "label2id": {
103
+ "LABEL_0": 0,
104
+ "LABEL_1": 1,
105
+ "LABEL_2": 2
106
+ },
107
+ "layers": 2,
108
+ "num_labels": 3,
109
+ "use_pooler": false
110
+ },
111
+ "xnli": {
112
+ "activation_function": "tanh",
113
+ "bias": true,
114
+ "dropout_prob": null,
115
+ "head_type": "classification",
116
+ "label2id": {
117
+ "LABEL_0": 0,
118
+ "LABEL_1": 1,
119
+ "LABEL_2": 2
120
+ },
121
+ "layers": 2,
122
+ "num_labels": 3,
123
+ "use_pooler": false
124
+ }
125
+ },
126
+ "pretraining_tp": 1,
127
+ "rms_norm_eps": 1e-05,
128
+ "rope_scaling": null,
129
+ "rope_theta": 10000.0,
130
+ "tie_word_embeddings": false,
131
+ "torch_dtype": "float32",
132
+ "transformers_version": "4.47.1",
133
+ "use_cache": true,
134
+ "vocab_size": 61788
135
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "4.47.1"
6
+ }
machine-translation/adapter_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": null,
11
+ "inv_adapter_reduction_factor": null,
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": 8,
29
+ "residual_before_ln": true,
30
+ "scaling": 1.0,
31
+ "shared_W_phm": false,
32
+ "shared_phm_rule": true,
33
+ "stochastic_depth": 0.0,
34
+ "use_gating": false
35
+ },
36
+ "hidden_size": 2048,
37
+ "model_class": "LlamaAdapterModel",
38
+ "model_name": "lelapa/InkubaLM-0.4B",
39
+ "model_type": "llama",
40
+ "name": "machine-translation",
41
+ "version": "adapters.1.1.0"
42
+ }
machine-translation/head_config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "activation_function": "gelu",
4
+ "bias": true,
5
+ "dropout_prob": null,
6
+ "embedding_size": 2048,
7
+ "head_type": "causal_lm",
8
+ "label2id": null,
9
+ "layer_norm": true,
10
+ "layers": 2,
11
+ "shift_labels": true,
12
+ "vocab_size": 61788
13
+ },
14
+ "hidden_size": 2048,
15
+ "model_class": "LlamaAdapterModel",
16
+ "model_name": "lelapa/InkubaLM-0.4B",
17
+ "model_type": "llama",
18
+ "name": "machine-translation",
19
+ "version": "adapters.1.1.0"
20
+ }
machine-translation/pytorch_adapter.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05181a303bdf4633323da7cd7cc42c0dc42de0047093fd154bd3d3cf56475ccb
3
+ size 33640406
machine-translation/pytorch_model_head.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11fd55df1c791afae000989604f2fefa0e12abd715657be35bf2a00a393874cd
3
+ size 523218998
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e02a8f87608cbc40d6a46096618ad785ab8dfff3f75d0ef496ede17c994c4901
3
+ size 3280823264
sentiment-analysis/adapter_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": null,
11
+ "inv_adapter_reduction_factor": null,
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": 16,
29
+ "residual_before_ln": true,
30
+ "scaling": 1.0,
31
+ "shared_W_phm": false,
32
+ "shared_phm_rule": true,
33
+ "stochastic_depth": 0.0,
34
+ "use_gating": false
35
+ },
36
+ "hidden_size": 2048,
37
+ "model_class": "LlamaAdapterModel",
38
+ "model_name": "lelapa/InkubaLM-0.4B",
39
+ "model_type": "llama",
40
+ "name": "sentiment-analysis",
41
+ "version": "adapters.1.1.0"
42
+ }
sentiment-analysis/head_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "activation_function": "tanh",
4
+ "bias": true,
5
+ "dropout_prob": null,
6
+ "head_type": "classification",
7
+ "label2id": {
8
+ "LABEL_0": 0,
9
+ "LABEL_1": 1,
10
+ "LABEL_2": 2
11
+ },
12
+ "layers": 2,
13
+ "num_labels": 3,
14
+ "use_pooler": false
15
+ },
16
+ "hidden_size": 2048,
17
+ "model_class": "LlamaAdapterModel",
18
+ "model_name": "lelapa/InkubaLM-0.4B",
19
+ "model_type": "llama",
20
+ "name": "sentiment-analysis",
21
+ "version": "adapters.1.1.0"
22
+ }
sentiment-analysis/pytorch_adapter.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b67fe84a865c161706578ea8e295c8f158b246896b98e8ee767e455f0fe5fded
3
+ size 16859030
sentiment-analysis/pytorch_model_head.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf7eac6525f75894ce9e9adbed2e71322205cbd82d0619042b473d006ab9edbc
3
+ size 16812200
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c41fcc6d44fcc4e8269e41dffe0123687baf800bd95a9c8b5d48abd9cb8971b
3
+ size 991189
tokenizer_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": true,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "bos_token": "<s>",
32
+ "clean_up_tokenization_spaces": false,
33
+ "eos_token": "</s>",
34
+ "extra_special_tokens": {},
35
+ "legacy": true,
36
+ "model_max_length": 1000000000000000019884624838656,
37
+ "pad_token": "</s>",
38
+ "sp_model_kwargs": {},
39
+ "spaces_between_special_tokens": false,
40
+ "tokenizer_class": "LlamaTokenizer",
41
+ "unk_token": "<unk>",
42
+ "use_default_system_prompt": false
43
+ }
xnli/adapter_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": null,
11
+ "inv_adapter_reduction_factor": null,
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": 16,
29
+ "residual_before_ln": true,
30
+ "scaling": 1.0,
31
+ "shared_W_phm": false,
32
+ "shared_phm_rule": true,
33
+ "stochastic_depth": 0.0,
34
+ "use_gating": false
35
+ },
36
+ "hidden_size": 2048,
37
+ "model_class": "LlamaAdapterModel",
38
+ "model_name": "lelapa/InkubaLM-0.4B",
39
+ "model_type": "llama",
40
+ "name": "xnli",
41
+ "version": "adapters.1.1.0"
42
+ }
xnli/head_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "activation_function": "tanh",
4
+ "bias": true,
5
+ "dropout_prob": null,
6
+ "head_type": "classification",
7
+ "label2id": {
8
+ "LABEL_0": 0,
9
+ "LABEL_1": 1,
10
+ "LABEL_2": 2
11
+ },
12
+ "layers": 2,
13
+ "num_labels": 3,
14
+ "use_pooler": false
15
+ },
16
+ "hidden_size": 2048,
17
+ "model_class": "LlamaAdapterModel",
18
+ "model_name": "lelapa/InkubaLM-0.4B",
19
+ "model_type": "llama",
20
+ "name": "xnli",
21
+ "version": "adapters.1.1.0"
22
+ }
xnli/pytorch_adapter.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a584e75646d868757e70744f3fed1c83c25d66ff6cdf9994d6775d70874a806
3
+ size 16858582
xnli/pytorch_model_head.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1366e1b83a7b97a418f3f3053659d15a96ac13a53b4114249979ca6fce64fbd
3
+ size 16812136