Skip to content

Instantly share code, notes, and snippets.

@sogaiu
Last active October 1, 2020 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sogaiu/2e690bf2020e669601609b3c7e8e7f08 to your computer and use it in GitHub Desktop.
Save sogaiu/2e690bf2020e669601609b3c7e8e7f08 to your computer and use it in GitHub Desktop.
use virtualenv with gigasquid's "hugging fact gpt with clojure" tutorial
# some tweaks to instructions at:
# http://gigasquidsoftware.com/blog/2020/01/10/hugging-face-gpt-with-clojure/
mkdir hugging-face-gpt-clojure
cd hugging-face-gpt-clojure
# keep system clean by using virtualenv
sudo apt install virtualenv
virtualenv -p python3 hfgc
source hfgc/bin/activate
# don't need sudo now
pip3 install torch
pip3 install transformers
# XXX: may (not?) need to install python3-pip, but haven't tried without
# continue with tutorial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment