mpasila commited on
Commit
73ab5ea
1 Parent(s): e218cbf

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - fi
4
+ base_model: LumiOpen/Viking-7B
5
+ license: apache-2.0
6
+ datasets:
7
+ - pinzhenchen/alpaca-cleaned-fi
8
+ ---
9
+ # Model Card for Finnish-Viking-Alpaca-V1-7B
10
+
11
+ This is a merge of [mpasila/Finnish-Viking-Alpaca-V1-LoRA-7B](https://huggingface.co/mpasila/Finnish-Viking-Alpaca-V1-LoRA-7B/).
12
+
13
+ LoRA trained with text-generation-webui in 4-bit using [LumiOpen/Viking-7B](https://huggingface.co/LumiOpen/Viking-7B/) as the base model for 1 epoch. Dataset used with the LoRA is [pinzhenchen/alpaca-cleaned-fi](https://huggingface.co/datasets/pinzhenchen/alpaca-cleaned-fi/).
14
+
15
+ It uses Alpaca format but with a translated instruction at the start:
16
+ ```
17
+ {
18
+ "instruction,output": "Alla on ohje, jossa kuvataan tehtävä. Kirjoita vastaus, joka täyttää pyynnön asianmukaisesti.\n\n### Instruction:\n%instruction%\n\n### Response:\n%output%",
19
+ "instruction,input,output": "Alla on ohje, jossa kuvataan tehtävä ja joka on yhdistetty kontekstia lisäävään syötteeseen. Kirjoita vastaus, joka täyttää pyynnön asianmukaisesti.\n\n### Instruction:\n%instruction%\n\n### Input:\n%input%\n\n### Response:\n%output%"
20
+ }
21
+
22
+ ```
23
+
24
+ Merged using this [Colab notebook](https://colab.research.google.com/drive/1a76Y21GfPtmVs71Uztlgk2xzPA4_vVjs?usp=sharing). It might not be the best way to merge a quantized LoRA on to a float16 model but I just wanted to quickly do something. You can try merging it better if you want.
25
+
26
+ ## Evaluation
27
+
28
+ | Model | Size | Type | FIN-bench (score) |
29
+ |-------|------|------|-------|
30
+ | **mpasila/Finnish-Viking-Alpaca-V1-7B** | 7B | Instruct | 0.3943 |
31
+ | [mpasila/NordicAlpaca-Finnish-V1-7B](https://huggingface.co/mpasila/NordicAlpaca-Finnish-V1-7B) | 7B | Instruct | 0.3891 |
32
+ | [Finnish-NLP/llama-7b-finnish-instruct-v0.1](https://huggingface.co/Finnish-NLP/llama-7b-finnish-instruct-v0.1) | 7B | Instruct | **0.4365** |
33
+ | [Finnish-NLP/llama-7b-finnish-instruct-v0.2](https://huggingface.co/Finnish-NLP/llama-7b-finnish-instruct-v0.2) | 7B | Instruct | 0.3993 |
34
+ | [Finnish-NLP/llama-7b-finnish](https://huggingface.co/Finnish-NLP/llama-7b-finnish) | 7B | Base | 0.2350 |
35
+ | [LumiOpen/Viking-7B (1000B)](https://huggingface.co/LumiOpen/Viking-7B) | 7B | Base | 0.3721 |
36
+ | [HPLT/gpt-7b-nordic-prerelease](https://huggingface.co/HPLT/gpt-7b-nordic-prerelease) | 7B | Base | 0.3169 |
37
+
38
+ [Source](https://docs.google.com/spreadsheets/d/1rqJb9dQVihg-Z1_Ras1L_-wuzPg9xNzpdmM2x5HueeY/edit?usp=sharing)
39
+
40
+ #### FIN-bench scores:
41
+
42
+ | Task |Version| Metric |Value | |Stderr|
43
+ |------------------------------------------------|------:|---------------------|-----:|---|-----:|
44
+ |bigbench_analogies | 0|multiple_choice_grade|0.6308|± |0.0425|
45
+ |bigbench_arithmetic_1_digit_addition | 0|multiple_choice_grade|0.6400|± |0.0482|
46
+ |bigbench_arithmetic_1_digit_division | 0|multiple_choice_grade|0.7391|± |0.0936|
47
+ |bigbench_arithmetic_1_digit_multiplication | 0|multiple_choice_grade|0.2800|± |0.0451|
48
+ |bigbench_arithmetic_1_digit_subtraction | 0|multiple_choice_grade|0.5000|± |0.0503|
49
+ |bigbench_arithmetic_2_digit_addition | 0|multiple_choice_grade|0.1800|± |0.0386|
50
+ |bigbench_arithmetic_2_digit_division | 0|multiple_choice_grade|0.4800|± |0.0502|
51
+ |bigbench_arithmetic_2_digit_multiplication | 0|multiple_choice_grade|0.0800|± |0.0273|
52
+ |bigbench_arithmetic_2_digit_subtraction | 0|multiple_choice_grade|0.2500|± |0.0435|
53
+ |bigbench_arithmetic_3_digit_addition | 0|multiple_choice_grade|0.1800|± |0.0386|
54
+ |bigbench_arithmetic_3_digit_division | 0|multiple_choice_grade|0.2500|± |0.0435|
55
+ |bigbench_arithmetic_3_digit_multiplication | 0|multiple_choice_grade|0.1700|± |0.0378|
56
+ |bigbench_arithmetic_3_digit_subtraction | 0|multiple_choice_grade|0.5000|± |0.0503|
57
+ |bigbench_arithmetic_4_digit_addition | 0|multiple_choice_grade|0.2600|± |0.0441|
58
+ |bigbench_arithmetic_4_digit_division | 0|multiple_choice_grade|0.2500|± |0.0435|
59
+ |bigbench_arithmetic_4_digit_multiplication | 0|multiple_choice_grade|0.2100|± |0.0409|
60
+ |bigbench_arithmetic_4_digit_subtraction | 0|multiple_choice_grade|0.5200|± |0.0502|
61
+ |bigbench_arithmetic_5_digit_addition | 0|multiple_choice_grade|0.3900|± |0.0490|
62
+ |bigbench_arithmetic_5_digit_division | 0|multiple_choice_grade|0.1600|± |0.0368|
63
+ |bigbench_arithmetic_5_digit_multiplication | 0|multiple_choice_grade|0.1000|± |0.0302|
64
+ |bigbench_arithmetic_5_digit_subtraction | 0|multiple_choice_grade|0.6100|± |0.0490|
65
+ |bigbench_cause_and_effect_one_sentence | 0|multiple_choice_grade|0.6471|± |0.0676|
66
+ |bigbench_cause_and_effect_one_sentence_no_prompt| 0|multiple_choice_grade|0.6863|± |0.0656|
67
+ |bigbench_cause_and_effect_two_sentences | 0|multiple_choice_grade|0.3922|± |0.0690|
68
+ |bigbench_emotions | 0|multiple_choice_grade|0.2812|± |0.0357|
69
+ |bigbench_empirical_judgments | 0|multiple_choice_grade|0.2828|± |0.0455|
70
+ |bigbench_general_knowledge | 0|multiple_choice_grade|0.4000|± |0.0590|
71
+ |bigbench_hhh_alignment_harmless | 0|multiple_choice_grade|0.3621|± |0.0637|
72
+ |bigbench_hhh_alignment_helpful | 0|multiple_choice_grade|0.3559|± |0.0629|
73
+ |bigbench_hhh_alignment_honest | 0|multiple_choice_grade|0.3729|± |0.0635|
74
+ |bigbench_hhh_alignment_other | 0|multiple_choice_grade|0.5581|± |0.0766|
75
+ |bigbench_intent_recognition | 0|multiple_choice_grade|0.1879|± |0.0149|
76
+ |bigbench_misconceptions | 0|multiple_choice_grade|0.5373|± |0.0432|
77
+ |bigbench_paraphrase | 0|multiple_choice_grade|0.5150|± |0.0354|
78
+ |bigbench_sentence_ambiguity | 0|multiple_choice_grade|0.5000|± |0.0651|
79
+ |bigbench_similarities_abstraction | 0|multiple_choice_grade|0.7368|± |0.0508|
80
+
81
+ ### Framework versions
82
+
83
+ - PEFT 0.8.2
config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "LumiOpen/Viking-7B",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 1,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 4096,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 11008,
14
+ "max_position_embeddings": 4096,
15
+ "model_type": "llama",
16
+ "num_attention_heads": 32,
17
+ "num_hidden_layers": 32,
18
+ "num_key_value_heads": 32,
19
+ "pretraining_tp": 1,
20
+ "rms_norm_eps": 1e-05,
21
+ "rope_scaling": null,
22
+ "rope_theta": 10000.0,
23
+ "tie_word_embeddings": false,
24
+ "torch_dtype": "float16",
25
+ "transformers_version": "4.38.2",
26
+ "untie_embeddings_and_output_weights": true,
27
+ "use_cache": true,
28
+ "vocab_size": 131072,
29
+ "quantization_config": {
30
+ "quant_method": "exl2",
31
+ "version": "0.0.17",
32
+ "bits": 4.0,
33
+ "head_bits": 6,
34
+ "calibration": {
35
+ "rows": 100,
36
+ "length": 2048,
37
+ "dataset": "(default)"
38
+ }
39
+ }
40
+ }
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.38.2"
6
+ }
job_new.json ADDED
The diff for this file is too large to render. See raw diff
 
measurement.json ADDED
The diff for this file is too large to render. See raw diff
 
output.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4302321ef876d1e23f02d126859c9745ef6684d5e884bf5c75dca0f7d54b5b36
3
+ size 4737670824
special_tokens_map.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<fim_prefix>",
4
+ "<fim_middle>",
5
+ "<fim_suffix>",
6
+ "<fim_pad>",
7
+ "<filename>",
8
+ "<gh_stars>",
9
+ "<issue_start>",
10
+ "<issue_comment>",
11
+ "<issue_closed>",
12
+ "<jupyter_start>",
13
+ "<jupyter_text>",
14
+ "<jupyter_code>",
15
+ "<jupyter_output>",
16
+ "<empty_output>",
17
+ "<commit_before>",
18
+ "<commit_msg>",
19
+ "<commit_after>",
20
+ "<reponame>",
21
+ "<|im_start|>",
22
+ "<|im_end|>"
23
+ ],
24
+ "bos_token": {
25
+ "content": "<s>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ },
31
+ "eos_token": {
32
+ "content": "</s>",
33
+ "lstrip": false,
34
+ "normalized": false,
35
+ "rstrip": false,
36
+ "single_word": false
37
+ },
38
+ "pad_token": {
39
+ "content": "<pad>",
40
+ "lstrip": false,
41
+ "normalized": false,
42
+ "rstrip": false,
43
+ "single_word": false
44
+ },
45
+ "unk_token": {
46
+ "content": "<unk>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false
51
+ }
52
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<unk>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<s>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<pad>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "4": {
37
+ "content": "<fim_prefix>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "5": {
45
+ "content": "<fim_middle>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "6": {
53
+ "content": "<fim_suffix>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "7": {
61
+ "content": "<fim_pad>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "8": {
69
+ "content": "<filename>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "9": {
77
+ "content": "<gh_stars>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "10": {
85
+ "content": "<issue_start>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "11": {
93
+ "content": "<issue_comment>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "12": {
101
+ "content": "<issue_closed>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "13": {
109
+ "content": "<jupyter_start>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ },
116
+ "14": {
117
+ "content": "<jupyter_text>",
118
+ "lstrip": false,
119
+ "normalized": false,
120
+ "rstrip": false,
121
+ "single_word": false,
122
+ "special": true
123
+ },
124
+ "15": {
125
+ "content": "<jupyter_code>",
126
+ "lstrip": false,
127
+ "normalized": false,
128
+ "rstrip": false,
129
+ "single_word": false,
130
+ "special": true
131
+ },
132
+ "16": {
133
+ "content": "<jupyter_output>",
134
+ "lstrip": false,
135
+ "normalized": false,
136
+ "rstrip": false,
137
+ "single_word": false,
138
+ "special": true
139
+ },
140
+ "17": {
141
+ "content": "<empty_output>",
142
+ "lstrip": false,
143
+ "normalized": false,
144
+ "rstrip": false,
145
+ "single_word": false,
146
+ "special": true
147
+ },
148
+ "18": {
149
+ "content": "<commit_before>",
150
+ "lstrip": false,
151
+ "normalized": false,
152
+ "rstrip": false,
153
+ "single_word": false,
154
+ "special": true
155
+ },
156
+ "19": {
157
+ "content": "<commit_msg>",
158
+ "lstrip": false,
159
+ "normalized": false,
160
+ "rstrip": false,
161
+ "single_word": false,
162
+ "special": true
163
+ },
164
+ "20": {
165
+ "content": "<commit_after>",
166
+ "lstrip": false,
167
+ "normalized": false,
168
+ "rstrip": false,
169
+ "single_word": false,
170
+ "special": true
171
+ },
172
+ "21": {
173
+ "content": "<reponame>",
174
+ "lstrip": false,
175
+ "normalized": false,
176
+ "rstrip": false,
177
+ "single_word": false,
178
+ "special": true
179
+ },
180
+ "22": {
181
+ "content": "<|im_start|>",
182
+ "lstrip": false,
183
+ "normalized": false,
184
+ "rstrip": false,
185
+ "single_word": false,
186
+ "special": true
187
+ },
188
+ "23": {
189
+ "content": "<|im_end|>",
190
+ "lstrip": false,
191
+ "normalized": false,
192
+ "rstrip": false,
193
+ "single_word": false,
194
+ "special": true
195
+ }
196
+ },
197
+ "additional_special_tokens": [
198
+ "<fim_prefix>",
199
+ "<fim_middle>",
200
+ "<fim_suffix>",
201
+ "<fim_pad>",
202
+ "<filename>",
203
+ "<gh_stars>",
204
+ "<issue_start>",
205
+ "<issue_comment>",
206
+ "<issue_closed>",
207
+ "<jupyter_start>",
208
+ "<jupyter_text>",
209
+ "<jupyter_code>",
210
+ "<jupyter_output>",
211
+ "<empty_output>",
212
+ "<commit_before>",
213
+ "<commit_msg>",
214
+ "<commit_after>",
215
+ "<reponame>",
216
+ "<|im_start|>",
217
+ "<|im_end|>"
218
+ ],
219
+ "bos_token": "<s>",
220
+ "clean_up_tokenization_spaces": false,
221
+ "eos_token": "</s>",
222
+ "model_max_length": 1000000000000000019884624838656,
223
+ "pad_token": "<pad>",
224
+ "padding_side": "left",
225
+ "tokenizer_class": "BloomTokenizer",
226
+ "unk_token": "<unk>"
227
+ }