The NLP Transformers library from HuggingFace provides models for PyTorch or TensorFlow which are pretrained to solve a specific task. These notebooks show how a model can be downloaded and be used in a local environment without Internet:
- distilbert-base-uncased-finetuned-sst-2-english Model Download Save.ipynb
distilbert-base-uncased-finetuned-sst-2-english Load.ipynb
These Jupyter Notebooks document how a model can be saved to loacal storage (using CoLab as an example environment) und using the local model from disk to make predictions on a 'sentiment-analysis' task for English text.
Additional notebooks show how Sentiment Analysis and MultiClass Classification can be implemented based on fine-tuning an existing model.