ci: refactor CUDA dependency install script (#21017)
This commit is contained in:
@@ -10,7 +10,6 @@ from utils import compare_versions, get_repo_root, normalize_version, validate_v
|
||||
FILES_TO_UPDATE = [
|
||||
Path("python/pyproject.toml"),
|
||||
Path("docker/Dockerfile"),
|
||||
Path("scripts/ci/cuda/ci_install_dependency.sh"),
|
||||
Path("python/sglang/srt/entrypoints/engine.py"),
|
||||
Path("python/sglang/srt/utils/common.py"),
|
||||
]
|
||||
@@ -52,12 +51,6 @@ def replace_flashinfer_version(
|
||||
rf"\g<1>{new_version}",
|
||||
new_content,
|
||||
)
|
||||
elif name == "ci_install_dependency.sh":
|
||||
new_content = re.sub(
|
||||
rf"(FLASHINFER_VERSION=){re.escape(old_version)}",
|
||||
rf"\g<1>{new_version}",
|
||||
new_content,
|
||||
)
|
||||
elif name == "engine.py":
|
||||
new_content = re.sub(
|
||||
r'(assert_pkg_version\(\s*"flashinfer_python",\s*)"'
|
||||
|
||||
Reference in New Issue
Block a user