An example of setting up a python virtualenv that has pytorch installed.
This package also shows examples of loading and using HuggingFace models. So far, all the models used are for NLP.
An analogous project using poetry to manage the virtualenv and its dependencies is poetry-torch.
source setup.sh
This test can be run interactively:
cd tests
python test_hf_bert_sentiment.py
Run all the tests:
pytest
Ryan Reece (@rreece)
Created: November 4, 2022