Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 38 additions & 1 deletion Dockerfile.cuda
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,42 @@ ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
RUN apt-get update && apt-get install -y --no-install-recommends --force-yes \
build-essential \
autoconf \
automake \
libtool \
pkg-config \
ca-certificates \
curl \
sudo \
git \
ninja-build \
libnuma-dev \
libnl-3-dev \
libnl-route-3-dev \
libibverbs-dev \
librdmacm-dev \
&& apt-get clean autoclean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ARG UCX_VERSION=1.19.1
RUN git clone --depth 1 --branch v${UCX_VERSION} https://github.com/openucx/ucx.git /tmp/ucx \
&& cd /tmp/ucx \
&& ./autogen.sh \
&& ./configure \
--prefix=/opt/ucx \
--enable-shared \
--disable-static \
--disable-doxygen-doc \
--enable-optimizations \
--enable-cma \
--enable-devel-headers \
--enable-mt \
--with-verbs \
--with-cuda=/usr/local/cuda \
--with-ze=no \
&& make -j"$(nproc)" \
&& make install \
&& rm -rf /tmp/ucx

# Download the latest installer
ADD https://astral.sh/uv/install.sh /uv-installer.sh

Expand All @@ -49,7 +79,7 @@ COPY examples /app/examples
COPY benchmarks/scripts /app/benchmarks/scripts

RUN --mount=type=cache,target=/app/.cache/uv \
uv sync --extra flash-attn --extra flash-attn-3 --extra flash-attn-cute --extra envs --extra gpt-oss --group mamba-ssm --locked --no-dev
uv sync --extra flash-attn --extra flash-attn-3 --extra flash-attn-cute --extra envs --extra gpt-oss --extra modelexpress --group mamba-ssm --locked --no-dev

# arm64: build flash-attn from source, fix namespace conflicts, apply workarounds
ARG TARGETARCH
Expand All @@ -74,8 +104,12 @@ RUN apt-get update && apt-get install -y \
net-tools \
curl \
vim \
libnuma1 \
libnl-3-200 \
libnl-route-3-200 \
libibverbs1 \
ibverbs-providers \
librdmacm1 \
&& apt-get clean autoclean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

Expand All @@ -96,6 +130,7 @@ ENV PATH="/usr/local/bin:$PATH"
WORKDIR /app
# Copy the application from the builder
COPY --from=builder --chown=appuser:appuser /app /app
COPY --from=builder /opt/ucx /opt/ucx

# Copy and set up entrypoint script
COPY --chown=appuser:appuser scripts/docker-entrypoint.sh /app/docker-entrypoint.sh
Expand All @@ -107,6 +142,8 @@ RUN rm /app/.venv/bin/python3.12 && ln -s /usr/local/bin/python /app/.venv/bin/p

# Place executables in the environment at the front of the path
ENV PATH="/app/.venv/bin:$PATH"
ENV UCX_HOME=/opt/ucx
ENV LD_LIBRARY_PATH="/opt/ucx/lib:/opt/ucx/lib/ucx${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"

# HuggingFace Hub timeouts (defaults are 10s which causes issues on slow networks)
ENV HF_HUB_ETAG_TIMEOUT=500
Expand Down
19 changes: 19 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ disagg = [
gpt-oss = [
"kernels",
]
modelexpress = [
"modelexpress==0.3.0",
]
quack = [
"quack-kernels>=0.4.1",
]
Expand Down Expand Up @@ -178,6 +181,22 @@ override-dependencies = [
"openenv-core",
]

# ModelExpress 0.3.0 publishes protobuf<6 metadata, but its generated proto is
# compatible with protobuf 6. prime-sandboxes requires protobuf>=6.31.1; keep
# this capped to the validated protobuf major.
[[tool.uv.dependency-metadata]]
name = "modelexpress"
version = "0.3.0"
requires-dist = [
"grpcio>=1.66.2",
"huggingface_hub>=0.20.0",
"nixl[cu12]",
"numpy>=1.24.0",
"protobuf>=5.27.0,<7.0.0",
"pydantic>=2.0.0",
"torch>=2.6.0",
]

[tool.uv.exclude-newer-package]
# we want latest vllm, remove next patch
vllm = false
Expand Down
34 changes: 33 additions & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading