Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
5dc5866e
Unverified
Commit
5dc5866e
authored
Jul 14, 2025
by
Sai Enduri
Committed by
GitHub
Jul 14, 2025
Browse files
Setup workflow for releasing mi300x and mi350x dockers. (#8035)
parent
64e78bb3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
37 deletions
+25
-37
.github/workflows/release-docker-amd-nightly.yml
.github/workflows/release-docker-amd-nightly.yml
+17
-20
.github/workflows/release-docker-amd.yml
.github/workflows/release-docker-amd.yml
+8
-17
No files found.
.github/workflows/release-docker-amd-nightly.yml
View file @
5dc5866e
...
...
@@ -15,11 +15,11 @@ concurrency:
jobs
:
publish
:
if
:
github.repository == 'sgl-project/sglang'
runs-on
:
amd-docker
runs-on
:
amd-docker
-scale
environment
:
'
prod'
strategy
:
matrix
:
rocm_version
:
[
'
6.3.
0'
]
gpu_arch
:
[
'
gfx942'
,
'
gfx95
0'
]
build_type
:
[
'
all'
,
'
srt'
]
steps
:
-
name
:
Checkout repository
...
...
@@ -29,17 +29,6 @@ jobs:
run
:
|
echo "DATE=$(date +%Y%m%d)" >> $GITHUB_ENV
-
name
:
Free disk space
uses
:
jlumbroso/free-disk-space@main
with
:
tool-cache
:
false
docker-images
:
false
android
:
true
dotnet
:
true
haskell
:
true
large-packages
:
true
swap-storage
:
false
-
name
:
Login to Docker Hub
uses
:
docker/login-action@v2
with
:
...
...
@@ -48,6 +37,19 @@ jobs:
-
name
:
Build and Push
run
:
|
version=$(cat python/sglang/version.py | cut -d'"' -f2)
if [ "${{ matrix.gpu_arch }}" = "gfx942" ]; then
rocm_tag="rocm630-mi30x"
elif [ "${{ matrix.gpu_arch }}" = "gfx950" ]; then
rocm_tag="rocm700-mi35x"
else
echo "Unsupported gfx arch"
exit 1
fi
tag=v${version}-${rocm_tag}
if [ "${{ matrix.build_type }}" = "all" ]; then
tag_suffix=""
elif [ "${{ matrix.build_type }}" = "srt" ]; then
...
...
@@ -57,10 +59,5 @@ jobs:
exit 1
fi
docker build . -f docker/Dockerfile.rocm --build-arg BUILD_TYPE=${{ matrix.build_type }} -t rocm/sgl-dev:${{ env.DATE }}${tag_suffix} --no-cache
docker push rocm/sgl-dev:${{ env.DATE }}${tag_suffix}
-
name
:
"
Remove
docker
image"
run
:
|
sudo rm -rf /var/lib/docker
sudo systemctl restart docker
docker build . -f docker/Dockerfile.rocm --build-arg BUILD_TYPE=${{ matrix.build_type }} --build-arg GPU_ARCH=${{ matrix.gpu_arch }} -t rocm/sgl-dev:${tag}-${{ env.DATE }}${tag_suffix} --no-cache
docker push rocm/sgl-dev:${tag}-${{ env.DATE }}${tag_suffix}
.github/workflows/release-docker-amd.yml
View file @
5dc5866e
...
...
@@ -10,27 +10,16 @@ on:
jobs
:
publish
:
if
:
github.repository == 'sgl-project/sglang'
runs-on
:
amd-docker
runs-on
:
amd-docker
-scale
environment
:
'
prod'
strategy
:
matrix
:
rocm_version
:
[
'
6.3.
0'
]
gpu_arch
:
[
'
gfx942'
,
'
gfx95
0'
]
build_type
:
[
'
all'
,
'
srt'
]
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v4
-
name
:
Free disk space
uses
:
jlumbroso/free-disk-space@main
with
:
tool-cache
:
false
docker-images
:
false
android
:
true
dotnet
:
true
haskell
:
true
large-packages
:
true
swap-storage
:
false
-
name
:
Login to Docker Hub
uses
:
docker/login-action@v2
with
:
...
...
@@ -41,10 +30,12 @@ jobs:
run
:
|
version=$(cat python/sglang/version.py | cut -d'"' -f2)
if [ "${{ matrix.rocm_version }}" = "6.3.0" ]; then
rocm_tag="rocm630"
if [ "${{ matrix.gpu_arch }}" = "gfx942" ]; then
rocm_tag="rocm630-mi30x"
elif [ "${{ matrix.gpu_arch }}" = "gfx950" ]; then
rocm_tag="rocm700-mi35x"
else
echo "Unsupported
ROCm version
"
echo "Unsupported
gfx arch
"
exit 1
fi
...
...
@@ -59,5 +50,5 @@ jobs:
exit 1
fi
docker build . -f docker/Dockerfile.rocm --build-arg BUILD_TYPE=${{ matrix.build_type }} -t lmsysorg/sglang:${tag}${tag_suffix} --no-cache
docker build . -f docker/Dockerfile.rocm --build-arg BUILD_TYPE=${{ matrix.build_type }}
--build-arg GPU_ARCH=${{ matrix.gpu_arch }}
-t lmsysorg/sglang:${tag}${tag_suffix} --no-cache
docker push lmsysorg/sglang:${tag}${tag_suffix}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment