Spaces:
Running
Running
Merge pull request #2 from pcuenca/main
Browse files- README.md +5 -1
- 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
|
|
|
|
|
|
|
|
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
flax
|
3 |
-
|
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
|
|
|
|