This project demonstrates how to perform supervised fine-tuning on language models using financial sentiment data on CPU.
The notebook Supervised_Fine_Tuning_With_FinancialSentiment_on_CPU.ipynb
implements a fine-tuning pipeline for sentiment analysis in financial texts. It's designed to run on CPU environments, making it accessible without requiring specialized hardware.
- Python 3.8+
- PyTorch
- Transformers
- pandas
- numpy
pip install torch transformers pandas numpy scikit-learn
The project uses a financial sentiment dataset containing:
- Financial text/news
- Sentiment labels (positive, negative, neutral)
- Data preprocessing for financial texts
- Model fine-tuning configuration for CPU
- Sentiment classification training
- Open the notebook in Jupyter or Google Colab
- Install required dependencies
- Load and preprocess the financial sentiment dataset
- Configure and run the fine-tuning process
The notebook uses a pre-trained transformer model fine-tuned for sentiment classification tasks.