Skip to content

Commit

Permalink
Docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jakep-allenai committed Nov 13, 2024
1 parent a091412 commit 867e2c9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ dependencies = [
"requests",
"zstandard",
"aiohttp",
"boto3",
"torch>=2.5.0",
"transformers>=4.46.2",
]
license = {file = "LICENSE"}

Expand Down Expand Up @@ -68,7 +71,8 @@ dev = [
]

inference = [
"git+https://github.com/sgl-project/sglang.git@eff468dd5a3d24646560eb044276585f7a11ac3c#subdirectory=python&egg=sglang[all]"
#"sglang["all"]
#"git+https://github.com/sgl-project/sglang.git@eff468dd5a3d24646560eb044276585f7a11ac3c#subdirectory=python&egg=sglang[all]"
]

train = [
Expand Down
14 changes: 12 additions & 2 deletions scripts/beaker/Dockerfile-inference
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends \
curl \
unzip

RUN apt-get update && apt-get -y install python3.10-venv
RUN rm -rf /var/lib/apt/lists/* \
&& unlink /usr/bin/python3 \
&& ln -s /usr/bin/python3.11 /usr/bin/python3 \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& curl -sS https://bootstrap.pypa.io/get-pip.py | python \
&& pip3 install -U pip

RUN apt-get update && apt-get -y install python3.11-venv

ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh
RUN /install.sh && rm /install.sh
Expand All @@ -25,6 +32,9 @@ COPY pdelfin pdelfin

RUN /root/.local/bin/uv pip install --system --no-cache -e .[inference]

# TODO You can remove this and move it into the pyproject.toml once sglang makes a release > 0.35.0
RUN /root/.local/bin/uv pip install --system git+https://github.com/sgl-project/sglang.git@eff468dd5a3d24646560eb044276585f7a11ac3c#subdirectory=python&egg=sglang[all]


#RUN python3 -m pdelfin.beakerpipeline --help
RUN python3 -m pdelfin.beakerpipeline --help

0 comments on commit 867e2c9

Please sign in to comment.