Skip to content

update triton version for sglang-atom docker#698

Open
zhuyuhua-v wants to merge 4 commits intomainfrom
yuhua/sgl-docker-triton
Open

update triton version for sglang-atom docker#698
zhuyuhua-v wants to merge 4 commits intomainfrom
yuhua/sgl-docker-triton

Conversation

@zhuyuhua-v
Copy link
Copy Markdown
Collaborator

Motivation

update triton version for sglang-atom docker

Technical Details

Test Plan

Test Result

Submission Checklist

zhuyuhua-v added 2 commits May 6, 2026 08:52
Signed-off-by: zhuyuhua-v <yuhzhu@amd.com>
Signed-off-by: zhuyuhua-v <yuhzhu@amd.com>
@zhuyuhua-v zhuyuhua-v force-pushed the yuhua/sgl-docker-triton branch from 14c6754 to b523016 Compare May 6, 2026 09:06
@zhuyuhua-v zhuyuhua-v marked this pull request as ready for review May 6, 2026 12:21
Copilot AI review requested due to automatic review settings May 6, 2026 12:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR modifies the atom_sglang Docker image build to avoid SGLang dependency installation perturbing the Triton installation in the ATOM base image, by backing up the base Triton and restoring it after installs.

Changes:

  • Removed the explicit triton==3.6.0 install override for the SGLang image.
  • Added a “backup base Triton” step before SGLang dependency installation.
  • Added a “restore base Triton” step after SGLang dependency installation (with import-version verification).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docker/Dockerfile
Comment on lines +179 to +181
# Preserve the exact Triton that comes with the ATOM base image. SGLang installs
# can perturb Triton metadata, so restore this copy after dependency installs.
RUN echo "========== [SGLANG-ATOM 0/6] Back up base image triton ==========" && \
Comment thread docker/Dockerfile
Comment on lines +197 to +202
echo "ERROR: Expected at least one Triton dist-info directory in the ATOM base image." && \
ls -d /opt/venv/lib/python3.12/site-packages/*triton*.dist-info || true && \
exit 1; \
fi && \
echo "Base image triton backed up: import_version=${BASE_TRITON_VERSION}, metadata_count=${METADATA_COUNT}" && \
ls -d /tmp/sglang-triton-base-backup/*.dist-info
Comment thread docker/Dockerfile
ENV PYTHONPATH="/app/sglang/python:/app/ATOM:${PYTHONPATH}"

RUN echo "========== [SGLANG-ATOM 0/6] Check Aiter/FlyDSL versions before SGLang build ==========" && \
RUN echo "========== [SGLANG-ATOM] Check Aiter/FlyDSL versions before SGLang build ==========" && \
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.

2 participants