https://github.com/marcelo-earth/light-tuning
🤖 CLI to fine-tune GPT-3.5 Turbo models rapidly. 💬
https://github.com/marcelo-earth/light-tuning
cli fine-tuning gpt-3 gpt-35-turbo gpt-cli openai
Last synced: 3 months ago
JSON representation
🤖 CLI to fine-tune GPT-3.5 Turbo models rapidly. 💬
- Host: GitHub
- URL: https://github.com/marcelo-earth/light-tuning
- Owner: marcelo-earth
- License: mit
- Created: 2023-08-25T20:06:52.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-28T00:02:02.000Z (almost 3 years ago)
- Last Synced: 2026-01-28T00:40:42.277Z (4 months ago)
- Topics: cli, fine-tuning, gpt-3, gpt-35-turbo, gpt-cli, openai
- Language: Python
- Homepage:
- Size: 440 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
LightTuning
🤖 CLI to fine-tune GPT-3.5 Turbo models rapidly. 💬

## 🚀 Concept
**LightTuning** is a quick way to fine-tune GPT-3.5 Turbo models. To scale and enhance a model from a small conversation to a light GPT-3.5 model that can overperform GPT-4. How cool is that?
## 🧑💻 Usage
### Installation
Install the required packages using pip.
```bash
pip3 install -r requirements.txt
```
Run the `main.py` script to start the tool.
```bash
python3 main.py
```
You will be greeted with a welcome message and a list of actions to choose from:
- Generate dataset
- Upload dataset
- Fine-tune model
- All
Select an action using the arrow keys and press Enter.
### Generate Dataset
If you choose 'Generate dataset', you will be asked to provide the path to the seed conversation. If you don't provide a path, LightTuning will ask you to enter it.
Add a seed conversation to the file. The conversation should be in the following OpenAI conversation format:
```json
[
{
"role": "system",
"content": "You are an assistant that can translate from English to Spanish."
},
{
"role": "user",
"content": "Hello"
},
{
"role": "assistant",
"content": "Hola"
},
{
"role": "user",
"content": "Happy"
},
{
"role": "assistant",
"content": "Feliz"
}
]
```
### Upload Dataset
If you choose 'Upload dataset', you will be asked to enter the path to the dataset file. If you don't provide a path, the tool will ask you to enter it. You will then be asked to confirm the upload.
### Fine-tune Model
If you choose 'Fine-tune model', you will be asked to provide the file ID for fine-tuning. If you don't provide a file ID, the tool will ask you to enter it.
### All
If you choose 'All', the tool will execute all of the above actions in order.
## 📃 License
Distributed under the MIT License.
See [`LICENSE`](./LICENSE) for more information.