@@ -35,22 +35,62 @@ ARG ARCH_ALT=x86_64
3535
3636WORKDIR /sgl-workspace
3737
38+ # Install UCX dependencies
39+ RUN apt-get update -y && \
40+ apt-get install -y --no-install-recommends \
41+ --reinstall libibverbs-dev rdma-core ibverbs-utils libibumad-dev \
42+ libnuma-dev librdmacm-dev ibverbs-providers \
43+ autoconf libtool
44+
45+ # Build UCX from source
46+ ARG NIXL_UCX_REF=v1.19.x
47+ RUN rm -rf /opt/hpcx/ucx && \
48+ rm -rf /usr/local/ucx && \
49+ cd /usr/local/src && \
50+ git clone https://github.com/openucx/ucx.git && \
51+ cd ucx && \
52+ git checkout $NIXL_UCX_REF && \
53+ ./autogen.sh && ./configure \
54+ --prefix=/usr/local/ucx \
55+ --enable-shared \
56+ --disable-static \
57+ --disable-doxygen-doc \
58+ --enable-optimizations \
59+ --enable-cma \
60+ --enable-devel-headers \
61+ --with-cuda=/usr/local/cuda \
62+ --with-verbs \
63+ --with-efa \
64+ --with-dm \
65+ --with-gdrcopy=/usr/local \
66+ --enable-mt && \
67+ make -j && \
68+ make -j install-strip && \
69+ ldconfig
70+
71+ ENV LD_LIBRARY_PATH=/usr/lib:/usr/local/ucx/lib:$LD_LIBRARY_PATH
72+
3873# Pinning to NIXL 0.2.1 right now
3974# TODO: investigate pip install failure with 0.3.0 release
4075ARG NIXL_COMMIT="5e4c179ee850d482a83cb2a211e0947e46281060"
41- RUN git clone https://github.com/ai-dynamo/nixl.git && cd nixl && git checkout ${NIXL_COMMIT} &&pip install --break-system-packages . --config-settings=setup-args="-Ducx_path=/opt/hpcx /ucx"
76+ RUN git clone https://github.com/ai-dynamo/nixl.git && cd nixl && git checkout ${NIXL_COMMIT} && pip install --break-system-packages . --config-settings=setup-args="-Ducx_path=/usr/local /ucx"
4277
4378WORKDIR /sgl-workspace
4479
4580RUN pip uninstall --break-system-packages -y sglang
4681RUN rm -rf sglang
47- # 0.4.7
48- RUN pip install --break-system-packages "sglang==0.4.7"
82+ # 0.4.8 has a bug with CUDA graphs and decode worker
83+ # https://github.com/sgl-project/sglang/issues/7511
84+ RUN pip install --break-system-packages "sglang==0.4.7.post1"
85+
86+ # Allow forceful shutdown of inflight requests
87+ ENV SGL_FORCE_SHUTDOWN=1
4988
5089WORKDIR /sgl-workspace
5190# https://github.com/ai-dynamo/dynamo/pull/1510
5291ARG DYNAMO_COMMIT="382e3aedc421b3b3abc338062b332b54b5aa8529"
53- RUN git clone https://github.com/ai-dynamo/dynamo.git && cd dynamo && git checkout ${DYNAMO_COMMIT}
92+ ARG DYNAMO_BRANCH="ishan/cmpl-token-id"
93+ RUN git clone https://github.com/ai-dynamo/dynamo.git && cd dynamo && git checkout ${DYNAMO_BRANCH}
5494
5595# install dynamo in editable mode
5696WORKDIR /sgl-workspace/dynamo
0 commit comments