Data Preparation¶
In order to finetune the open sourced LLM, we need to follow the format they pre-trained.
Data Format¶
JSONL¶
We will introduce autotrain later, the best format we used so far is based on autotrain with jsonl format.
| text | prompt | |
|---|---|---|
| example1 | <s>{info}</s> |
|
| example2 | <s>{info}</s> |
Show me what you get!
All I can show is this:
Please prepare something like this, and do not forget about</s> to allow the model stop itself.
Case study¶
We will use axs and CNN dailymail as examples to show how we collect data to finetune the model here.
AXS is our internel toolbox, but we don't have good documentation for it yet. Thanks to LLM, we are exploring the possibility of using LLM as a smart assistant to help us to speed up the process of learning how to use AXS.
CNN dailymail is a dataset for summarization. We will use it as an example to show how we collect data to finetune the model here.
Data Preparation¶
Follow the steps below to prepare your data:
Step 1: Clone the Repository and install dependencies¶
Shell
Step 2: Download and prepare the dataset¶
- [ ] TODO: add the steps to prepare the dataset
- [ ] commit messages
- [ ] hand written notes
- [ ] logs
- [ ] automation scripts