Before Hosting the Server:
- Ensure that OpenJDK 11 is installed on your machine.
- Install all of the requirements in the 'requirements.txt' file.
- For conda installations, the "environment.yml" file can be used to install the necessary packages.
./ci_pipeline.sh
torch-model-archiver --model-name DistilBERTModel --version 1.0 --serialized-file traced_distilbert.pt --handler handler
mkdir model_store
mv DistilBERTModel.mar /model_store
torchserve --start --model-store model_store --models DistilBERTModel=DistilBERTModel.mar --ts-config config.properties