From 8fc66d1a623561d9c5445f8f1f7bec1050e6710d Mon Sep 17 00:00:00 2001 From: Baizhou Zhang Date: Fri, 7 Aug 2026 14:49:26 -0700 Subject: [PATCH] docker: pin Kimi images to SGLang commit (#34030) --- docker/kimi_k3/kimi_k3_cu12.Dockerfile | 4 +++- docker/kimi_k3/kimi_k3_cu13.Dockerfile | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docker/kimi_k3/kimi_k3_cu12.Dockerfile b/docker/kimi_k3/kimi_k3_cu12.Dockerfile index 8b6d9d744..65e8ff864 100644 --- a/docker/kimi_k3/kimi_k3_cu12.Dockerfile +++ b/docker/kimi_k3/kimi_k3_cu12.Dockerfile @@ -61,10 +61,12 @@ RUN set -eu; \ # --- 1. Kimi-K3 SGLang code (replaces the base's stock sglang, editable) --- # Keep the installed extension modules, but discard Rust and pip build # artifacts that are not used at runtime. +ARG SGLANG_COMMIT="25035bff8d34f3fcce2c1a2a5b1fe610225e84ed" RUN rm -rf /sgl-workspace/sglang && \ - git clone --branch main \ + git clone --no-checkout \ https://github.com/sgl-project/sglang.git /sgl-workspace/sglang && \ cd /sgl-workspace/sglang && \ + git checkout --detach "${SGLANG_COMMIT}" && \ rm -rf .git && \ test ! -e .git && \ pip install -e python --no-deps && \ diff --git a/docker/kimi_k3/kimi_k3_cu13.Dockerfile b/docker/kimi_k3/kimi_k3_cu13.Dockerfile index 7f5a5d161..896dace3d 100644 --- a/docker/kimi_k3/kimi_k3_cu13.Dockerfile +++ b/docker/kimi_k3/kimi_k3_cu13.Dockerfile @@ -52,10 +52,12 @@ ARG TORCH_CUDA_ARCH_LIST="9.0;10.0a;10.3a" # --- 1. Kimi-K3 SGLang code (replaces the base's stock sglang, editable) --- # Keep the installed extension modules, but discard Rust and pip build # artifacts that are not used at runtime. +ARG SGLANG_COMMIT="25035bff8d34f3fcce2c1a2a5b1fe610225e84ed" RUN rm -rf /sgl-workspace/sglang && \ - git clone --branch main \ + git clone --no-checkout \ https://github.com/sgl-project/sglang.git /sgl-workspace/sglang && \ cd /sgl-workspace/sglang && \ + git checkout --detach "${SGLANG_COMMIT}" && \ rm -rf .git && \ test ! -e .git && \ pip install -e python --no-deps && \