Skip to content

Commit e2ee7dd

Browse files
authored
add script to isntall for GPU (#122)
1 parent d6bf068 commit e2ee7dd

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

install_everything_gpu.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Uninstall existing jax
16+
pip show jax && pip uninstall -y jax
17+
pip show jaxlib && pip uninstall -y jaxlib
18+
pip show libtpu-nightly && pip uninstall -y libtpu-nightly
19+
pip show tensorflow && pip uninstall -y tensorflow
20+
pip show ray && pip uninstall -y ray
21+
pip show flax && pip uninstall -y flax
22+
pip show keras && pip uninstall -y keras
23+
pip show tensorboard && pip uninstall -y tensorboard
24+
pip show tensorflow-text && pip uninstall -y tensorflow-text
25+
pip show torch_xla2 && pip uninstall -y torch_xla2
26+
27+
pip install flax==0.8.3
28+
pip install -U "jax[cuda12]==0.4.28"
29+
pip install tensorflow-text
30+
pip install tensorflow
31+
32+
pip install ray[default]==2.22.0
33+
# torch cpu
34+
pip install torch==2.2.1+cpu --index-url https://download.pytorch.org/whl/cpu
35+
pip install tensorflow flatbuffers absl-py sentencepiece seqio google-cloud-storage
36+
pip install safetensors colorama coverage humanize
37+
38+
git submodule update --init --recursive
39+
pip show google-jetstream && pip uninstall -y google-jetstream
40+
pip show torch_xla2 && pip uninstall -y torch_xla2
41+
pip install -e .

0 commit comments

Comments
 (0)