YvanCarre commited on
Commit
3cd42f1
·
verified ·
1 Parent(s): 4ba7f06

Upload InkubaLM multi-task with adapters

Browse files
config.json ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "lelapa/InkubaLM-0.4B",
3
+ "adapters": {
4
+ "adapters": {
5
+ "machine-translation": "seq_bn",
6
+ "sentiment-analysis": "seq_bn",
7
+ "xnli": "seq_bn"
8
+ },
9
+ "config_map": {},
10
+ "fusion_config_map": {},
11
+ "fusion_name_map": {},
12
+ "fusions": {}
13
+ },
14
+ "architectures": [
15
+ "LlamaAdapterModel"
16
+ ],
17
+ "attention_bias": false,
18
+ "attention_dropout": 0.0,
19
+ "auto_map": {
20
+ "AutoModelForCausalLM": "lelapa/InkubaLM-0.4B--vulavulaslm.VulavulaLlamaForCausalLM"
21
+ },
22
+ "bos_token_id": 1,
23
+ "eos_token_id": 2,
24
+ "head_dim": 64,
25
+ "hidden_act": "silu",
26
+ "hidden_size": 2048,
27
+ "id2label": null,
28
+ "initializer_range": 0.02,
29
+ "intermediate_size": 5632,
30
+ "label2id": null,
31
+ "max_position_embeddings": 2048,
32
+ "mlp_bias": false,
33
+ "model_type": "llama",
34
+ "num_attention_heads": 32,
35
+ "num_hidden_layers": 8,
36
+ "num_key_value_heads": 32,
37
+ "prediction_heads": {
38
+ "default": {
39
+ "activation_function": null,
40
+ "bias": false,
41
+ "dropout_prob": null,
42
+ "embedding_size": 2048,
43
+ "head_type": "causal_lm",
44
+ "label2id": null,
45
+ "layer_norm": false,
46
+ "layers": 1,
47
+ "shift_labels": true,
48
+ "vocab_size": 61788
49
+ },
50
+ "machine-translation": {
51
+ "activation_function": "gelu",
52
+ "bias": true,
53
+ "dropout_prob": null,
54
+ "embedding_size": 2048,
55
+ "head_type": "causal_lm",
56
+ "label2id": null,
57
+ "layer_norm": true,
58
+ "layers": 2,
59
+ "shift_labels": true,
60
+ "vocab_size": 61788
61
+ },
62
+ "sentiment-analysis": {
63
+ "activation_function": "tanh",
64
+ "bias": true,
65
+ "dropout_prob": null,
66
+ "head_type": "classification",
67
+ "label2id": {
68
+ "LABEL_0": 0,
69
+ "LABEL_1": 1,
70
+ "LABEL_2": 2
71
+ },
72
+ "layers": 2,
73
+ "num_labels": 3,
74
+ "use_pooler": false
75
+ },
76
+ "xnli": {
77
+ "activation_function": "tanh",
78
+ "bias": true,
79
+ "dropout_prob": null,
80
+ "head_type": "classification",
81
+ "label2id": {
82
+ "LABEL_0": 0,
83
+ "LABEL_1": 1,
84
+ "LABEL_2": 2
85
+ },
86
+ "layers": 2,
87
+ "num_labels": 3,
88
+ "use_pooler": false
89
+ }
90
+ },
91
+ "pretraining_tp": 1,
92
+ "rms_norm_eps": 1e-05,
93
+ "rope_scaling": null,
94
+ "rope_theta": 10000.0,
95
+ "tie_word_embeddings": false,
96
+ "torch_dtype": "float32",
97
+ "transformers_version": "4.47.1",
98
+ "use_cache": true,
99
+ "vocab_size": 61788
100
+ }
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": 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": "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:e32ba4ac2adc65567b2e18c61d46705d0d02c2446c2766d6a38f702fc48eb2f1
3
+ size 16859030
machine-translation/pytorch_model_head.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6072ac559b8e2e4b4f885b5756982af508060e26b5af58acb181ad60df8bbd4
3
+ size 523218998
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:229e968a7c4bb6015eed5e042f83d304257e93885bd2e6a675b7689104a07011
3
+ size 3264041952
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:5df9016c6bb772887cb3bb5bf3ef22e375e0f970edafe767b98c37730539c446
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:f9a6748b6b7cca5026bc64b04bf91ab25131a5410f46edfd38ec543ed963881a
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:0d921535b5cff6ca892aba9cac3c094a08db64c0a8bd1d36614296d3caaef402
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:253afca45e47237e8998c593dd7a783ef6f6868b1c432013c14b2ed043cbd18d
3
+ size 16812136