BERT is Google’s ChatGPT competitor. Here is a quick exercise to run BERT on your machine.
Note: The server MUST be running on Python >= 3.5 with Tensorflow >= 1.10. Download a pre-trained model here.
pip install -U bert-serving-server bert-serving-client
bert-serving-start -model_dir /tmp/english_L-12_H-768_A-12/ -num_worker=4
from bert_serving.client import BertClient
bc = BertClient()
bc.encode(['First do it', 'then do it right', 'then do it better'])
Source: This BERT tutorial
To learn more and view the official BERT Github Repo go here.