adityas129 commited on
Commit
25f5a3a
·
verified ·
1 Parent(s): 0112581

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -11
Dockerfile CHANGED
@@ -61,28 +61,42 @@ RUN ln -sf /usr/bin/python3.11 /usr/bin/python && python -m pip install --upgrad
61
  # 1) Install JAX first
62
  RUN python -m pip install "jax[cuda12]==0.7.1" "jaxlib==0.7.1"
63
 
64
- # 2) Pin protobuf
 
 
 
 
 
 
 
65
  RUN python -m pip install "protobuf>=6.31.1,<8.0.0"
66
- # 3) Install packages that depend on TF (let them bring their TF)
67
- RUN python -m pip install "seqio==0.0.11"
68
 
69
- # 4) NOW force install your desired TensorFlow version
70
- RUN python -m pip install --force-reinstall --no-deps \
71
  "tf-nightly" \
72
  "tensorflow-hub==0.16.1"
73
 
74
- RUN python -c "import tensorflow as tf; print('='*50); print('FINAL 1TensorFlow version:', tf.__version__); print('='*50)"
75
-
76
-
77
- # 5) Install remaining packages
78
  RUN python -m pip install \
79
  tf2jax gin-config librosa resampy soundfile \
80
  fastapi uvicorn[standard] python-multipart pyloudnorm \
81
  google-cloud-storage "numpy==2.1.3" \
82
- huggingface_hub gradio soxr
 
 
 
83
 
84
- RUN python -c "import tensorflow as tf; print('='*50); print('FINAL 2TensorFlow version:', tf.__version__); print('='*50)"
 
 
 
 
 
 
 
85
 
 
 
86
 
87
  RUN python -m pip install cached-property
88
 
 
61
  # 1) Install JAX first
62
  RUN python -m pip install "jax[cuda12]==0.7.1" "jaxlib==0.7.1"
63
 
64
+ # 2) Install seqio dependencies manually (excluding tfds-nightly to avoid protobuf conflict)
65
+ RUN python -m pip install \
66
+ absl-py clu sentencepiece tensorflow-text
67
+
68
+ # 3) Install seqio without dependencies
69
+ RUN python -m pip install --no-deps "seqio==0.0.11"
70
+
71
+ # 4) Install correct protobuf version for tf-nightly
72
  RUN python -m pip install "protobuf>=6.31.1,<8.0.0"
 
 
73
 
74
+ # 5) Install TensorFlow nightly without dependencies (to avoid protobuf downgrade)
75
+ RUN python -m pip install --no-deps \
76
  "tf-nightly" \
77
  "tensorflow-hub==0.16.1"
78
 
79
+ # 6) Install remaining packages (consolidated, no duplicates)
 
 
 
80
  RUN python -m pip install \
81
  tf2jax gin-config librosa resampy soundfile \
82
  fastapi uvicorn[standard] python-multipart pyloudnorm \
83
  google-cloud-storage "numpy==2.1.3" \
84
+ huggingface_hub gradio soxr cached-property
85
+
86
+ # 7) Install airio
87
+ RUN python -m pip install 'git+https://github.com/google/airio.git@main'
88
 
89
+ # 8) Install t5x and flaxformer without dependencies
90
+ RUN python -m pip install --no-deps \
91
+ "t5x @ git+https://github.com/google-research/t5x.git@92c5b46" \
92
+ "flaxformer @ git+https://github.com/google/flaxformer@399ea3a"
93
+
94
+ # 9) Install magenta-rt without dependencies
95
+ RUN python -m pip install --no-deps \
96
+ 'git+https://github.com/magenta/magenta-realtime#egg=magenta_rt[gpu]'
97
 
98
+ # 10) Verify TensorFlow installation
99
+ RUN python -c "import tensorflow as tf; print('='*50); print('TensorFlow version:', tf.__version__); print('='*50)"
100
 
101
  RUN python -m pip install cached-property
102