Skip to content

Commit 75e28d0

Browse files
authored
[Build][Ray] Fix protobuf version in Dockerfile (#2028)
### What this PR does / why we need it? Fix protobuf version in Dockerfile to resolve `AttributeError: 'str' object has no attribute 'DESCRIPTOR' when packaging message to dict` using protobuf. will remove version specification after ray-project/ray#54910 is merged ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? CI passed with existing test. - vLLM version: v0.10.0 - vLLM main: vllm-project/vllm@0e36abf Signed-off-by: MengqingCao <[email protected]>
1 parent 3386e09 commit 75e28d0

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ RUN export PIP_EXTRA_INDEX_URL=https://mirrors.huaweicloud.com/ascend/repos/pypi
5454
python3 -m pip cache purge
5555

5656
# Install modelscope (for fast download) and ray (for multinode)
57-
RUN python3 -m pip install modelscope ray && \
57+
RUN python3 -m pip install modelscope 'ray>=2.47.1' 'protobuf>3.20.0' && \
5858
python3 -m pip cache purge
5959

6060
CMD ["/bin/bash"]

Dockerfile.310p

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ RUN export PIP_EXTRA_INDEX_URL=https://mirrors.huaweicloud.com/ascend/repos/pypi
5555
python3 -m pip cache purge
5656

5757
# Install modelscope (for fast download) and ray (for multinode)
58-
RUN python3 -m pip install modelscope ray && \
58+
RUN python3 -m pip install modelscope 'ray>=2.47.1' 'protobuf>3.20.0' && \
5959
python3 -m pip cache purge
6060

6161
CMD ["/bin/bash"]

Dockerfile.310p.openEuler

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ RUN export PIP_EXTRA_INDEX_URL=https://mirrors.huaweicloud.com/ascend/repos/pypi
5252
python3 -m pip cache purge
5353

5454
# Install modelscope (for fast download) and ray (for multinode)
55-
RUN python3 -m pip install modelscope ray && \
55+
RUN python3 -m pip install modelscope 'ray>=2.47.1' 'protobuf>3.20.0' && \
5656
python3 -m pip cache purge
5757

5858
CMD ["/bin/bash"]

Dockerfile.a3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ RUN export PIP_EXTRA_INDEX_URL=https://mirrors.huaweicloud.com/ascend/repos/pypi
5454
python3 -m pip cache purge
5555

5656
# Install modelscope (for fast download) and ray (for multinode)
57-
RUN python3 -m pip install modelscope ray && \
57+
RUN python3 -m pip install modelscope 'ray>=2.47.1' 'protobuf>3.20.0' && \
5858
python3 -m pip cache purge
5959

6060
CMD ["/bin/bash"]

Dockerfile.a3.openEuler

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ RUN export PIP_EXTRA_INDEX_URL=https://mirrors.huaweicloud.com/ascend/repos/pypi
5151
python3 -m pip cache purge
5252

5353
# Install modelscope (for fast download) and ray (for multinode)
54-
RUN python3 -m pip install modelscope ray && \
54+
RUN python3 -m pip install modelscope 'ray>=2.47.1' 'protobuf>3.20.0' && \
5555
python3 -m pip cache purge
5656

5757
CMD ["/bin/bash"]

Dockerfile.openEuler

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ RUN export PIP_EXTRA_INDEX_URL=https://mirrors.huaweicloud.com/ascend/repos/pypi
5151
python3 -m pip cache purge
5252

5353
# Install modelscope (for fast download) and ray (for multinode)
54-
RUN python3 -m pip install modelscope ray && \
54+
RUN python3 -m pip install modelscope 'ray>=2.47.1' 'protobuf>3.20.0' && \
5555
python3 -m pip cache purge
5656

5757
CMD ["/bin/bash"]

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ pytest-cov
1414
regex
1515
sentence_transformers
1616
ray>=2.47.1
17-
protobuf==4.25.6
17+
protobuf>3.20.0
1818
librosa
1919
soundfile

0 commit comments

Comments
 (0)