Update config.json
#4
by
ybelkada
- opened
- config.json +9 -1
- tokenizer_config.json +1 -0
config.json
CHANGED
@@ -22,5 +22,13 @@
|
|
22 |
"transformers_version": "4.31.0.dev0",
|
23 |
"use_cache": true,
|
24 |
"vocab_size": 32000,
|
25 |
-
"pad_token_id": 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
}
|
|
|
22 |
"transformers_version": "4.31.0.dev0",
|
23 |
"use_cache": true,
|
24 |
"vocab_size": 32000,
|
25 |
+
"pad_token_id": 0,
|
26 |
+
"quantization_config": {
|
27 |
+
"quant_method": "awq",
|
28 |
+
"zero_point": true,
|
29 |
+
"group_size": 128,
|
30 |
+
"bits": 4,
|
31 |
+
"version": "gemm",
|
32 |
+
"backend": "autoawq"
|
33 |
+
}
|
34 |
}
|
tokenizer_config.json
CHANGED
@@ -18,6 +18,7 @@
|
|
18 |
"rstrip": false,
|
19 |
"single_word": false
|
20 |
},
|
|
|
21 |
"legacy": false,
|
22 |
"model_max_length": 1000000000000000019884624838656,
|
23 |
"pad_token": null,
|
|
|
18 |
"rstrip": false,
|
19 |
"single_word": false
|
20 |
},
|
21 |
+
"chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\\n' + system_message + '\\n<</SYS>>\\n\\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + '[INST] ' + content.strip() + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + ' ' + eos_token }}{% endif %}{% endfor %}",
|
22 |
"legacy": false,
|
23 |
"model_max_length": 1000000000000000019884624838656,
|
24 |
"pad_token": null,
|