Skip to content

An example of setting up a python virtualenv that has pytorch installed

License

Notifications You must be signed in to change notification settings

rreece/venv-torch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

venv-torch

CI badge

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.

How to setup

source setup.sh

Run sentiment scoring of your input texts

This test can be run interactively:

cd tests
python test_hf_bert_sentiment.py

Run the tests

Run all the tests:

pytest

Author

Ryan Reece (@rreece)
Created: November 4, 2022

About

An example of setting up a python virtualenv that has pytorch installed

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published