This repository contains code to train, tune and deploy a Hugging Face Transformer model with Vertex AI.
custom_training_docker
- Dockerfile and training code for custom training container
training.py
- Creation of the custom training container, hyperparameter-tuning job ,training job and model deployment
Make sure you run "gcloud auth application-default login" before running the training.py file. or you can use the service account key json file.
I've created a medium article to explain the code in this repository. You can find it here.