A mini demo for demonstrate the basic steps of MLOPs using public tools and platforms, including dataset management, model training, CI/CD
Before starting with this project, ensure you have the following installed and configured:
-
Python (version 3.6 or higher)
- Download and install Python from python.org.
- Verify the installation by running:
python --version
-
Git
-
VSCode(recommended)
-
Sign up for Hugging Face Hub Account
- Sign up at huggingface.co
-
GitHub Account
git clone [email protected]:Whynotmetoo/MLOPs-and-LLMOPs-Demo.git
python -m venv venv
- window:
venv\Scripts\activate
- Linux/macOS:
source venv/bin/activate
pip install -r requirements.txt
python train_model.py
- Create Hugging Face Repo and access token
- Creat a new model repo and copy the repo id on the top left corner of the repo, in a format as
your_username/your_model_repo
- Go to Settings > Access Tokens to generate your token.
- Creat a new model repo and copy the repo id on the top left corner of the repo, in a format as
- Create github repository secrets
- Save the token as a GitHub Secret named
HF_TOKEN
and the repo id namedREPO_ID
in your GitHub repository for secure access during deployment. Go the setting > Actions secrets and variables > Actions to add your Repository secrets
- Save the token as a GitHub Secret named
push you code to github and check the pipeline test