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.
- Fine-tunes GPT-2 with a small dataset using Hugging Face + LoRA
- Interactive chatbot UI built with Streamlit
- Easily deployable via Streamlit Cloud
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
- Train model in Colab and save
llm-finetuned/ - Push all files to GitHub
- Deploy on : https://myllmapp-gpt2.streamlit.app/:
- Repo: https://github.com/ifrazaib/MyllmApp
- File:
app.py
pip install -r requirements.txt
streamlit run app.py