You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/advanced/api_server.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,4 +75,4 @@ Ensure that the model path you provide is a directory containing a valid xturing
75
75
}
76
76
```
77
77
78
-
By following these steps, you can effectively run your fine-tuned model for text generation through the FastAPI server, facilitating seamless inference with structured requests and responses.
78
+
By following these steps, you can effectively run your fine-tuned model for text generation through the FastAPI server, facilitating seamless inference with structured requests and responses.
Copy file name to clipboardExpand all lines: docs/docs/advanced/generate.md
+13-14Lines changed: 13 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,16 +16,16 @@ To generate a dataset we will make use of **engines** that consist of third part
16
16
17
17
OpenAI api key can be obtained [here](https://beta.openai.com/account/api-keys)
18
18
19
-
19
+
20
20
```python
21
21
from xturing.model_apis.openai import ChatGPT, Davinci
22
22
engine = ChatGPT("your-api-key")
23
23
# or
24
24
engine = Davinci("your-api-key")
25
25
```
26
-
26
+
27
27
</TabItem>
28
-
28
+
29
29
<TabItemvalue="cohere"label="Cohere">
30
30
31
31
```python
@@ -75,7 +75,7 @@ Each line of this file needs to be a _JSON_ object with the following fields:
75
75
|__instances__| List[Dict[str,str]]| A list of input-output pairs that provide examples of what the model should output for this task. Each input-output pair is an object with two fields: __input__ and __output__. |
76
76
|__is_classification__| boolean | A flag that indicates whether this is a classification task or not. If this flag is set to true, the output should be a single label (e.g. a category or class), otherwise the output can be any text. The default value is false. |
77
77
78
-
Here's an example of a task in the above mentioned format:
78
+
Here's an example of a task in the above mentioned format:
79
79
80
80
```json
81
81
{
@@ -100,16 +100,16 @@ Here is how an sample `tasks.jsonl` file should like:
100
100
101
101
```json
102
102
{
103
-
"id": "seed_task_0",
104
-
"name": "breakfast_suggestion",
105
-
"instruction": "Is there anything I can eat for a breakfast that doesn't include eggs, yet includes protein, and has roughly 700-1000 calories?",
106
-
"instances": [{"input": "", "output": "Yes, you can have 1 oatmeal banana protein shake and 4 strips of bacon. The oatmeal banana protein shake may contain 1/2 cup oatmeal, 60 grams whey protein powder, 1/2 medium banana, 1tbsp flaxseed oil and 1/2 cup watter, totalling about 550 calories. The 4 strips of bacon contains about 200 calories."}],
103
+
"id": "seed_task_0",
104
+
"name": "breakfast_suggestion",
105
+
"instruction": "Is there anything I can eat for a breakfast that doesn't include eggs, yet includes protein, and has roughly 700-1000 calories?",
106
+
"instances": [{"input": "", "output": "Yes, you can have 1 oatmeal banana protein shake and 4 strips of bacon. The oatmeal banana protein shake may contain 1/2 cup oatmeal, 60 grams whey protein powder, 1/2 medium banana, 1tbsp flaxseed oil and 1/2 cup watter, totalling about 550 calories. The 4 strips of bacon contains about 200 calories."}],
107
107
"is_classification": false
108
108
}
109
109
{
110
-
"id": "seed_task_1",
111
-
"name": "antonym_relation",
112
-
"instruction": "What is the relation between the given pairs?",
110
+
"id": "seed_task_1",
111
+
"name": "antonym_relation",
112
+
"instruction": "What is the relation between the given pairs?",
113
113
"instances": [{"input": "Night : Day :: Right : Left", "output": "The relation between the given pairs is that they are opposites."}], "is_classification": false
114
114
}
115
115
```
@@ -129,7 +129,7 @@ from xturing.model_apis.openai import Davinci
Copy file name to clipboardExpand all lines: docs/docs/configuration/finetune_configure.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ For advanced usage, you can customize the `finetuning_config` attribute of the m
15
15
In this tutorial, we will be loading one of the [supported models](/overview/supported_models) and customizing it's fine-tune configuration before calibrating the model to the desired dataset.
16
16
17
17
### Load the model and the dataset
18
-
First, we need to load the model and the dataset we want to use.
18
+
First, we need to load the model and the dataset we want to use.
0 commit comments