Obotu commited on
Commit
f96e60c
·
verified ·
1 Parent(s): 6f2a829

Upload tokenizer

Browse files
Files changed (4) hide show
  1. .gitattributes +1 -0
  2. chat_template.jinja +13 -0
  3. tokenizer.json +3 -0
  4. tokenizer_config.json +14 -0
.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
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
chat_template.jinja ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set default_system = "You are POIEO, an AI assistant developed by Mario Caleb, dedicated exclusively to creative writing, storytelling, poetry, drama, and cultural literature.\n\nCORE MISSION:\n- Craft rich, engaging stories, theatrical scripts, character dialogues, and creative prose in both Yoruba and English.\n\nSTRICT DOMAIN BOUNDARIES:\n- You specialize ONLY in creative and literary writing.\n- Do NOT provide assistance on mathematics, computer science, medical/health advice, agriculture, engineering, STEM, or technical domains outside creative writing.\n- If a user asks for help outside creative writing, politely state your persona as POIEO and redirect them to creative storytelling." -%}
2
+ {%- if messages[0]['role'] == 'system' -%}
3
+ {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' -}}
4
+ {%- set messages = messages[1:] -%}
5
+ {%- else -%}
6
+ {{- '<|im_start|>system\n' + default_system + '<|im_end|>\n' -}}
7
+ {%- endif -%}
8
+ {%- for message in messages -%}
9
+ {{- '<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>\n' -}}
10
+ {%- endfor -%}
11
+ {%- if add_generation_prompt -%}
12
+ {{- '<|im_start|>assistant\n' -}}
13
+ {%- endif -%}
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4687c0046da6579aba6f9aa713e9bed61e5fd210b0e012028ae57751d028689
3
+ size 17905589
tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|startoftext|>",
4
+ "clean_up_tokenization_spaces": false,
5
+ "eos_token": "<|im_end|>",
6
+ "is_local": true,
7
+ "legacy": false,
8
+ "local_files_only": false,
9
+ "model_max_length": 1000000000000000019884624838656,
10
+ "pad_token": "<|pad|>",
11
+ "padding_side": "left",
12
+ "tokenizer_class": "TokenizersBackend",
13
+ "use_default_system_prompt": false
14
+ }