Skip to content

felixOlesen/NLP_GROUP_CW

Repository files navigation

NLP_GROUP_CW

Before Hosting the Server:

  1. Ensure that OpenJDK 11 is installed on your machine.
  2. Install all of the requirements in the 'requirements.txt' file.
  3. For conda installations, the "environment.yml" file can be used to install the necessary packages.

Running TorchServe:

With CI/CD Pipeline Script

./ci_pipeline.sh

Manually:

Making Model Archive File (.mar):
torch-model-archiver --model-name DistilBERTModel --version 1.0 --serialized-file traced_distilbert.pt --handler handler
Move the produced Model Archive File to Model Store:
mkdir model_store
mv DistilBERTModel.mar /model_store
Hosting the Model:
torchserve --start --model-store model_store --models DistilBERTModel=DistilBERTModel.mar --ts-config config.properties

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published