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
4f2e1490
Unverified
Commit
4f2e1490
authored
Aug 06, 2025
by
michael-amd
Committed by
GitHub
Aug 06, 2025
Browse files
[AMD] Pull latest SGLang version for AMD CI (#8787)
parent
3fa3c6cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
scripts/amd_ci_start_container.sh
scripts/amd_ci_start_container.sh
+28
-2
No files found.
scripts/amd_ci_start_container.sh
View file @
4f2e1490
#!/bin/bash
#!/bin/bash
set
-euo
pipefail
set
-euo
pipefail
# Get version from SGLang version.py file
FALLBACK_SGLANG_VERSION
=
"v0.4.10.post2"
SGLANG_VERSION_FILE
=
"
$(
dirname
"
$0
"
)
/../python/sglang/version.py"
if
[
-f
"
$SGLANG_VERSION_FILE
"
]
;
then
SGLANG_VERSION
=
$(
python3
-c
'
import re, sys
with open(sys.argv[1], "r") as f:
content = f.read()
match = re.search(r"__version__\s*=\s*[\"'
"'"
'](.*?)[\"'
"'"
']", content)
if match:
print("v" + match.group(1))
'
"
$SGLANG_VERSION_FILE
"
)
if
[
-z
"
$SGLANG_VERSION
"
]
;
then
SGLANG_VERSION
=
"
$FALLBACK_SGLANG_VERSION
"
echo
"Warning: Could not parse version from
$SGLANG_VERSION_FILE
, using fallback version:
$SGLANG_VERSION
"
>
&2
fi
else
# Fallback version if file is not found
SGLANG_VERSION
=
"
$FALLBACK_SGLANG_VERSION
"
echo
"Warning: version.py not found, using fallback version:
$SGLANG_VERSION
"
>
&2
fi
echo
"Using SGLang version:
$SGLANG_VERSION
"
# Default base tags (can be overridden by command line arguments)
# Default base tags (can be overridden by command line arguments)
DEFAULT_MI30X_BASE_TAG
=
"
v0.4.9.post2
-rocm630-mi30x"
DEFAULT_MI30X_BASE_TAG
=
"
${
SGLANG_VERSION
}
-rocm630-mi30x"
DEFAULT_MI35X_BASE_TAG
=
"
v0.4.9.post2
-rocm700-mi35x"
DEFAULT_MI35X_BASE_TAG
=
"
${
SGLANG_VERSION
}
-rocm700-mi35x"
# Parse command line arguments
# Parse command line arguments
MI30X_BASE_TAG
=
"
$DEFAULT_MI30X_BASE_TAG
"
MI30X_BASE_TAG
=
"
$DEFAULT_MI30X_BASE_TAG
"
...
...
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