Update Dockerfile
Browse files- Dockerfile +17 -20
Dockerfile
CHANGED
|
@@ -57,38 +57,35 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 57 |
RUN ln -sf /usr/bin/python3.11 /usr/bin/python && python -m pip install --upgrade pip
|
| 58 |
|
| 59 |
# --- Python deps (pin order matters!) ---
|
| 60 |
-
# 1) JAX
|
| 61 |
RUN python -m pip install "jax[cuda12]==0.7.1" "jaxlib==0.7.1"
|
| 62 |
|
| 63 |
-
# 2)
|
| 64 |
RUN python -m pip install "seqio==0.0.11"
|
| 65 |
|
| 66 |
-
# 3)
|
| 67 |
-
RUN python -m pip install --no-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
"tf-nightly" \
|
| 72 |
-
"tensorflow-text-nightly" \
|
| 73 |
-
"tf-hub-nightly" \
|
| 74 |
-
"tf2jax"
|
| 75 |
|
| 76 |
-
|
| 77 |
-
|
|
|
|
| 78 |
|
| 79 |
-
#
|
| 80 |
RUN python -m pip install \
|
| 81 |
-
gin-config librosa resampy soundfile \
|
| 82 |
-
google-auth google-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
fastapi uvicorn[standard] python-multipart pyloudnorm
|
| 86 |
|
| 87 |
-
#
|
| 88 |
RUN python -m pip install \
|
| 89 |
"t5x @ git+https://github.com/google-research/t5x.git@92c5b46" \
|
| 90 |
"flaxformer @ git+https://github.com/google/flaxformer@399ea3a"
|
| 91 |
|
|
|
|
| 92 |
# ---- FINAL: enforce TF nightlies and clean any stable TF ----
|
| 93 |
RUN python - <<'PY'
|
| 94 |
import sys, sysconfig, glob, os, shutil
|
|
|
|
| 57 |
RUN ln -sf /usr/bin/python3.11 /usr/bin/python && python -m pip install --upgrade pip
|
| 58 |
|
| 59 |
# --- Python deps (pin order matters!) ---
|
| 60 |
+
# 1) JAX
|
| 61 |
RUN python -m pip install "jax[cuda12]==0.7.1" "jaxlib==0.7.1"
|
| 62 |
|
| 63 |
+
# 2) seqio early
|
| 64 |
RUN python -m pip install "seqio==0.0.11"
|
| 65 |
|
| 66 |
+
# 3) TF nightlies - MATCHING DATES!
|
| 67 |
+
RUN python -m pip install --no-cache-dir \
|
| 68 |
+
"tf-nightly==2.20.0.dev20250619" \
|
| 69 |
+
"tensorflow-text-nightly==2.20.0.dev20250619" \
|
| 70 |
+
"tf-hub-nightly"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
|
| 72 |
+
# 4) magenta-rt without deps
|
| 73 |
+
RUN python -m pip install --no-deps \
|
| 74 |
+
'git+https://github.com/magenta/magenta-realtime#egg=magenta_rt[gpu]'
|
| 75 |
|
| 76 |
+
# 5) tf2jax + other deps
|
| 77 |
RUN python -m pip install \
|
| 78 |
+
tf2jax gin-config librosa resampy soundfile \
|
| 79 |
+
google-auth google-cloud-storage numpy==2.1.3 \
|
| 80 |
+
fastapi uvicorn[standard] python-multipart pyloudnorm \
|
| 81 |
+
huggingface_hub gradio soxr
|
|
|
|
| 82 |
|
| 83 |
+
# 6) t5x/flaxformer last
|
| 84 |
RUN python -m pip install \
|
| 85 |
"t5x @ git+https://github.com/google-research/t5x.git@92c5b46" \
|
| 86 |
"flaxformer @ git+https://github.com/google/flaxformer@399ea3a"
|
| 87 |
|
| 88 |
+
|
| 89 |
# ---- FINAL: enforce TF nightlies and clean any stable TF ----
|
| 90 |
RUN python - <<'PY'
|
| 91 |
import sys, sysconfig, glob, os, shutil
|