adityas129 commited on
Commit
70b3c7f
·
verified ·
1 Parent(s): c4c2f0f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 CUDA pins
61
  RUN python -m pip install "jax[cuda12]==0.7.1" "jaxlib==0.7.1"
62
 
63
- # 2) Lock seqio early to avoid backtracking madness
64
  RUN python -m pip install "seqio==0.0.11"
65
 
66
- # 3) Install Magenta RT *without* deps so we control pins
67
- RUN python -m pip install --no-deps 'git+https://github.com/magenta/magenta-realtime#egg=magenta_rt[gpu]'
68
-
69
- # 4) TF nightlies (MATCH DATES!)
70
- RUN python -m pip install \
71
- "tf-nightly" \
72
- "tensorflow-text-nightly" \
73
- "tf-hub-nightly" \
74
- "tf2jax"
75
 
76
- RUN python -m pip install \
77
- "tf2jax"
 
78
 
79
- # 6) The rest of MRT deps + API runtime deps
80
  RUN python -m pip install \
81
- gin-config librosa resampy soundfile \
82
- google-auth google-auth-oauthlib google-auth-httplib2 \
83
- google-api-core googleapis-common-protos google-resumable-media \
84
- google-cloud-storage requests tqdm typing-extensions numpy==2.1.3 \
85
- fastapi uvicorn[standard] python-multipart pyloudnorm
86
 
87
- # 7) Exact commits for T5X/Flaxformer as in pyproject
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