Create generation_config.json
Browse files- generation_config.json +55 -0
generation_config.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
+
"transformers_version": "4.36.0",
|
| 7 |
+
|
| 8 |
+
"max_length": 32768,
|
| 9 |
+
"max_new_tokens": 4096,
|
| 10 |
+
"min_length": 0,
|
| 11 |
+
"min_new_tokens": null,
|
| 12 |
+
|
| 13 |
+
"do_sample": false,
|
| 14 |
+
"temperature": 0.1,
|
| 15 |
+
"top_k": 50,
|
| 16 |
+
"top_p": 0.95,
|
| 17 |
+
"typical_p": 1.0,
|
| 18 |
+
"repetition_penalty": 1.0,
|
| 19 |
+
"length_penalty": 1.0,
|
| 20 |
+
"no_repeat_ngram_size": 0,
|
| 21 |
+
|
| 22 |
+
"encoder_repetition_penalty": 1.0,
|
| 23 |
+
"num_beams": 1,
|
| 24 |
+
"num_beam_groups": 1,
|
| 25 |
+
"diversity_penalty": 0.0,
|
| 26 |
+
"forced_bos_token_id": null,
|
| 27 |
+
"forced_eos_token_id": null,
|
| 28 |
+
"exponential_decay_length_penalty": null,
|
| 29 |
+
|
| 30 |
+
"remove_invalid_values": false,
|
| 31 |
+
"begin_suppress_tokens": null,
|
| 32 |
+
"suppress_tokens": null,
|
| 33 |
+
|
| 34 |
+
"use_cache": true,
|
| 35 |
+
"output_attentions": false,
|
| 36 |
+
"output_hidden_states": false,
|
| 37 |
+
"output_scores": false,
|
| 38 |
+
"return_dict_in_generate": false,
|
| 39 |
+
|
| 40 |
+
"tool_calling": {
|
| 41 |
+
"enabled": true,
|
| 42 |
+
"max_tool_calls": 10,
|
| 43 |
+
"parallel_calls": true,
|
| 44 |
+
"timeout_seconds": 30
|
| 45 |
+
},
|
| 46 |
+
|
| 47 |
+
"math_mode": {
|
| 48 |
+
"latex_output": true,
|
| 49 |
+
"show_work": true,
|
| 50 |
+
"verify_solution": true,
|
| 51 |
+
"numerical_precision": 15
|
| 52 |
+
},
|
| 53 |
+
|
| 54 |
+
"chat_template": "{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% set messages = messages[1:] %}{% else %}{% set system_message = 'You are Kirim-1-Math, an advanced mathematical reasoning AI with tool calling capabilities. You solve problems step-by-step, show your work, and can use tools when needed.' %}{% endif %}<|begin_of_text|><|system|>\n{{ system_message }}\n{% if tools %}Available tools: {{ tools | tojson }}\n{% endif %}{% for message in messages %}{% if message['role'] == 'user' %}<|user|>\n{{ message['content'] }}\n{% elif message['role'] == 'assistant' %}<|assistant|>\n{{ message['content'] }}\n{% elif message['role'] == 'tool' %}<|tool|>\n{{ message['content'] }}\n{% endif %}{% endfor %}<|assistant|>\n"
|
| 55 |
+
}
|