boris commited on
Commit
8b9d1f5
2 Parent(s): 11c8be9 df7b7be

Merge pull request #2 from pcuenca/main

Browse files
Files changed (2) hide show
  1. README.md +5 -1
  2. requirements.txt +8 -4
README.md CHANGED
@@ -33,6 +33,10 @@
33
 
34
 
35
  ## Dependencies Installation
36
- You should create a new python virtual environment and install the project dependencies inside the virtual env: `pip install -r requirements.txt`
 
 
 
 
37
 
38
  If you use `conda`, you can create the virtual env and install everything using: `conda env update -f environments.yaml`
 
33
 
34
 
35
  ## Dependencies Installation
36
+ You should create a new python virtual environment and install the project dependencies inside the virtual env. You need to use the `-f` (`--find-links`) option for `pip` to be able to find the appropriate `libtpu` required for the TPU hardware:
37
+
38
+ ```
39
+ $ pip install -r requirements.txt -f https://storage.googleapis.com/jax-releases/libtpu_releases.html
40
+ ```
41
 
42
  If you use `conda`, you can create the virtual env and install everything using: `conda env update -f environments.yaml`
requirements.txt CHANGED
@@ -1,5 +1,9 @@
1
- jax
 
 
 
 
 
 
2
  flax
3
- optax
4
- datasets
5
- git+https://github.com/huggingface/transformers
 
1
+ # Note: install with the following command:
2
+ # pip install -r requirements.txt -f https://storage.googleapis.com/jax-releases/libtpu_releases.html
3
+ # Otherwise it won't find the appropriate libtpu_nightly
4
+ requests
5
+ jax[tpu]>=0.2.16
6
+ -e git+https://github.com/huggingface/transformers.git@master#egg=transformers
7
+ -e git+https://github.com/huggingface/datasets.git@master#egg=datasets
8
  flax
9
+ jupyter