Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply temp. patch to Triton code to resolve conflicting cache dirs in TP case #34

Merged
merged 2 commits into from
May 28, 2024
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
8 changes: 8 additions & 0 deletions Dockerfile.ubi
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,14 @@ RUN --mount=type=cache,target=/root/.cache/pip \
RUN microdnf install -y gcc \
&& microdnf clean all

# patch triton (fix for #720)
COPY triton_patch/cache_fix.patch .
RUN microdnf install -y patch \
&& patch /opt/vllm/lib/python3.11/site-packages/triton/runtime/cache.py cache_fix.patch \
&& microdnf remove -y patch \
&& microdnf clean all \
&& rm cache_fix.patch

ENV HF_HUB_OFFLINE=1 \
PORT=8000 \
GRPC_PORT=8033 \
Expand Down
8 changes: 8 additions & 0 deletions triton_patch/cache_fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
4c4
< import random
---
> import uuid
117c117
< rnd_id = random.randint(0, 1000000)
---
> rnd_id = str(uuid.uuid4())
Loading