MathGenie commited on
Commit
76acb3d
1 Parent(s): ad1d1d2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -0
README.md CHANGED
@@ -44,6 +44,23 @@ Our [MathGenie-Mixtral-8x7B](https://huggingface.co/MathGenie/MathGenie-Mixtral-
44
 
45
  ### Inference & Evaluation
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  Please refer to the [MathCoder repo](https://github.com/mathllm/MathCoder) for the detailed code for inference and evaluation of our MathGenieLM models.
48
 
49
  ## Citation
 
44
 
45
  ### Inference & Evaluation
46
 
47
+ **template**
48
+
49
+ ```
50
+ {% for message in messages %}
51
+ {% if message['role'] == 'user' %}
52
+ {{ '<|user|>' }}{% elif message['role'] == 'system' %}
53
+ {{ '<|system|>' }}{% elif message['role'] == 'assistant' %}
54
+ {{ '<|assistant|>' }}{% endif %}
55
+ {% for block in message['content'] %}
56
+ {% if block['type'] == 'text' %}
57
+ {{ '<|text|>' }}{% elif block['type'] == 'code' %}
58
+ {{ '<|code|>' }}{% elif block['type'] == 'execution' %}
59
+ {{ '<|execution|>' }}{% endif %}
60
+ {{ block['content'] + '<|endofblock|>' }}{% endfor %}
61
+ {{ '<|endofmessage|>' }}{% endfor %}
62
+ ```
63
+
64
  Please refer to the [MathCoder repo](https://github.com/mathllm/MathCoder) for the detailed code for inference and evaluation of our MathGenieLM models.
65
 
66
  ## Citation