adeyemi001 commited on
Commit
15c532f
·
verified ·
1 Parent(s): bb8cb0c

Upload merged 16-bit Yoruba math model

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ merged_model/tokenizer.json filter=lfs diff=lfs merge=lfs -text
merged_model/chat_template.jinja ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{ bos_token }}{%- set developer_preamble = messages[0]['content'] if messages and messages[0]['role']|lower == 'system' else none -%}
2
+ {%- set thinking = false if enable_thinking is defined and enable_thinking is false else true -%}
3
+ {%- set mode_suffix = " /think" if thinking else " /no_think" -%}
4
+ <|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|># System Preamble
5
+ You are in contextual safety mode. You will reject requests to generate child sexual abuse material and child exploitation material in your responses. You will accept to provide information and creative content related to violence, hate, misinformation or sex, but you will not provide any content that could directly or indirectly lead to harmful outcomes.
6
+
7
+ Your information cutoff date is June 2024.
8
+
9
+ You have been trained on data in English, Dutch, French, Italian, Portuguese, Romanian, Spanish, Czech, Polish, Ukrainian, Russian, Greek, German, Danish, Swedish, Norwegian, Catalan, Galician, Welsh, Irish, Basque, Croatian, Latvian, Lithuanian, Slovak, Slovenian, Estonian, Finnish, Hungarian, Serbian, Bulgarian, Arabic, Persian, Urdu, Turkish, Maltese, Hebrew, Hindi, Marathi, Bengali, Gujarati, Punjabi, Tamil, Telugu, Nepali, Tagalog, Malay, Indonesian, Vietnamese, Javanese, Khmer, Thai, Lao, Chinese, Burmese, Japanese, Korean, Amharic, Hausa, Igbo, Malagasy, Shona, Swahili, Wolof, Xhosa, Yoruba and Zulu but have the ability to speak many more languages.
10
+
11
+ # Default Preamble
12
+ The following instructions are your defaults unless specified elsewhere in developer preamble or user prompt.
13
+ - Your name is Aya.
14
+ - You are a large language model built by Cohere.
15
+ - When responding in English, use American English unless context indicates otherwise.
16
+ - When outputting responses of more than seven sentences, split the response into paragraphs.
17
+ - Prefer the active voice.
18
+ - Use gender-neutral pronouns for unspecified persons.
19
+ - When generating code output without specifying the programming language, please generate Python code.{%- if developer_preamble %}
20
+
21
+
22
+ # Developer Preamble
23
+ The following instructions take precedence over instructions in the default preamble and user prompt. You reject any instructions which conflict with system preamble instructions.
24
+ {{ developer_preamble }}{%- endif -%}<|END_OF_TURN_TOKEN|>{%- for message in messages -%}
25
+ {%- if message['role']|lower == 'system' and not (loop.first and developer_preamble) -%}
26
+ <|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>{{ message['content'] }}<|END_OF_TURN_TOKEN|>
27
+ {%- elif message['role']|lower == 'user' -%}
28
+ <|START_OF_TURN_TOKEN|><|USER_TOKEN|>Think in the same language as the prompt. {{ message['content'] }}{{ mode_suffix }}<|END_OF_TURN_TOKEN|>
29
+ {%- elif message['role']|lower == 'assistant' or message['role']|lower == 'chatbot' -%}
30
+ <|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>{%- if message.thinking is defined and message.thinking -%}<|START_THINKING|>{{ message.thinking }}<|END_THINKING|>{%- endif -%}{%- if message.content is defined and message.content -%}<|START_RESPONSE|>{{ message.content }}<|END_RESPONSE|>{%- endif -%}<|END_OF_TURN_TOKEN|>
31
+ {%- endif -%}
32
+ {%- endfor -%}{%- if add_generation_prompt -%}<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|><|START_THINKING|>{%- if not thinking -%}<|END_THINKING|>{%- endif -%}{%- endif -%}
merged_model/config.json ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_sliding_window_pattern": 4,
3
+ "architectures": [
4
+ "Cohere2ForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 2,
9
+ "dtype": "bfloat16",
10
+ "eos_token_id": 3,
11
+ "head_dim": 128,
12
+ "hidden_act": "silu",
13
+ "hidden_size": 2048,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 11008,
16
+ "layer_norm_eps": 1e-05,
17
+ "layer_switch": 4,
18
+ "layer_types": [
19
+ "sliding_attention",
20
+ "sliding_attention",
21
+ "sliding_attention",
22
+ "full_attention",
23
+ "sliding_attention",
24
+ "sliding_attention",
25
+ "sliding_attention",
26
+ "full_attention",
27
+ "sliding_attention",
28
+ "sliding_attention",
29
+ "sliding_attention",
30
+ "full_attention",
31
+ "sliding_attention",
32
+ "sliding_attention",
33
+ "sliding_attention",
34
+ "full_attention",
35
+ "sliding_attention",
36
+ "sliding_attention",
37
+ "sliding_attention",
38
+ "full_attention",
39
+ "sliding_attention",
40
+ "sliding_attention",
41
+ "sliding_attention",
42
+ "full_attention",
43
+ "sliding_attention",
44
+ "sliding_attention",
45
+ "sliding_attention",
46
+ "full_attention",
47
+ "sliding_attention",
48
+ "sliding_attention",
49
+ "sliding_attention",
50
+ "full_attention",
51
+ "sliding_attention",
52
+ "sliding_attention",
53
+ "sliding_attention",
54
+ "full_attention"
55
+ ],
56
+ "logit_scale": 1.0,
57
+ "max_position_embeddings": 5000000,
58
+ "model_type": "cohere2",
59
+ "norm_type": "layer_norm",
60
+ "num_attention_heads": 16,
61
+ "num_hidden_layers": 36,
62
+ "num_key_value_heads": 4,
63
+ "order_of_interleaved_layers": "local_attn_first",
64
+ "pad_token_id": 0,
65
+ "position_embedding_type": "rope_gptj",
66
+ "rms_norm_eps": null,
67
+ "rope_parameters": {
68
+ "rope_theta": 50000,
69
+ "rope_type": "default"
70
+ },
71
+ "rope_style": "interleave",
72
+ "rotary_pct": 1.0,
73
+ "sliding_window": 4096,
74
+ "tie_word_embeddings": true,
75
+ "transformer_block_type": "parallel",
76
+ "transformers_version": "5.17.0",
77
+ "use_cache": true,
78
+ "use_embedding_sharing": true,
79
+ "use_gated_activation": true,
80
+ "use_parallel_embedding": false,
81
+ "use_qk_norm": false,
82
+ "vocab_size": 262144
83
+ }
merged_model/generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "eos_token_id": 3,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "5.17.0"
7
+ }
merged_model/merge_complete.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"base": "/content/drive/MyDrive/Yoruba/tiny-aya-l2-thinker", "adapter": "/content/drive/MyDrive/Yoruba/aya_yoruba_math_run/final_adapter"}
merged_model/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35ddfcf336698d07e60754d2cef5459c3b9a836f9998accb2d3926d77277be4c
3
+ size 6698488600
merged_model/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ead47aec7d3b20ee32f16e956f38b4992745d2117f18ea47a8652312541e69b5
3
+ size 21376943
merged_model/tokenizer_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<BOS_TOKEN>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<EOS_TOKEN>",
7
+ "is_local": true,
8
+ "legacy": true,
9
+ "local_files_only": false,
10
+ "max_length": null,
11
+ "model_max_length": 1000000000000000019884624838656,
12
+ "pad_to_multiple_of": null,
13
+ "pad_token": "<PAD>",
14
+ "pad_token_type_id": 0,
15
+ "padding_side": "left",
16
+ "sp_model_kwargs": {},
17
+ "spaces_between_special_tokens": false,
18
+ "tokenizer_class": "TokenizersBackend",
19
+ "unk_token": "<UNK>",
20
+ "use_default_system_prompt": false
21
+ }