YvanCarre commited on
Commit
030a1bb
·
verified ·
1 Parent(s): d19827a

Upload InkubaLM multi-task with adapters

Browse files
config.json ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "YvanCarre/InkubaLM-multitask_distill",
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": 1024,
27
+ "id2label": {
28
+ "0": "LABEL_0",
29
+ "1": "LABEL_1",
30
+ "2": "LABEL_2"
31
+ },
32
+ "initializer_range": 0.02,
33
+ "intermediate_size": 5632,
34
+ "label2id": {
35
+ "LABEL_0": 0,
36
+ "LABEL_1": 1,
37
+ "LABEL_2": 2
38
+ },
39
+ "max_position_embeddings": 2048,
40
+ "mlp_bias": false,
41
+ "model_type": "llama",
42
+ "num_attention_heads": 32,
43
+ "num_hidden_layers": 6,
44
+ "num_key_value_heads": 32,
45
+ "prediction_heads": {
46
+ "machine-translation": {
47
+ "activation_function": "gelu",
48
+ "bias": true,
49
+ "dropout_prob": null,
50
+ "embedding_size": 1024,
51
+ "head_type": "causal_lm",
52
+ "label2id": null,
53
+ "layer_norm": true,
54
+ "layers": 2,
55
+ "shift_labels": true,
56
+ "vocab_size": 61788
57
+ },
58
+ "sentiment-analysis": {
59
+ "activation_function": "tanh",
60
+ "bias": true,
61
+ "dropout_prob": null,
62
+ "head_type": "classification",
63
+ "label2id": {
64
+ "LABEL_0": 0,
65
+ "LABEL_1": 1,
66
+ "LABEL_2": 2
67
+ },
68
+ "layers": 2,
69
+ "num_labels": 3,
70
+ "use_pooler": false
71
+ },
72
+ "xnli": {
73
+ "activation_function": "tanh",
74
+ "bias": true,
75
+ "dropout_prob": null,
76
+ "head_type": "classification",
77
+ "label2id": {
78
+ "LABEL_0": 0,
79
+ "LABEL_1": 1,
80
+ "LABEL_2": 2
81
+ },
82
+ "layers": 2,
83
+ "num_labels": 3,
84
+ "use_pooler": false
85
+ }
86
+ },
87
+ "pretraining_tp": 1,
88
+ "quantization_config": {
89
+ "_load_in_4bit": true,
90
+ "_load_in_8bit": false,
91
+ "bnb_4bit_compute_dtype": "float16",
92
+ "bnb_4bit_quant_storage": "uint8",
93
+ "bnb_4bit_quant_type": "nf4",
94
+ "bnb_4bit_use_double_quant": true,
95
+ "llm_int8_enable_fp32_cpu_offload": false,
96
+ "llm_int8_has_fp16_weight": false,
97
+ "llm_int8_skip_modules": null,
98
+ "llm_int8_threshold": 6.0,
99
+ "load_in_4bit": true,
100
+ "load_in_8bit": false,
101
+ "quant_method": "bitsandbytes"
102
+ },
103
+ "rms_norm_eps": 1e-05,
104
+ "rope_scaling": null,
105
+ "rope_theta": 10000.0,
106
+ "tie_word_embeddings": false,
107
+ "torch_dtype": "float16",
108
+ "transformers_version": "4.47.1",
109
+ "use_cache": true,
110
+ "vocab_size": 61788
111
+ }
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": 1024,
37
+ "model_class": "LlamaAdapterModel",
38
+ "model_name": "YvanCarre/InkubaLM-multitask_distill",
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": 1024,
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": 1024,
15
+ "model_class": "LlamaAdapterModel",
16
+ "model_name": "YvanCarre/InkubaLM-multitask_distill",
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:0bd574ea0d6427a0a3a53c284c8901a73ee0c1cdc54e8bb1cab44955d46650b6
3
+ size 465434
machine-translation/pytorch_model_head.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41f94019959f76ba5744845bf97ea1f47a9f49a183347935c5baf8f2359c5ebd
3
+ size 33318594
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f95ff5dcae433d413f63f618f2493417de985555d6af8aeb13024f8df0d33ee
3
+ size 241922568
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": 1024,
37
+ "model_class": "LlamaAdapterModel",
38
+ "model_name": "YvanCarre/InkubaLM-multitask_distill",
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": 1024,
17
+ "model_class": "LlamaAdapterModel",
18
+ "model_name": "YvanCarre/InkubaLM-multitask_distill",
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:77a3b3227ad33f4c11d8c41ebe166dc838000c4176f1201305c04db24b540c05
3
+ size 465370
sentiment-analysis/pytorch_model_head.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cb845315a8bf12b2997c7ff74ca84978fa9120302436eed20f9b4c610d75447
3
+ size 552306
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": 1024,
37
+ "model_class": "LlamaAdapterModel",
38
+ "model_name": "YvanCarre/InkubaLM-multitask_distill",
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": 1024,
17
+ "model_class": "LlamaAdapterModel",
18
+ "model_name": "YvanCarre/InkubaLM-multitask_distill",
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:859b9e906ed47986007036046853c59173bd8913f1eeec326a6aa3ce39d1714e
3
+ size 464218
xnli/pytorch_model_head.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71b9aaadc91a7329a94d861093ea1ac95e21b75f1397698cb389193ab5a4d8a7
3
+ size 553995