Update README.md
Browse files
README.md
CHANGED
@@ -339,6 +339,23 @@ User prompt...
|
|
339 |
|
340 |
在这个格式中,System提示是可选的(按需设定),支持单轮会话也支持多轮会话。推理时,请确保拼接的prompt字符串以"\<s\>bot\n"结尾,引导模型生成回答。
|
341 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
342 |
## 快速使用
|
343 |
|
344 |
```python
|
|
|
339 |
|
340 |
在这个格式中,System提示是可选的(按需设定),支持单轮会话也支持多轮会话。推理时,请确保拼接的prompt字符串以"\<s\>bot\n"结尾,引导模型生成回答。
|
341 |
|
342 |
+
例如,推理HumanEval数据时使用的格式如下所示:
|
343 |
+
|
344 |
+
<s>human
|
345 |
+
# language: Python
|
346 |
+
from typing import List
|
347 |
+
def separate_paren_groups(paren_string: str) -> List[str]:
|
348 |
+
""" Input to this function is a string containing multiple groups of nested parentheses. Your goal is to
|
349 |
+
separate those group into separate strings and return the list of those.
|
350 |
+
Separate groups are balanced (each open brace is properly closed) and not nested within each other
|
351 |
+
Ignore any spaces in the input string.
|
352 |
+
>>> separate_paren_groups('( ) (( )) (( )( ))')
|
353 |
+
['()', '(())', '(()())']
|
354 |
+
"""
|
355 |
+
<s>bot
|
356 |
+
|
357 |
+
特别地,我们也使用了CodeGeeX系列模型采用的编程语言区分标签(例如,对于Python语言,我们会使用#language: Python)。
|
358 |
+
|
359 |
## 快速使用
|
360 |
|
361 |
```python
|