End-to-end TFX pipeline for sentiment analysis
Link to article describing creation of this TFX pipeline for sentiment analysis: https://dlabs.ai/resources/courses/bert-sentiment-analysis-on-vertex-ai-using-tfx/
- E2E TFX pipeline from CSV file to serving endpoint,
- runs locally and on Vertex AI,
- uses TFX helper library,
- uses BERT preprocessor and BERT encoder from Tensorflow Hub,
- 100% containerized (no local dependencies required).
Adjust the location of your image in Makefile
(IMAGE
variable).
Use
make build
to build the container image.
Use
make push
to push the built image to external repository.
-
Setup your input dataset.
-
Adjust your settings in
local_runner.py
andMakefile
. -
Build and push updated image.
-
To start a local pipeline run execute:
make local_pipeline
-
After a model is trained you can serve it through
make serve
-
When the serving server is running you can execute a sample query through
make query
-
Setup you Google Cloud Platform project (see article mentioned in
More info
section). -
Setup your input dataset.
-
Adjust your setting in
vertex_ai_runner.py
andMakefile
. -
Build and push updated image.
-
To schedule a pipeline run on Vertex AI execute:
make vertex_ai_pipeline