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: README.md
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,8 +58,64 @@ Unless you overwrote `output_dir`, results will be stored in `outputs/training_t
58
58
59
59
When training is done, you can bundle your output checkpoint with `leap-bundle` to use it directly within LEAP. Checkout our [Quick Start guide](https://leap.liquid.ai/docs/leap-bundle/quick-start?utm_source=github&utm_medium=link&utm_campaign=LEAP&utm_content=general).
60
60
61
+
## 📊 Expected Dataset Formats
62
+
63
+
### SFT (Supervised Fine-Tuning)
64
+
65
+
```json
66
+
{
67
+
"messages": [
68
+
{ "role": "user", "content": "What is the capital of France?" },
69
+
{ "role": "assistant", "content": "The capital of France is Paris." }
70
+
]
71
+
}
72
+
```
73
+
74
+
### DPO (Direct Preference Optimization)
75
+
76
+
```json
77
+
{
78
+
"prompt": "What is the capital of France?",
79
+
"chosen": "The capital of France is Paris.",
80
+
"rejected": "The capital of France is London."
81
+
}
82
+
```
83
+
84
+
### VLM SFT (Vision-Language Model)
85
+
86
+
```json
87
+
{
88
+
"messages": [
89
+
{
90
+
"role": "system",
91
+
"content": [
92
+
{
93
+
"type": "text",
94
+
"text": "You are an image-based assistant. Answer questions based on the provided image."
{ "type": "text", "text": "What do you see in this image?" }
103
+
]
104
+
},
105
+
{
106
+
"role": "assistant",
107
+
"content": [{ "type": "text", "text": "I see a car in the image." }]
108
+
}
109
+
]
110
+
}
111
+
```
112
+
113
+
> **Note**: VLM datasets commonly have images in a separate row and are referenced in the messages column. If your image URLs or Paths are in a separate column from your messages, you'll need to merge the images into the 'messages' section like above.
114
+
61
115
## 🧪 Advanced Configuration
62
116
117
+
### Default Configs Location and Adding New Configs
0 commit comments