You can find some tutorials and documentation on the following links:
- Tutorial: Vertex AI: Training and serving a custom model
- YouTube tutorial: Build a custom ML model with Vertex AI
- Exporting model artifacts
Example code that shows how to package your Python code:
python setup.py sdist --formats=gztar
gsutil cp dist/sklearn-text-classification-0.1.tar.gz gs://haba-ws/container/