<<<<<<< HEAD
This repository contains code for fine-tuning a GPT-2 LM head model from Hugging Face on the ConvoAI dataset. The project includes both a Google Colab notebook and Python scripts for local execution.
- Google Colab notebook for cloud-based execution
- Python scripts for local execution
- Requirements and setup instructions for both environments
- Python 3.7+
- PyTorch
- Transformers library from Hugging Face
- ConvoAI dataset (instructions for downloading included in the code)
- Clone this repository:
git clone https://github.com/DivyanshTiwari20/fine-tunning-GPT2LMHeadModel.git - Install the required packages:
pip install torch transformers datasets numpy pandas tqdm
- Open the provided
.ipynbfile in Google Colab. - Run the following cell to install necessary packages:
!pip install torch !pip install transformers !pip install datasets !pip install numpy !pip install pandas !pip install tqdm
- Navigate to the project directory.
- Run the main Python script:
python fine_tune_gpt2.py
- Open the notebook in Google Colab.
- Follow the step-by-step instructions in the notebook.
- Run each cell sequentially.
Make sure you have the following packages installed:
torchtransformersdatasetsnumpypandastqdm
To install these packages, you can use the following commands:
pip install torch
pip install transformers
pip install datasets
pip install numpy
pip install pandas
pip install tqdmThese packages are crucial for running the fine-tuning process, whether on a local PC or Google Colab.
For a detailed walkthrough of the fine-tuning process, check out this YouTube tutorial: Fine-tuning GPT-2 on Custom Dataset
- Base Model: GPT-2 LM head from Hugging Face
- Dataset: ConvoAI
- Fine-tuning Process: The model is fine-tuned on conversational data to improve its performance in dialogue generation tasks.
(Add information about the performance of your fine-tuned model, any benchmarks, or sample outputs)
Contributions to improve the fine-tuning process or extend the project are welcome. Please feel free to submit issues or pull requests.
- Hugging Face for providing the GPT-2 model and Transformers library
- ConvoAI for the dataset
- The creators of the YouTube tutorial for their helpful guide =======
This repo is about finetuning gpt2 model provided by Transformers. I fine tuned the model in convai dataset.
1d83f9c837db2d550e827c246fcc172aa4115f0c