Skip to content

ifrazaib/MyllmApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 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/:

πŸ“₯ Install Locally (Optional)

pip install -r requirements.txt
streamlit run app.py

About

Resources

Stars

Watchers

Forks

Contributors

Languages