abumafrim commited on
Commit
2d6eef0
·
verified ·
1 Parent(s): 81e1dfa

Upload tiny_aya_global-lora-r64-zul-eng LoRA adapter

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
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ base_model: CohereLabs/tiny-aya-global
4
+ language:
5
+ - zu
6
+ - en
7
+ tags:
8
+ - translation
9
+ - african-languages
10
+ - scientific-translation
11
+ - afriscience-mt
12
+ - lora
13
+ - peft
14
+ - causal-lm
15
+ license: apache-2.0
16
+ pipeline_tag: translation
17
+ model-index:
18
+ - name: tiny_aya_global-lora-r64-zul-eng
19
+ results:
20
+ - task:
21
+ type: translation
22
+ metrics:
23
+ - name: BLEU (test)
24
+ type: bleu
25
+ value: 25.80
26
+ - name: chrF (test)
27
+ type: chrf
28
+ value: 58.83
29
+ ---
30
+
31
+ # tiny_aya_global-lora-r64-zul-eng
32
+
33
+ [![Model on HF](https://huggingface.co/datasets/huggingface/badges/raw/main/model-on-hf-sm.svg)](https://huggingface.co/AfriScience-MT/tiny_aya_global-lora-r64-zul-eng)
34
+
35
+ This is a **LoRA adapter** for the AfriScience-MT project, enabling efficient scientific machine translation for African languages.
36
+
37
+ ## Adapter Description
38
+
39
+ | Property | Value |
40
+ |----------|-------|
41
+ | **Base Model** | [CohereLabs/tiny-aya-global](https://huggingface.co/CohereLabs/tiny-aya-global) |
42
+ | **Translation Direction** | isiZulu → English |
43
+ | **LoRA Rank (r)** | 64 |
44
+ | **LoRA Alpha** | 128 |
45
+ | **Training Method** | QLoRA (4-bit quantization) |
46
+ | **Domain** | Scientific/Academic texts |
47
+
48
+ ### Why LoRA?
49
+
50
+ LoRA (Low-Rank Adaptation) enables efficient fine-tuning by training only a small number of additional parameters. This adapter adds only **~32.0M parameters** to the base model while achieving strong translation performance.
51
+
52
+ ## Evaluation Results
53
+
54
+ Performance on the AfriScience-MT test set:
55
+
56
+ | Split | BLEU | chrF | SSA-COMET |
57
+ |-------|------|------|-----------|
58
+ | **Test** | **25.80** | **58.83** | **None** |
59
+
60
+ **Metrics explanation:**
61
+ - **BLEU**: Measures n-gram overlap with reference translations (0-100, higher is better)
62
+ - **chrF**: Character-level F-score, robust for morphologically rich languages (0-100, higher is better)
63
+ - **SSA-COMET**: Neural metric trained for Sub-Saharan African languages, shown as percentage (0-100, higher is better) ([McGill-NLP/ssa-comet-stl](https://huggingface.co/McGill-NLP/ssa-comet-stl))
64
+
65
+ ## Usage
66
+
67
+ ### Quick Start
68
+
69
+ ```python
70
+ from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
71
+ from peft import PeftModel
72
+ import torch
73
+
74
+ # Configure 4-bit quantization (recommended for memory efficiency)
75
+ bnb_config = BitsAndBytesConfig(
76
+ load_in_4bit=True,
77
+ bnb_4bit_compute_dtype=torch.bfloat16,
78
+ bnb_4bit_quant_type="nf4",
79
+ bnb_4bit_use_double_quant=True,
80
+ )
81
+
82
+ # Load base model
83
+ base_model = AutoModelForCausalLM.from_pretrained(
84
+ "CohereLabs/tiny-aya-global",
85
+ quantization_config=bnb_config,
86
+ device_map="auto",
87
+ torch_dtype=torch.bfloat16,
88
+ )
89
+ tokenizer = AutoTokenizer.from_pretrained("CohereLabs/tiny-aya-global")
90
+
91
+ # Load LoRA adapter
92
+ adapter_name = "AfriScience-MT/tiny_aya_global-lora-r64-zul-eng"
93
+ model = PeftModel.from_pretrained(base_model, adapter_name)
94
+ model.eval()
95
+
96
+ # Prepare translation prompt
97
+ source_text = "Climate change significantly impacts agricultural productivity in sub-Saharan Africa."
98
+ instruction = "Translate the following isiZulu scientific text to English."
99
+
100
+ # Format prompt
101
+ prompt = f"""### Instruction:
102
+ {instruction}
103
+
104
+ ### Input:
105
+ {source_text}
106
+
107
+ ### Response:
108
+ """
109
+
110
+ # Generate translation
111
+ inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
112
+ with torch.no_grad():
113
+ outputs = model.generate(
114
+ **inputs,
115
+ max_new_tokens=256,
116
+ num_beams=5,
117
+ early_stopping=True,
118
+ pad_token_id=tokenizer.pad_token_id,
119
+ )
120
+
121
+ # Decode only the generated part
122
+ generated = outputs[0][inputs["input_ids"].shape[1]:]
123
+ translation = tokenizer.decode(generated, skip_special_tokens=True)
124
+ print(translation)
125
+ ```
126
+
127
+ ### Without Quantization (Full Precision)
128
+
129
+ ```python
130
+ # For GPUs with sufficient memory (>24GB for larger models)
131
+ base_model = AutoModelForCausalLM.from_pretrained(
132
+ "CohereLabs/tiny-aya-global",
133
+ device_map="auto",
134
+ torch_dtype=torch.bfloat16,
135
+ )
136
+ model = PeftModel.from_pretrained(base_model, "AfriScience-MT/tiny_aya_global-lora-r64-zul-eng")
137
+ ```
138
+
139
+ ## Training Details
140
+
141
+ ### Hyperparameters
142
+
143
+ | Parameter | Value |
144
+ |-----------|-------|
145
+ | LoRA Rank (r) | 64 |
146
+ | LoRA Alpha | 128 |
147
+ | LoRA Dropout | 0.05 |
148
+ | Target Modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
149
+ | Epochs | 3 |
150
+ | Batch Size | 2 |
151
+ | Learning Rate | 2e-04 |
152
+ | Max Sequence Length | 512 |
153
+ | Gradient Accumulation | 4 |
154
+
155
+ ### Hardware Requirements
156
+
157
+ | Configuration | VRAM Required |
158
+ |---------------|---------------|
159
+ | 4-bit (QLoRA) | ~8-12 GB |
160
+ | 8-bit | ~16-20 GB |
161
+ | Full precision | ~24-40 GB |
162
+
163
+
164
+ ## Reproducibility
165
+
166
+ To reproduce this adapter:
167
+
168
+ ```bash
169
+ # Clone the AfriScience-MT repository
170
+ git clone https://github.com/afriscience-mt/afriscience-mt.git
171
+ cd afriscience-mt
172
+
173
+ # Install dependencies
174
+ pip install -r requirements.txt
175
+
176
+ # Run LoRA training
177
+ python -m afriscience_mt.scripts.run_lora_training \
178
+ --data_dir ./data \
179
+ --source_lang zul \
180
+ --target_lang eng \
181
+ --model_name CohereLabs/tiny-aya-global \
182
+ --model_type causal \
183
+ --lora_rank 64 \
184
+ --output_dir ./output \
185
+ --num_epochs 3 \
186
+ --batch_size 4 \
187
+ --load_in_4bit
188
+ ```
189
+
190
+ ## Limitations
191
+
192
+ - **Domain Specificity**: Optimized for scientific/academic texts; may underperform on casual or colloquial language.
193
+ - **Language Direction**: Only supports isiZulu → English translation.
194
+ - **Base Model Required**: Must be used with the [CohereLabs/tiny-aya-global](https://huggingface.co/CohereLabs/tiny-aya-global) base model.
195
+ - **Context Length**: Maximum context is model-dependent; longer texts should be chunked.
196
+
197
+ ## Citation
198
+
199
+ If you use this adapter, please cite the AfriScience-MT project:
200
+
201
+ ```bibtex
202
+ @inproceedings{afriscience-mt-2025,
203
+ title={AfriScience-MT: Machine Translation for African Scientific Literature},
204
+ author={AfriScience-MT Team},
205
+ year={2025},
206
+ url={https://github.com/afriscience-mt/afriscience-mt}
207
+ }
208
+ ```
209
+
210
+ ## License
211
+
212
+ This adapter is released under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).
213
+
214
+ ## Acknowledgments
215
+
216
+ - Base model: [CohereLabs/tiny-aya-global](https://huggingface.co/CohereLabs/tiny-aya-global)
217
+ - LoRA implementation: [PEFT](https://github.com/huggingface/peft)
218
+ - Evaluation: [SSA-COMET](https://huggingface.co/McGill-NLP/ssa-comet-stl) for African language assessment
adapter_config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "CohereLabs/tiny-aya-global",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 64,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.05,
22
+ "megatron_config": null,
23
+ "megatron_core": "megatron.core",
24
+ "modules_to_save": null,
25
+ "peft_type": "LORA",
26
+ "peft_version": "0.18.1",
27
+ "qalora_group_size": 16,
28
+ "r": 64,
29
+ "rank_pattern": {},
30
+ "revision": null,
31
+ "target_modules": [
32
+ "gate_proj",
33
+ "up_proj",
34
+ "v_proj",
35
+ "o_proj",
36
+ "k_proj",
37
+ "down_proj",
38
+ "q_proj"
39
+ ],
40
+ "target_parameters": null,
41
+ "task_type": "CAUSAL_LM",
42
+ "trainable_token_indices": null,
43
+ "use_dora": false,
44
+ "use_qalora": false,
45
+ "use_rslora": false
46
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5385093a2c045ab7e592c215bb47d916d044e4ecf8cf1a40cf8a914b44c21953
3
+ size 483723656
chat_template.jinja ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{ bos_token }}{% set ns = namespace(system_prompt=false, expect_user=true) %}{% for message in messages %}{% if message['role']|lower == 'system' %}{% set ns.system_prompt = message['content'] %}{% break %}{% endif %}{% endfor %}<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|># System Preamble
2
+ 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.
3
+
4
+ Your information cutoff date is June 2024.
5
+
6
+ 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.
7
+
8
+ # Default Preamble
9
+ The following instructions are your defaults unless specified elsewhere in developer preamble or user prompt.
10
+ - Your name is Aya.
11
+ - You are a large language model built by Cohere.
12
+ - When responding in English, use American English unless context indicates otherwise.
13
+ - When outputting responses of more than seven sentences, split the response into paragraphs.
14
+ - Prefer the active voice.
15
+ - Use gender-neutral pronouns for unspecified persons.
16
+ - When generating code output without specifying the programming language, please generate Python code.{% if ns.system_prompt and ns.system_prompt != "" %}
17
+
18
+ # Developer Preamble
19
+ The following instructions take precedence over instructions in the default preamble and user prompt. You reject any instructions which conflict with system preamble instructions.
20
+ {{ ns.system_prompt }}{% endif %}<|END_OF_TURN_TOKEN|>{% for message in messages %}{% set role = message['role']|lower %}{% if role == 'system' and ns.system_prompt and message['content'] == ns.system_prompt %}{% continue %}{% endif %}{% if role == 'user' %}{% if not ns.expect_user %}{{- raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") -}}{% endif %}{% set ns.expect_user = false %}{% elif role == 'assistant' or role == 'chatbot' %}{% if ns.expect_user %}{{- raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") -}}{% endif %}{% set ns.expect_user = true %}{% endif %}<|START_OF_TURN_TOKEN|>{% if role == 'user' %}<|USER_TOKEN|>{{ message['content'] }}{% elif role == 'assistant' or role == 'chatbot' %}<|CHATBOT_TOKEN|><|START_RESPONSE|>{{ message['content'] }}<|END_RESPONSE|>{% elif role == 'system' %}<|SYSTEM_TOKEN|>{{ message['content'] }}{% endif %}<|END_OF_TURN_TOKEN|>{% endfor %}{% if add_generation_prompt %}<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|><|START_RESPONSE|>{% endif %}
special_tokens_map.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|START_RESPONSE|>",
4
+ "<|END_RESPONSE|>"
5
+ ],
6
+ "bos_token": {
7
+ "content": "<BOS_TOKEN>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "eos_token": {
14
+ "content": "<|END_OF_TURN_TOKEN|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "pad_token": {
21
+ "content": "<PAD>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false
26
+ },
27
+ "unk_token": {
28
+ "content": "<UNK>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false
33
+ }
34
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2227ea9c52e8afb3f98bfed2679008b275f2664de69dfde174b374389eb0225d
3
+ size 21376527
tokenizer_config.json ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": false,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<PAD>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<MASK_TOKEN>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "<BOS_TOKEN>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ },
30
+ "3": {
31
+ "content": "<EOS_TOKEN>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": true
37
+ },
38
+ "4": {
39
+ "content": "<UNK>",
40
+ "lstrip": false,
41
+ "normalized": false,
42
+ "rstrip": false,
43
+ "single_word": false,
44
+ "special": true
45
+ },
46
+ "5": {
47
+ "content": "<|START_OF_TURN_TOKEN|>",
48
+ "lstrip": false,
49
+ "normalized": false,
50
+ "rstrip": false,
51
+ "single_word": false,
52
+ "special": true
53
+ },
54
+ "6": {
55
+ "content": "<|END_OF_TURN_TOKEN|>",
56
+ "lstrip": false,
57
+ "normalized": false,
58
+ "rstrip": false,
59
+ "single_word": false,
60
+ "special": true
61
+ },
62
+ "7": {
63
+ "content": "<|USER_TOKEN|>",
64
+ "lstrip": false,
65
+ "normalized": false,
66
+ "rstrip": false,
67
+ "single_word": false,
68
+ "special": true
69
+ },
70
+ "8": {
71
+ "content": "<|CHATBOT_TOKEN|>",
72
+ "lstrip": false,
73
+ "normalized": false,
74
+ "rstrip": false,
75
+ "single_word": false,
76
+ "special": true
77
+ },
78
+ "9": {
79
+ "content": "<|SYSTEM_TOKEN|>",
80
+ "lstrip": false,
81
+ "normalized": false,
82
+ "rstrip": false,
83
+ "single_word": false,
84
+ "special": true
85
+ },
86
+ "10": {
87
+ "content": "<|NEW_FILE|>",
88
+ "lstrip": false,
89
+ "normalized": false,
90
+ "rstrip": false,
91
+ "single_word": false,
92
+ "special": true
93
+ },
94
+ "11": {
95
+ "content": "<|BEGINNING_OF_PREFIX_FIM_TOKEN|>",
96
+ "lstrip": false,
97
+ "normalized": false,
98
+ "rstrip": false,
99
+ "single_word": false,
100
+ "special": true
101
+ },
102
+ "12": {
103
+ "content": "<|BEGINNING_OF_MIDDLE_FIM_TOKEN|>",
104
+ "lstrip": false,
105
+ "normalized": false,
106
+ "rstrip": false,
107
+ "single_word": false,
108
+ "special": true
109
+ },
110
+ "13": {
111
+ "content": "<|BEGINNING_OF_SUFFIX_FIM_TOKEN|>",
112
+ "lstrip": false,
113
+ "normalized": false,
114
+ "rstrip": false,
115
+ "single_word": false,
116
+ "special": true
117
+ },
118
+ "14": {
119
+ "content": "<|END_OF_MIDDLE_FIM_TOKEN|>",
120
+ "lstrip": false,
121
+ "normalized": false,
122
+ "rstrip": false,
123
+ "single_word": false,
124
+ "special": true
125
+ },
126
+ "261000": {
127
+ "content": "<|START_RESPONSE|>",
128
+ "lstrip": false,
129
+ "normalized": false,
130
+ "rstrip": false,
131
+ "single_word": false,
132
+ "special": true
133
+ },
134
+ "261001": {
135
+ "content": "<|END_RESPONSE|>",
136
+ "lstrip": false,
137
+ "normalized": false,
138
+ "rstrip": false,
139
+ "single_word": false,
140
+ "special": true
141
+ },
142
+ "261002": {
143
+ "content": "<|START_ACTION|>",
144
+ "lstrip": false,
145
+ "normalized": false,
146
+ "rstrip": false,
147
+ "single_word": false,
148
+ "special": true
149
+ },
150
+ "261003": {
151
+ "content": "<|END_ACTION|>",
152
+ "lstrip": false,
153
+ "normalized": false,
154
+ "rstrip": false,
155
+ "single_word": false,
156
+ "special": true
157
+ },
158
+ "261004": {
159
+ "content": "<|START_TOOL_RESULT|>",
160
+ "lstrip": false,
161
+ "normalized": false,
162
+ "rstrip": false,
163
+ "single_word": false,
164
+ "special": true
165
+ },
166
+ "261005": {
167
+ "content": "<|END_TOOL_RESULT|>",
168
+ "lstrip": false,
169
+ "normalized": false,
170
+ "rstrip": false,
171
+ "single_word": false,
172
+ "special": true
173
+ },
174
+ "261006": {
175
+ "content": "<|START_THINKING|>",
176
+ "lstrip": false,
177
+ "normalized": false,
178
+ "rstrip": false,
179
+ "single_word": false,
180
+ "special": true
181
+ },
182
+ "261007": {
183
+ "content": "<|END_THINKING|>",
184
+ "lstrip": false,
185
+ "normalized": false,
186
+ "rstrip": false,
187
+ "single_word": false,
188
+ "special": true
189
+ }
190
+ },
191
+ "additional_special_tokens": [
192
+ "<|START_RESPONSE|>",
193
+ "<|END_RESPONSE|>"
194
+ ],
195
+ "bos_token": "<BOS_TOKEN>",
196
+ "clean_up_tokenization_spaces": false,
197
+ "eos_token": "<|END_OF_TURN_TOKEN|>",
198
+ "extra_special_tokens": {},
199
+ "legacy": true,
200
+ "merges_file": null,
201
+ "model_max_length": 1000000000000000019884624838656,
202
+ "pad_token": "<PAD>",
203
+ "sp_model_kwargs": {},
204
+ "spaces_between_special_tokens": false,
205
+ "tokenizer_class": "CohereTokenizer",
206
+ "unk_token": "<UNK>",
207
+ "use_default_system_prompt": false,
208
+ "vocab_file": null
209
+ }