https://github.com/ifrazaib/myllmapp
https://github.com/ifrazaib/myllmapp
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ifrazaib/myllmapp
- Owner: ifrazaib
- Created: 2025-07-03T16:57:04.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2025-07-03T17:17:45.000Z (3 months ago)
- Last Synced: 2025-07-03T18:28:24.161Z (3 months ago)
- Language: Python
- Size: 5.35 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🧠 Fine-Tuned GPT-2 Chatbot with Streamlit
This project fine-tunes the `GPT-2` language model on a short, custom instruction-response dataset using LoRA (Low-Rank Adaptation) and deploys it using Streamlit Cloud.
---
## 🚀 Features
- Fine-tunes GPT-2 with a small dataset using Hugging Face + LoRA
- Interactive chatbot UI built with Streamlit
- Easily deployable via Streamlit Cloud---
## 📂 Project Structure
my-llm-app/
- ├── app.py # Streamlit app
- ├── requirements.txt # Required Python libraries
- └── llm-finetuned/ # Fine-tuned model directory
- ├── config.json
- ├── pytorch_model.bin
- ├── tokenizer_config.json
- ├── tokenizer.json
- └── vocab.json---
## 🛠️ How to Use
1. **Train model in Colab** and save `llm-finetuned/`
2. **Push all files to GitHub**
3. **Deploy on : https://myllmapp-gpt2.streamlit.app/**:
- Repo: https://github.com/ifrazaib/MyllmApp
- File: `app.py`---
## 📥 Install Locally (Optional)
```bash
pip install -r requirements.txt
streamlit run app.py