This workshop introduces a workflow for training custom machine learning models using the transformers library from HuggingFace. It walks through:
- Running pre-trained models from the HuggingFace Hub
- Loading and working with image datasets
- Fine-tuning and evaluating an image classifier
- Deploying the model as a small web app
Make sure to have a working Python setup. Install the packages listed in requirements.txt:
pip install -r requirements.txtThe requirements include transformers, datasets, and a few other scientific Python libraries.
Open the notebook intro_model_finetuning.ipynb and follow the instructions.
This workshop material is distributed under the terms of the BSD-3 license.