tjake commited on
Commit
24268c5
1 Parent(s): d37f6bb

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. README.md +365 -0
  2. config.json +32 -0
  3. model.safetensors +3 -0
  4. tokenizer.json +0 -0
  5. tokenizer_config.json +198 -0
README.md ADDED
@@ -0,0 +1,365 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pipeline_tag: text-generation
3
+ inference: false
4
+ license: apache-2.0
5
+ library_name: transformers
6
+ tags:
7
+ - language
8
+ - granite-3.0
9
+ model-index:
10
+ - name: granite-3.0-2b-instruct
11
+ results:
12
+ - task:
13
+ type: text-generation
14
+ dataset:
15
+ type: instruction-following
16
+ name: IFEval
17
+ metrics:
18
+ - name: pass@1
19
+ type: pass@1
20
+ value: 46.07
21
+ veriefied: false
22
+ - task:
23
+ type: text-generation
24
+ dataset:
25
+ type: instruction-following
26
+ name: MT-Bench
27
+ metrics:
28
+ - name: pass@1
29
+ type: pass@1
30
+ value: 7.66
31
+ veriefied: false
32
+ - task:
33
+ type: text-generation
34
+ dataset:
35
+ type: human-exams
36
+ name: AGI-Eval
37
+ metrics:
38
+ - name: pass@1
39
+ type: pass@1
40
+ value: 29.75
41
+ veriefied: false
42
+ - task:
43
+ type: text-generation
44
+ dataset:
45
+ type: human-exams
46
+ name: MMLU
47
+ metrics:
48
+ - name: pass@1
49
+ type: pass@1
50
+ value: 56.03
51
+ veriefied: false
52
+ - task:
53
+ type: text-generation
54
+ dataset:
55
+ type: human-exams
56
+ name: MMLU-Pro
57
+ metrics:
58
+ - name: pass@1
59
+ type: pass@1
60
+ value: 27.92
61
+ veriefied: false
62
+ - task:
63
+ type: text-generation
64
+ dataset:
65
+ type: commonsense
66
+ name: OBQA
67
+ metrics:
68
+ - name: pass@1
69
+ type: pass@1
70
+ value: 43.2
71
+ veriefied: false
72
+ - task:
73
+ type: text-generation
74
+ dataset:
75
+ type: commonsense
76
+ name: SIQA
77
+ metrics:
78
+ - name: pass@1
79
+ type: pass@1
80
+ value: 66.36
81
+ veriefied: false
82
+ - task:
83
+ type: text-generation
84
+ dataset:
85
+ type: commonsense
86
+ name: Hellaswag
87
+ metrics:
88
+ - name: pass@1
89
+ type: pass@1
90
+ value: 76.79
91
+ veriefied: false
92
+ - task:
93
+ type: text-generation
94
+ dataset:
95
+ type: commonsense
96
+ name: WinoGrande
97
+ metrics:
98
+ - name: pass@1
99
+ type: pass@1
100
+ value: 71.9
101
+ veriefied: false
102
+ - task:
103
+ type: text-generation
104
+ dataset:
105
+ type: commonsense
106
+ name: TruthfulQA
107
+ metrics:
108
+ - name: pass@1
109
+ type: pass@1
110
+ value: 53.37
111
+ veriefied: false
112
+ - task:
113
+ type: text-generation
114
+ dataset:
115
+ type: reading-comprehension
116
+ name: BoolQ
117
+ metrics:
118
+ - name: pass@1
119
+ type: pass@1
120
+ value: 84.89
121
+ veriefied: false
122
+ - task:
123
+ type: text-generation
124
+ dataset:
125
+ type: reading-comprehension
126
+ name: SQuAD 2.0
127
+ metrics:
128
+ - name: pass@1
129
+ type: pass@1
130
+ value: 19.73
131
+ veriefied: false
132
+ - task:
133
+ type: text-generation
134
+ dataset:
135
+ type: reasoning
136
+ name: ARC-C
137
+ metrics:
138
+ - name: pass@1
139
+ type: pass@1
140
+ value: 54.35
141
+ veriefied: false
142
+ - task:
143
+ type: text-generation
144
+ dataset:
145
+ type: reasoning
146
+ name: GPQA
147
+ metrics:
148
+ - name: pass@1
149
+ type: pass@1
150
+ value: 28.61
151
+ veriefied: false
152
+ - task:
153
+ type: text-generation
154
+ dataset:
155
+ type: reasoning
156
+ name: BBH
157
+ metrics:
158
+ - name: pass@1
159
+ type: pass@1
160
+ value: 43.74
161
+ veriefied: false
162
+ - task:
163
+ type: text-generation
164
+ dataset:
165
+ type: code
166
+ name: HumanEvalSynthesis
167
+ metrics:
168
+ - name: pass@1
169
+ type: pass@1
170
+ value: 50.61
171
+ veriefied: false
172
+ - task:
173
+ type: text-generation
174
+ dataset:
175
+ type: code
176
+ name: HumanEvalExplain
177
+ metrics:
178
+ - name: pass@1
179
+ type: pass@1
180
+ value: 45.58
181
+ veriefied: false
182
+ - task:
183
+ type: text-generation
184
+ dataset:
185
+ type: code
186
+ name: HumanEvalFix
187
+ metrics:
188
+ - name: pass@1
189
+ type: pass@1
190
+ value: 51.83
191
+ veriefied: false
192
+ - task:
193
+ type: text-generation
194
+ dataset:
195
+ type: code
196
+ name: MBPP
197
+ metrics:
198
+ - name: pass@1
199
+ type: pass@1
200
+ value: 41
201
+ veriefied: false
202
+ - task:
203
+ type: text-generation
204
+ dataset:
205
+ type: math
206
+ name: GSM8K
207
+ metrics:
208
+ - name: pass@1
209
+ type: pass@1
210
+ value: 59.66
211
+ veriefied: false
212
+ - task:
213
+ type: text-generation
214
+ dataset:
215
+ type: math
216
+ name: MATH
217
+ metrics:
218
+ - name: pass@1
219
+ type: pass@1
220
+ value: 23.66
221
+ veriefied: false
222
+ - task:
223
+ type: text-generation
224
+ dataset:
225
+ type: multilingual
226
+ name: PAWS-X (7 langs)
227
+ metrics:
228
+ - name: pass@1
229
+ type: pass@1
230
+ value: 61.42
231
+ veriefied: false
232
+ - task:
233
+ type: text-generation
234
+ dataset:
235
+ type: multilingual
236
+ name: MGSM (6 langs)
237
+ metrics:
238
+ - name: pass@1
239
+ type: pass@1
240
+ value: 37.13
241
+ veriefied: false
242
+ base_model:
243
+ - ibm-granite/granite-3.0-2b-base
244
+ ---
245
+
246
+ # Quantized Version of ibm-granite/granite-3.0-2b-instruct
247
+
248
+ This model is a quantized variant of the ibm-granite/granite-3.0-2b-instruct model, optimized for use with Jlama, a Java-based inference engine. The quantization process reduces the model's size and improves inference speed, while maintaining high accuracy for efficient deployment in production environments.
249
+
250
+ For more information on Jlama, visit the [Jlama GitHub repository](https://github.com/tjake/jlama).
251
+
252
+ ---
253
+
254
+
255
+
256
+ <!-- ![image/png](https://cdn-uploads.huggingface.co/production/uploads/62cd5057674cdb524450093d/1hzxoPwqkBJXshKVVe6_9.png) -->
257
+ <!-- ![image/png](granite-3_0-language-models_Group_1.png) -->
258
+
259
+ # Granite-3.0-2B-Instruct
260
+
261
+ **Model Summary:**
262
+ Granite-3.0-2B-Instruct is a 2B parameter model finetuned from *Granite-3.0-2B-Base* using a combination of open source instruction datasets with permissive license and internally collected synthetic datasets. This model is developed using a diverse set of techniques with a structured chat format, including supervised finetuning, model alignment using reinforcement learning, and model merging.
263
+
264
+ - **Developers:** Granite Team, IBM
265
+ - **GitHub Repository:** [ibm-granite/granite-3.0-language-models](https://github.com/ibm-granite/granite-3.0-language-models)
266
+ - **Website**: [Granite Docs](https://www.ibm.com/granite/docs/)
267
+ - **Paper:** [Granite 3.0 Language Models](https://github.com/ibm-granite/granite-3.0-language-models/blob/main/paper.pdf)
268
+ - **Release Date**: October 21st, 2024
269
+ - **License:** [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)
270
+
271
+ **Supported Languages:**
272
+ English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese. Users may finetune Granite 3.0 models for languages beyond these 12 languages.
273
+
274
+ **Intended use:**
275
+ The model is designed to respond to general instructions and can be used to build AI assistants for multiple domains, including business applications.
276
+
277
+ *Capabilities*
278
+ * Summarization
279
+ * Text classification
280
+ * Text extraction
281
+ * Question-answering
282
+ * Retrieval Augmented Generation (RAG)
283
+ * Code related tasks
284
+ * Function-calling tasks
285
+ * Multilingual dialog use cases
286
+
287
+ **Generation:**
288
+ This is a simple example of how to use Granite-3.0-2B-Instruct model.
289
+
290
+ Install the following libraries:
291
+
292
+ ```shell
293
+ pip install torch torchvision torchaudio
294
+ pip install accelerate
295
+ pip install transformers
296
+ ```
297
+ Then, copy the snippet from the section that is relevant for your use case.
298
+
299
+ ```python
300
+ import torch
301
+ from transformers import AutoModelForCausalLM, AutoTokenizer
302
+
303
+ device = "auto"
304
+ model_path = "ibm-granite/granite-3.0-2b-instruct"
305
+ tokenizer = AutoTokenizer.from_pretrained(model_path)
306
+ # drop device_map if running on CPU
307
+ model = AutoModelForCausalLM.from_pretrained(model_path, device_map=device)
308
+ model.eval()
309
+ # change input text as desired
310
+ chat = [
311
+ { "role": "user", "content": "Please list one IBM Research laboratory located in the United States. You should only output its name and location." },
312
+ ]
313
+ chat = tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
314
+ # tokenize the text
315
+ input_tokens = tokenizer(chat, return_tensors="pt").to(device)
316
+ # generate output tokens
317
+ output = model.generate(**input_tokens,
318
+ max_new_tokens=100)
319
+ # decode output tokens into text
320
+ output = tokenizer.batch_decode(output)
321
+ # print output
322
+ print(output)
323
+ ```
324
+
325
+ **Model Architecture:**
326
+ Granite-3.0-2B-Instruct is based on a decoder-only dense transformer architecture. Core components of this architecture are: GQA and RoPE, MLP with SwiGLU, RMSNorm, and shared input/output embeddings.
327
+
328
+ | Model | 2B Dense | 8B Dense | 1B MoE | 3B MoE |
329
+ | :-------- | :-------- | :--------| :--------| :--------|
330
+ | Embedding size | **2048** | 4096 | 1024 | 1536 |
331
+ | Number of layers | **40** | 40 | 24 | 32 |
332
+ | Attention head size | **64** | 128 | 64 | 64 |
333
+ | Number of attention heads | **32** | 32 | 16 | 24 |
334
+ | Number of KV heads | **8** | 8 | 8 | 8 |
335
+ | MLP hidden size | **8192** | 12800 | 512 | 512 |
336
+ | MLP activation | **SwiGLU** | SwiGLU | SwiGLU | SwiGLU |
337
+ | Number of Experts | **—** | — | 32 | 40 |
338
+ | MoE TopK | **—** | — | 8 | 8 |
339
+ | Initialization std | **0.1** | 0.1 | 0.1 | 0.1 |
340
+ | Sequence Length | **4096** | 4096 | 4096 | 4096 |
341
+ | Position Embedding | **RoPE** | RoPE | RoPE | RoPE |
342
+ | # Parameters | **2.5B** | 8.1B | 1.3B | 3.3B |
343
+ | # Active Parameters | **2.5B** | 8.1B | 400M | 800M |
344
+ | # Training tokens | **12T** | 12T | 10T | 10T |
345
+
346
+ **Training Data:**
347
+ Overall, our SFT data is largely comprised of three key sources: (1) publicly available datasets with permissive license, (2) internal synthetic data targeting specific capabilities, and (3) very small amounts of human-curated data. A detailed attribution of datasets can be found in the [Granite Technical Report](https://github.com/ibm-granite/granite-3.0-language-models/blob/main/paper.pdf) and [Accompanying Author List](https://github.com/ibm-granite/granite-3.0-language-models/blob/main/author-ack.pdf).
348
+
349
+ **Infrastructure:**
350
+ We train Granite 3.0 Language Models using IBM's super computing cluster, Blue Vela, which is outfitted with NVIDIA H100 GPUs. This cluster provides a scalable and efficient infrastructure for training our models over thousands of GPUs while minimizing environmental impact by utilizing 100% renewable energy sources.
351
+
352
+ **Ethical Considerations and Limitations:**
353
+ Granite 3.0 Instruct Models are primarily finetuned using instruction-response pairs mostly in English, but also multilingual data covering eleven languages. Although this model can handle multilingual dialog use cases, its performance might not be similar to English tasks. In such case, introducing a small number of examples (few-shot) can help the model in generating more accurate outputs. While this model has been aligned by keeping safety in consideration, the model may in some cases produce inaccurate, biased, or unsafe responses to user prompts. So we urge the community to use this model with proper safety testing and tuning tailored for their specific tasks.
354
+
355
+ <!-- ## Citation
356
+ ```
357
+ @misc{granite-models,
358
+ author = {author 1, author2, ...},
359
+ title = {},
360
+ journal = {},
361
+ volume = {},
362
+ year = {2024},
363
+ url = {https://arxiv.org/abs/0000.00000},
364
+ }
365
+ ``` -->
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "GraniteForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.1,
7
+ "attention_multiplier": 0.015625,
8
+ "bos_token_id": 0,
9
+ "embedding_multiplier": 12.0,
10
+ "eos_token_id": 0,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 2048,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 8192,
15
+ "logits_scaling": 8.0,
16
+ "max_position_embeddings": 4096,
17
+ "mlp_bias": false,
18
+ "model_type": "granite",
19
+ "num_attention_heads": 32,
20
+ "num_hidden_layers": 40,
21
+ "num_key_value_heads": 8,
22
+ "pad_token_id": 0,
23
+ "residual_multiplier": 0.22,
24
+ "rms_norm_eps": 1e-05,
25
+ "rope_scaling": null,
26
+ "rope_theta": 10000,
27
+ "tie_word_embeddings": true,
28
+ "torch_dtype": "bfloat16",
29
+ "transformers_version": "4.46.0.dev0",
30
+ "use_cache": true,
31
+ "vocab_size": 49155
32
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5879c64f8a9b52eebb78d54ec133e7076157fc88c742be846b33e353cdbef02
3
+ size 1785097610
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<|end_of_text|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<fim_prefix>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "<fim_middle>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "3": {
30
+ "content": "<fim_suffix>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "4": {
38
+ "content": "<fim_pad>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "5": {
46
+ "content": "<filename>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "6": {
54
+ "content": "<gh_stars>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "7": {
62
+ "content": "<issue_start>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "8": {
70
+ "content": "<issue_comment>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "9": {
78
+ "content": "<issue_closed>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "10": {
86
+ "content": "<jupyter_start>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "11": {
94
+ "content": "<jupyter_text>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "12": {
102
+ "content": "<jupyter_code>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "13": {
110
+ "content": "<jupyter_output>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "14": {
118
+ "content": "<empty_output>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": true
124
+ },
125
+ "15": {
126
+ "content": "<commit_before>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": true
132
+ },
133
+ "16": {
134
+ "content": "<commit_msg>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": true
140
+ },
141
+ "17": {
142
+ "content": "<commit_after>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": true
148
+ },
149
+ "18": {
150
+ "content": "<reponame>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": true
156
+ },
157
+ "49152": {
158
+ "content": "<|start_of_role|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": true
164
+ },
165
+ "49153": {
166
+ "content": "<|end_of_role|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": true
172
+ },
173
+ "49154": {
174
+ "content": "<|tool_call|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": true
180
+ }
181
+ },
182
+ "additional_special_tokens": [
183
+ "<|start_of_role|>",
184
+ "<|end_of_role|>",
185
+ "<|tool_call|>"
186
+ ],
187
+ "bos_token": "<|end_of_text|>",
188
+ "chat_template": "{%- if tools %}\n {{- '<|start_of_role|>available_tools<|end_of_role|>\n' }}\n {%- for tool in tools %}\n {{- tool | tojson(indent=4) }}\n {%- if not loop.last %}\n {{- '\n\n' }}\n {%- endif %}\n {%- endfor %}\n {{- '<|end_of_text|>\n' }}\n{%- endif %}\n{%- for message in messages %}\n {%- if message['role'] == 'system' %}\n {{- '<|start_of_role|>system<|end_of_role|>' + message['content'] + '<|end_of_text|>\n' }}\n {%- elif message['role'] == 'user' %}\n {{- '<|start_of_role|>user<|end_of_role|>' + message['content'] + '<|end_of_text|>\n' }}\n {%- elif message['role'] == 'assistant' %}\n {{- '<|start_of_role|>assistant<|end_of_role|>' + message['content'] + '<|end_of_text|>\n' }}\n {%- elif message['role'] == 'assistant_tool_call' %}\n {{- '<|start_of_role|>assistant<|end_of_role|><|tool_call|>' + message['content'] + '<|end_of_text|>\n' }}\n {%- elif message['role'] == 'tool_response' %}\n {{- '<|start_of_role|>tool_response<|end_of_role|>' + message['content'] + '<|end_of_text|>\n' }}\n {%- endif %}\n {%- if loop.last and add_generation_prompt %}\n {{- '<|start_of_role|>assistant<|end_of_role|>' }}\n {%- endif %}\n{%- endfor %}",
189
+ "clean_up_tokenization_spaces": true,
190
+ "eos_token": "<|end_of_text|>",
191
+ "errors": "replace",
192
+ "model_max_length": 9223372036854775807,
193
+ "pad_token": "<|end_of_text|>",
194
+ "padding_side": "left",
195
+ "tokenizer_class": "GPT2Tokenizer",
196
+ "unk_token": "<|end_of_text|>",
197
+ "vocab_size": 49152
198
+ }