Skip to content

Commit bca7ab9

Browse files
authored
update dependencies and fix installation (#202)
1 parent c69c95e commit bca7ab9

5 files changed

Lines changed: 35 additions & 30 deletions

File tree

requirements.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
--extra-index-url https://download.pytorch.org/whl/cpu
2-
jax==0.5.3
2+
jax>=0.6.2
33
jaxlib>=0.4.30
4-
grain-nightly==0.0.10
5-
google-cloud-storage==2.17.0
4+
grain
5+
google-cloud-storage>=2.17.0
66
absl-py
77
datasets
88
flax>=0.10.2
99
optax>=0.2.3
10-
torch==2.6.0
10+
torch>=2.6.0
1111
torchvision>=0.20.1
1212
ftfy
1313
tensorboard>=2.17.0
14-
tensorboardx==2.6.2.2
15-
tensorboard-plugin-profile==2.15.2
14+
tensorboardx>=2.6.2.2
15+
tensorboard-plugin-profile>=2.15.2
1616
Jinja2
1717
scikit-image
1818
parameterized
@@ -26,10 +26,11 @@ ruff>=0.1.5,<=0.2
2626
opencv-python-headless==4.10.0.84
2727
orbax-checkpoint==0.10.3
2828
tokenizers==0.21.0
29-
huggingface_hub==0.30.2
29+
huggingface_hub>=0.30.2
3030
transformers==4.48.1
3131
einops==0.8.0
3232
sentencepiece
3333
aqtp
3434
imageio==2.37.0
35-
imageio-ffmpeg==0.6.0
35+
imageio-ffmpeg==0.6.0
36+
hf_transfer>=0.1.9

requirements_with_jax_ai_image.txt

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,38 @@
11
# Requirements for Building the MaxDifussion Docker Image
22
# These requirements are additional to the dependencies present in the JAX AI base image.
3+
--extra-index-url https://download.pytorch.org/whl/cpu
4+
jax>=0.6.2
5+
jaxlib>=0.4.30
6+
grain
7+
google-cloud-storage>=2.17.0
38
absl-py
49
datasets
5-
einops==0.8.0
610
flax>=0.10.2
11+
optax>=0.2.3
12+
torch>=2.6.0
13+
torchvision>=0.20.1
714
ftfy
8-
git+https://github.com/mlperf/logging.git
9-
google-cloud-storage==2.17.0
10-
grain-nightly==0.0.10
11-
huggingface_hub==0.30.2
12-
jax>=0.4.30
13-
jaxlib>=0.4.30
15+
tensorboard>=2.17.0
16+
tensorboardx>=2.6.2.2
17+
tensorboard-plugin-profile>=2.15.2
1418
Jinja2
15-
opencv-python-headless==4.10.0.84
16-
optax>=0.2.3
17-
orbax-checkpoint==0.10.3
19+
scikit-image
1820
parameterized
1921
Pillow
20-
pyink
2122
pylint
23+
pyink
2224
pytest==8.2.2
23-
ruff>=0.1.5,<=0.2
24-
scikit-image
25-
sentencepiece
26-
tensorboard>=2.17.0
27-
tensorboard-plugin-profile==2.15.2
28-
tensorboardx==2.6.2.2
2925
tensorflow>=2.17.0
3026
tensorflow-datasets>=4.9.6
27+
ruff>=0.1.5,<=0.2
28+
opencv-python-headless==4.10.0.84
29+
orbax-checkpoint==0.10.3
3130
tokenizers==0.21.0
32-
torch==2.5.1
33-
torchvision==0.20.1
31+
huggingface_hub>=0.30.2
3432
transformers==4.48.1
33+
einops==0.8.0
34+
sentencepiece
35+
aqtp
3536
imageio==2.37.0
36-
imageio-ffmpeg==0.6.0
37+
imageio-ffmpeg==0.6.0
38+
hf_transfer>=0.1.9

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"filelock",
9898
"flax>=0.4.1",
9999
"hf-doc-builder>=0.3.0",
100-
"huggingface-hub==0.30.0",
100+
"huggingface-hub>=0.30.2",
101101
"requests-mock==1.10.0",
102102
"importlib_metadata",
103103
"invisible-watermark>=0.2.0",

setup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ set -e
2424
export DEBIAN_FRONTEND=noninteractive
2525

2626
(sudo bash || bash) <<'EOF'
27+
mkdir -p /etc/needrestart/conf.d
28+
echo '$nrconf{restart} = "a";' > /etc/needrestart/conf.d/99-noninteractive.conf
2729
apt update && \
2830
apt install -y numactl lsb-release gnupg curl net-tools iproute2 procps lsof git ethtool && \
2931
export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s`

src/maxdiffusion/pyconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def wan_init(raw_keys):
132132
num_inference_steps = raw_keys["num_inference_steps"]
133133
if num_inference_steps > 10:
134134
max_logging.log(
135-
f"Warning: Try setting num_inference_steps to less than 8 steps when using CausVid, currently you are setting {num_inference_steps} steps."
135+
f"Warning: Try setting num_inference_steps to less than 10 steps when using CausVid, currently you are setting {num_inference_steps} steps."
136136
)
137137
else:
138138
raise ValueError(f"{transformer_pretrained_model_name_or_path} transformer model is not supported for Wan 2.1")

0 commit comments

Comments
 (0)