Shubhra Pandit commited on
Commit
7f2c88d
·
1 Parent(s): 69ae281

Upload correct model files

Browse files
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "ibm-granite/granite-3.1-8b-instruct",
3
  "architectures": [
4
  "GraniteForCausalLM"
5
  ],
@@ -55,7 +55,7 @@
55
  }
56
  },
57
  "format": "float-quantized",
58
- "global_compression_ratio": 1.5302256356540327,
59
  "ignore": [
60
  "lm_head"
61
  ],
@@ -71,5 +71,5 @@
71
  "torch_dtype": "bfloat16",
72
  "transformers_version": "4.47.1",
73
  "use_cache": true,
74
- "vocab_size": 49155
75
  }
 
1
  {
2
+ "_name_or_path": "ibm-granite/granite-3.1-8b-base",
3
  "architectures": [
4
  "GraniteForCausalLM"
5
  ],
 
55
  }
56
  },
57
  "format": "float-quantized",
58
+ "global_compression_ratio": 1.5302256354269217,
59
  "ignore": [
60
  "lm_head"
61
  ],
 
71
  "torch_dtype": "bfloat16",
72
  "transformers_version": "4.47.1",
73
  "use_cache": true,
74
+ "vocab_size": 49152
75
  }
model-00001-of-00002.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ff595a3840a683430bf7a6ddde7153a17257028e4d2ee538b9a332638790b8d5
3
- size 4987212224
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:833b6e4890c8b7893dba55d6cd80373e7ba13c8da11fea19e1c53a9f4a428df1
3
+ size 4987187648
model-00002-of-00002.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:05dac2c15d0342f4faa249661de04748444b1ac050b5aef4949a914f9f5d14ed
3
- size 3791255120
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e7a94a04a176136f8c90efbc8e9114903dc8850741a421cde5e1b29a3ea15f4
3
+ size 3791230544
model.safetensors.index.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "metadata": {
3
- "total_size": 8778391552
4
  },
5
  "weight_map": {
6
  "lm_head.weight": "model-00002-of-00002.safetensors",
 
1
  {
2
  "metadata": {
3
+ "total_size": 8778342400
4
  },
5
  "weight_map": {
6
  "lm_head.weight": "model-00002-of-00002.safetensors",
special_tokens_map.json CHANGED
@@ -1,32 +1,48 @@
1
  {
2
  "additional_special_tokens": [
3
- "<|start_of_role|>",
4
- "<|end_of_role|>",
5
- "<|tool_call|>"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  ],
7
  "bos_token": {
8
- "content": "<|end_of_text|>",
9
  "lstrip": false,
10
  "normalized": false,
11
  "rstrip": false,
12
  "single_word": false
13
  },
14
  "eos_token": {
15
- "content": "<|end_of_text|>",
16
  "lstrip": false,
17
  "normalized": false,
18
  "rstrip": false,
19
  "single_word": false
20
  },
21
  "pad_token": {
22
- "content": "<|end_of_text|>",
23
  "lstrip": false,
24
  "normalized": false,
25
  "rstrip": false,
26
  "single_word": false
27
  },
28
  "unk_token": {
29
- "content": "<|end_of_text|>",
30
  "lstrip": false,
31
  "normalized": false,
32
  "rstrip": false,
 
1
  {
2
  "additional_special_tokens": [
3
+ "<|endoftext|>",
4
+ "<fim_prefix>",
5
+ "<fim_middle>",
6
+ "<fim_suffix>",
7
+ "<fim_pad>",
8
+ "<filename>",
9
+ "<gh_stars>",
10
+ "<issue_start>",
11
+ "<issue_comment>",
12
+ "<issue_closed>",
13
+ "<jupyter_start>",
14
+ "<jupyter_text>",
15
+ "<jupyter_code>",
16
+ "<jupyter_output>",
17
+ "<empty_output>",
18
+ "<commit_before>",
19
+ "<commit_msg>",
20
+ "<commit_after>",
21
+ "<reponame>"
22
  ],
23
  "bos_token": {
24
+ "content": "<|endoftext|>",
25
  "lstrip": false,
26
  "normalized": false,
27
  "rstrip": false,
28
  "single_word": false
29
  },
30
  "eos_token": {
31
+ "content": "<|endoftext|>",
32
  "lstrip": false,
33
  "normalized": false,
34
  "rstrip": false,
35
  "single_word": false
36
  },
37
  "pad_token": {
38
+ "content": "<|endoftext|>",
39
  "lstrip": false,
40
  "normalized": false,
41
  "rstrip": false,
42
  "single_word": false
43
  },
44
  "unk_token": {
45
+ "content": "<|endoftext|>",
46
  "lstrip": false,
47
  "normalized": false,
48
  "rstrip": false,
tokenizer.json CHANGED
@@ -10,7 +10,7 @@
10
  "added_tokens": [
11
  {
12
  "id": 0,
13
- "content": "<|end_of_text|>",
14
  "single_word": false,
15
  "lstrip": false,
16
  "rstrip": false,
@@ -178,48 +178,25 @@
178
  "rstrip": false,
179
  "normalized": false,
180
  "special": true
181
- },
182
- {
183
- "id": 49152,
184
- "content": "<|start_of_role|>",
185
- "single_word": false,
186
- "lstrip": false,
187
- "rstrip": false,
188
- "normalized": false,
189
- "special": true
190
- },
191
- {
192
- "id": 49153,
193
- "content": "<|end_of_role|>",
194
- "single_word": false,
195
- "lstrip": false,
196
- "rstrip": false,
197
- "normalized": false,
198
- "special": true
199
- },
200
- {
201
- "id": 49154,
202
- "content": "<|tool_call|>",
203
- "single_word": false,
204
- "lstrip": false,
205
- "rstrip": false,
206
- "normalized": false,
207
- "special": true
208
  }
209
  ],
210
  "normalizer": null,
211
  "pre_tokenizer": {
212
- "type": "ByteLevel",
213
- "add_prefix_space": false,
214
- "trim_offsets": true,
215
- "use_regex": true
216
- },
217
- "post_processor": {
218
- "type": "ByteLevel",
219
- "add_prefix_space": true,
220
- "trim_offsets": false,
221
- "use_regex": true
 
 
 
222
  },
 
223
  "decoder": {
224
  "type": "ByteLevel",
225
  "add_prefix_space": true,
@@ -230,13 +207,13 @@
230
  "type": "BPE",
231
  "dropout": null,
232
  "unk_token": null,
233
- "continuing_subword_prefix": "",
234
- "end_of_word_suffix": "",
235
  "fuse_unk": false,
236
  "byte_fallback": false,
237
  "ignore_merges": false,
238
  "vocab": {
239
- "<|end_of_text|>": 0,
240
  "<fim_prefix>": 1,
241
  "<fim_middle>": 2,
242
  "<fim_suffix>": 3,
 
10
  "added_tokens": [
11
  {
12
  "id": 0,
13
+ "content": "<|endoftext|>",
14
  "single_word": false,
15
  "lstrip": false,
16
  "rstrip": false,
 
178
  "rstrip": false,
179
  "normalized": false,
180
  "special": true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  }
182
  ],
183
  "normalizer": null,
184
  "pre_tokenizer": {
185
+ "type": "Sequence",
186
+ "pretokenizers": [
187
+ {
188
+ "type": "Digits",
189
+ "individual_digits": true
190
+ },
191
+ {
192
+ "type": "ByteLevel",
193
+ "add_prefix_space": false,
194
+ "trim_offsets": true,
195
+ "use_regex": true
196
+ }
197
+ ]
198
  },
199
+ "post_processor": null,
200
  "decoder": {
201
  "type": "ByteLevel",
202
  "add_prefix_space": true,
 
207
  "type": "BPE",
208
  "dropout": null,
209
  "unk_token": null,
210
+ "continuing_subword_prefix": null,
211
+ "end_of_word_suffix": null,
212
  "fuse_unk": false,
213
  "byte_fallback": false,
214
  "ignore_merges": false,
215
  "vocab": {
216
+ "<|endoftext|>": 0,
217
  "<fim_prefix>": 1,
218
  "<fim_middle>": 2,
219
  "<fim_suffix>": 3,
tokenizer_config.json CHANGED
@@ -1,9 +1,8 @@
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,
@@ -153,47 +152,37 @@
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 messages[0]['role'] == 'system' %}\n {%- set system_message = messages[0]['content'] %}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {%- set system_message = \"Knowledge Cutoff Date: April 2024.\nToday's Date: \" + strftime_now('%B %d, %Y') + \".\nYou are Granite, developed by IBM.\" %}\n {%- if tools and documents %}\n {%- set system_message = system_message + \" You are a helpful AI assistant with access to the following tools. When a tool is required to answer the user's query, respond with <|tool_call|> followed by a JSON list of tools used. If a tool does not exist in the provided list of tools, notify the user that you do not have the ability to fulfill the request.\n\nWrite the response to the user's input by strictly aligning with the facts in the provided documents. If the information needed to answer the question is not available in the documents, inform the user that the question cannot be answered based on the available data.\" %}\n {%- elif tools %}\n {%- set system_message = system_message + \" You are a helpful AI assistant with access to the following tools. When a tool is required to answer the user's query, respond with <|tool_call|> followed by a JSON list of tools used. If a tool does not exist in the provided list of tools, notify the user that you do not have the ability to fulfill the request.\" %}\n {%- elif documents %}\n {%- set system_message = system_message + \" Write the response to the user's input by strictly aligning with the facts in the provided documents. If the information needed to answer the question is not available in the documents, inform the user that the question cannot be answered based on the available data.\" %}\n {%- else %}\n {%- set system_message = system_message + \" You are a helpful AI assistant.\" %} \n {%- endif %}\n {%- if 'citations' in controls and documents %}\n {%- set system_message = system_message + '\n\nIn your response, use the symbols <co> and </co> to indicate when a fact comes from a document in the search result, e.g <co>0</co> for a fact from document 0. Afterwards, list all the citations with their corresponding documents in an ordered list.' %}\n {%- endif %}\n {%- if 'hallucinations' in controls and documents %}\n {%- set system_message = system_message + '\n\nFinally, after the response is written, include a numbered list of sentences from the response that are potentially hallucinated and not based in the documents.' %}\n {%- endif %}\n {%- set loop_messages = messages %}\n{%- endif %}\n{{- '<|start_of_role|>system<|end_of_role|>' + system_message + '<|end_of_text|>\n' }}\n{%- if tools %}\n {{- '<|start_of_role|>tools<|end_of_role|>' }}\n {{- tools | tojson(indent=4) }}\n {{- '<|end_of_text|>\n' }}\n{%- endif %}\n{%- if documents %}\n {{- '<|start_of_role|>documents<|end_of_role|>' }}\n {%- for document in documents %}\n {{- 'Document ' + loop.index0 | string + '\n' }}\n {{- document['text'] }}\n {%- if not loop.last %}\n {{- '\n\n'}}\n {%- endif%}\n {%- endfor %}\n {{- '<|end_of_text|>\n' }}\n{%- endif %}\n{%- for message in loop_messages %}\n {{- '<|start_of_role|>' + message['role'] + '<|end_of_role|>' + message['content'] + '<|end_of_text|>\n' }}\n {%- if loop.last and add_generation_prompt %}\n {{- '<|start_of_role|>assistant' }}\n {%- if controls %}\n {{- ' ' + controls | tojson()}}\n {%- endif %}\n {{- '<|end_of_role|>' }}\n {%- endif %}\n{%- endfor %}",
189
  "clean_up_tokenization_spaces": true,
190
- "eos_token": "<|end_of_text|>",
191
- "errors": "replace",
192
  "extra_special_tokens": {},
193
  "model_max_length": 9223372036854775807,
194
- "pad_token": "<|end_of_text|>",
195
  "padding_side": "left",
196
  "tokenizer_class": "GPT2Tokenizer",
197
- "unk_token": "<|end_of_text|>",
198
  "vocab_size": 49152
199
  }
 
1
  {
 
2
  "add_prefix_space": false,
3
  "added_tokens_decoder": {
4
  "0": {
5
+ "content": "<|endoftext|>",
6
  "lstrip": false,
7
  "normalized": false,
8
  "rstrip": false,
 
152
  "rstrip": false,
153
  "single_word": false,
154
  "special": true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  }
156
  },
157
  "additional_special_tokens": [
158
+ "<|endoftext|>",
159
+ "<fim_prefix>",
160
+ "<fim_middle>",
161
+ "<fim_suffix>",
162
+ "<fim_pad>",
163
+ "<filename>",
164
+ "<gh_stars>",
165
+ "<issue_start>",
166
+ "<issue_comment>",
167
+ "<issue_closed>",
168
+ "<jupyter_start>",
169
+ "<jupyter_text>",
170
+ "<jupyter_code>",
171
+ "<jupyter_output>",
172
+ "<empty_output>",
173
+ "<commit_before>",
174
+ "<commit_msg>",
175
+ "<commit_after>",
176
+ "<reponame>"
177
  ],
178
+ "bos_token": "<|endoftext|>",
 
179
  "clean_up_tokenization_spaces": true,
180
+ "eos_token": "<|endoftext|>",
 
181
  "extra_special_tokens": {},
182
  "model_max_length": 9223372036854775807,
183
+ "pad_token": "<|endoftext|>",
184
  "padding_side": "left",
185
  "tokenizer_class": "GPT2Tokenizer",
186
+ "unk_token": "<|endoftext|>",
187
  "vocab_size": 49152
188
  }
vocab.json CHANGED
The diff for this file is too large to render. See raw diff