fix #23
This commit is contained in:
parent
1b387cc08d
commit
268e774a1d
|
@ -36,7 +36,7 @@ pip install -r requirements.txt
|
||||||
|
|
||||||
如果您仅希望微调模型的对话能力,而非工具能力,您应该按照以下格式整理数据。
|
如果您仅希望微调模型的对话能力,而非工具能力,您应该按照以下格式整理数据。
|
||||||
|
|
||||||
```
|
```json
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"messages": [
|
"messages": [
|
||||||
|
@ -49,6 +49,9 @@ pip install -r requirements.txt
|
||||||
"args": {
|
"args": {
|
||||||
"<arg name>": "<arg value>"
|
"<arg name>": "<arg value>"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
// Add more tools if needed
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"role": "user",
|
"role": "user",
|
||||||
|
@ -58,7 +61,7 @@ pip install -r requirements.txt
|
||||||
"role": "assistant",
|
"role": "assistant",
|
||||||
"content": "<assistant response text>"
|
"content": "<assistant response text>"
|
||||||
},
|
},
|
||||||
// If Tool Using:
|
// If Tool Using
|
||||||
{
|
{
|
||||||
"role": "user",
|
"role": "user",
|
||||||
"content": "<user prompt text>"
|
"content": "<user prompt text>"
|
||||||
|
@ -75,7 +78,7 @@ pip install -r requirements.txt
|
||||||
"role": "assistant",
|
"role": "assistant",
|
||||||
"content": "<assistant response observation>"
|
"content": "<assistant response observation>"
|
||||||
},
|
},
|
||||||
// Multi_turns:
|
// Multi_turns
|
||||||
{
|
{
|
||||||
"role": "user",
|
"role": "user",
|
||||||
"content": "<user prompt text>"
|
"content": "<user prompt text>"
|
||||||
|
@ -86,8 +89,7 @@ pip install -r requirements.txt
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
// ...
|
]
|
||||||
]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
这里是一个不带有工具的例子:
|
这里是一个不带有工具的例子:
|
||||||
|
|
|
@ -32,7 +32,7 @@ The multi-round dialogue fine-tuning example uses the GLM-4 dialogue format conv
|
||||||
|
|
||||||
For data files, the sample uses the following format:
|
For data files, the sample uses the following format:
|
||||||
|
|
||||||
```
|
```json
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"messages": [
|
"messages": [
|
||||||
|
@ -45,6 +45,9 @@ For data files, the sample uses the following format:
|
||||||
"args": {
|
"args": {
|
||||||
"<arg name>": "<arg value>"
|
"<arg name>": "<arg value>"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
// Add more tools if needed
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"role": "user",
|
"role": "user",
|
||||||
|
@ -54,7 +57,7 @@ For data files, the sample uses the following format:
|
||||||
"role": "assistant",
|
"role": "assistant",
|
||||||
"content": "<assistant response text>"
|
"content": "<assistant response text>"
|
||||||
},
|
},
|
||||||
// If Tool Using:
|
// If Tool Using
|
||||||
{
|
{
|
||||||
"role": "user",
|
"role": "user",
|
||||||
"content": "<user prompt text>"
|
"content": "<user prompt text>"
|
||||||
|
@ -71,7 +74,7 @@ For data files, the sample uses the following format:
|
||||||
"role": "assistant",
|
"role": "assistant",
|
||||||
"content": "<assistant response observation>"
|
"content": "<assistant response observation>"
|
||||||
},
|
},
|
||||||
// Multi_turns:
|
// Multi_turns
|
||||||
{
|
{
|
||||||
"role": "user",
|
"role": "user",
|
||||||
"content": "<user prompt text>"
|
"content": "<user prompt text>"
|
||||||
|
@ -82,8 +85,7 @@ For data files, the sample uses the following format:
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
// ...
|
]
|
||||||
]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
This is a sample without tools:
|
This is a sample without tools:
|
||||||
|
|
Loading…
Reference in New Issue