Skip to content

Commit a1c4cd2

Browse files
committed
Update requirements.txt files with hashes.
1 parent 61f3300 commit a1c4cd2

File tree

7 files changed

+660
-27
lines changed

7 files changed

+660
-27
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,16 @@ ENV FORCE_CUDA 1
6969
SHELL ["/bin/bash", "-l", "-c"]
7070

7171
WORKDIR $HOME
72-
RUN pip3 install pip setuptools wheel
7372

7473
# Copy in the code to open-source
75-
COPY --chown=$uid:$gid ./requirements_gpu.txt $HOME/
74+
COPY --chown=$uid:$gid ./requirements_all_with_hashes.txt $HOME/
75+
COPY --chown=$uid:$gid ./requirements_gpu_with_hashes.txt $HOME/
76+
COPY --chown=$uid:$gid ./requirements_cpu_with_hashes.txt $HOME/
7677
COPY --chown=$uid:$gid ./perceiver_helpers.py $HOME/
7778
COPY --chown=$uid:$gid ./perceiver_blocks.py $HOME/
7879
COPY --chown=$uid:$gid ./perceiver_test.py $HOME/
7980
COPY --chown=$uid:$gid ./perceiver.py $HOME/
8081

8182
# install any extra Python requirements defined in requirements.txt
82-
RUN pip3 install -r requirements_gpu.txt
83+
RUN pip3 install --require-hashes -r requirements_all_with_hashes.txt
84+
RUN pip3 install --require-hashes -r requirements_gpu_with_hashes.txt

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ To create and activate a virtualenv and install all necessary dependencies, run:
2020
python3 -m venv /tmp/hip_venv
2121
source /tmp/hip_venv/bin/activate
2222
pip3 install pip setuptools wheel
23-
pip3 install -r requirements_gpu.txt
23+
pip3 install -r requirements_gpu_with_hashes.txt
2424
```
2525

26-
`requirements_gpu.txt` will require a working CUDA installation, and `nvidia-cuda-toolkit` installed. Otherwise, you can replace this with `requirements_cpu.txt` which does not have this dependency.
26+
`requirements_gpu_with_hashes.txt` will require a working CUDA installation, and `nvidia-cuda-toolkit` installed. Otherwise, you can replace this with `requirements_cpu_with_hashes.txt` which does not have this dependency.
2727

2828
Running `python3 -m unittest -v perceiver_test` after this will run a suite of
2929
tests that demonstrates running the HiP architecture on sample multimodal data.

requirements_all_with_hashes.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.7
3+
# by the following command:
4+
#
5+
# pip-compile --allow-unsafe --extra-index-url=https://storage.googleapis.com/jax-releases/jax_cuda_releases.html --generate-hashes --output-file=requirements_gpu_with_hashes1.txt requirements1.in
6+
#
7+
--extra-index-url https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
8+
--find-links https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
9+
10+
wheel==0.40.0 \
11+
--hash=sha256:cd1196f3faee2b31968d626e1731c94f99cbdb67cf5a46e4f5656cbee7738873 \
12+
--hash=sha256:d236b20e7cb522daf2390fa84c55eea81c5c30190f90f29ae2ca1ad8355bf247
13+
# via -r requirements1.in
14+
15+
# The following packages are considered to be unsafe in a requirements file:
16+
pip==23.1.2 \
17+
--hash=sha256:0e7c86f486935893c708287b30bd050a36ac827ec7fe5e43fe7cb198dd835fba \
18+
--hash=sha256:3ef6ac33239e4027d9a5598a381b9d30880a1477e50039db2eac6e8a8f6d1b18
19+
# via -r requirements1.in
20+
setuptools==67.7.2 \
21+
--hash=sha256:23aaf86b85ca52ceb801d32703f12d77517b2556af839621c641fca11287952b \
22+
--hash=sha256:f104fa03692a2602fa0fec6c6a9e63b6c8a968de13e17c026957dd1f53d80990
23+
# via -r requirements1.in

requirements_cpu.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

requirements_cpu_with_hashes.txt

Lines changed: 314 additions & 0 deletions
Large diffs are not rendered by default.

requirements_gpu.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)