Welcome to Eva, your customizable chatbot powered by fine-tuned models! This project demonstrates how to fine-tune a language model and deploy it seamlessly into a conversational assistant.
Chat with Eva A responsive chatbot that interacts dynamically with users. Start the conversation and let Eva assist you.
Customize a base language model using your own dataset and create a fine-tuned version tailored to your needs.
Monitor the progress of your fine-tuning job and retrieve the final model ID once completed.
Clone the repository:
git clone https://github.com/your-repo/fine-tune-chatbot.git
cd fine-tune-chatbot
Ensure you have Python 3.9+ installed, then run:
pip install -r requirements.txt
Place your training file (in JSONL format) in the res/ folder.
- Chatbot Mode Launch Eva, your chatbot:
python chatbot.py
Eva will greet you and await your queries. Type your questions and experience the conversational capabilities!
- Fine-Tuning Mode Fine-tune a base model using your dataset:
python fine_tune.py
- Enter the name of your training file located in the res/ folder.
- Confirm to start the fine-tuning process.
- Monitor the progress, and retrieve your custom model ID upon completion.
The chatbot (chatbot.py) uses the ask_model service to process user inputs and return dynamic responses.
The fine-tuning script (fine_tune.py) uses:
upload_training_file() to upload your dataset.
create_training_job() to start a fine-tuning job.
training_job_status() to monitor the job and retrieve the fine-tuned model.
- Python: 3.12+
- OpenAI API Access: Make sure you have access to OpenAI's fine-tuning services.
- Training Dataset: Format your training file in JSONL format.
Contributions are welcome! Feel free to open issues or submit pull requests to improve this project.
Powered by OpenAI API for state-of-the-art language models. Special thanks to the developers and contributors of this repository.
Enjoy using Eva, your customizable fine-tuned chatbot! ✨