Skip to content

Conversation

@vickytsang
Copy link
Contributor

What does this PR do?

Parameterize Dockerfile.rocm

Test

DOCKER_BUILDKIT=1 docker build --no-cache -f docker/Dockerfile.rocm7 --build-arg VERL_BRANCH=v0.6.x -t verl-0.6.x_rocm7.0 .

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request successfully parameterizes the Dockerfile.rocm7 for the base image and the verl dependency, which is a good improvement for maintainability. The update of the Ray environment variable for ROCm is also a correct and necessary change. I have one suggestion to improve the efficiency of the git clone command to optimize the Docker build process.

Comment on lines +138 to 141
RUN git clone ${VERL_REPO} && \
cd verl && \
git checkout ${VERL_BRANCH} && \
pip install -e .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The current git clone command downloads the entire history of the repository before checking out the specified branch. This is inefficient for Docker builds as it increases build time and layer size. A shallow clone of just the required branch would be more efficient.

RUN git clone --depth 1 --branch ${VERL_BRANCH} ${VERL_REPO} verl && \
    cd verl && \
    pip install -e .

Copy link
Collaborator

@yushengsu-thu yushengsu-thu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vickytsang In this version vllm, it uses GLoo backend, right?

@vermouth1992 vermouth1992 changed the title update Dockerfile.rocm7 [docker] feat: update Dockerfile.rocm7 Oct 16, 2025
@vermouth1992 vermouth1992 merged commit e81e7db into volcengine:main Oct 16, 2025
3 of 4 checks passed
masoudhashemi pushed a commit to masoudhashemi/verl that referenced this pull request Oct 19, 2025
### What does this PR do?

Parameterize Dockerfile.rocm

### Test

DOCKER_BUILDKIT=1 docker build --no-cache -f docker/Dockerfile.rocm7
--build-arg VERL_BRANCH=v0.6.x -t verl-0.6.x_rocm7.0 .
wangboxiong320 pushed a commit to wangboxiong320/verl that referenced this pull request Nov 1, 2025
### What does this PR do?

Parameterize Dockerfile.rocm

### Test

DOCKER_BUILDKIT=1 docker build --no-cache -f docker/Dockerfile.rocm7
--build-arg VERL_BRANCH=v0.6.x -t verl-0.6.x_rocm7.0 .
NenoL2001 pushed a commit to NenoL2001/verl that referenced this pull request Nov 3, 2025
### What does this PR do?

Parameterize Dockerfile.rocm

### Test

DOCKER_BUILDKIT=1 docker build --no-cache -f docker/Dockerfile.rocm7
--build-arg VERL_BRANCH=v0.6.x -t verl-0.6.x_rocm7.0 .
AlexJJ009 pushed a commit to AlexJJ009/verl that referenced this pull request Nov 5, 2025
### What does this PR do?

Parameterize Dockerfile.rocm

### Test

DOCKER_BUILDKIT=1 docker build --no-cache -f docker/Dockerfile.rocm7
--build-arg VERL_BRANCH=v0.6.x -t verl-0.6.x_rocm7.0 .
chenjiaoAngel added a commit to chenjiaoAngel/verl that referenced this pull request Nov 14, 2025
### What does this PR do?

Parameterize Dockerfile.rocm

### Test

DOCKER_BUILDKIT=1 docker build --no-cache -f docker/Dockerfile.rocm7
--build-arg VERL_BRANCH=v0.6.x -t verl-0.6.x_rocm7.0 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants