Skip to content

Commit 9143792

Browse files
dvystrcilclaude
andcommitted
fix: build tokenizers==0.13.4 wheel specifically
transformers==4.30.2 pins tokenizers<0.14; the latest 0.13.4 has no cp312 wheel on PyPI. Build it in the wheel-builder stage so the init container finds it via PIP_FIND_LINKS without needing Rust at runtime. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 08dad3a commit 9143792

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ RUN apt-get update && \
2626
sh -s -- -y --default-toolchain stable --no-modify-path && \
2727
chmod -R a+rx /usr/local/rustup /usr/local/cargo
2828

29-
# Build tokenizers wheel for the Python version in the base image.
30-
# --no-deps: we only want the tokenizers wheel, not its deps.
31-
# Result goes to /wheels/ and is copied into the final image.
32-
RUN pip wheel --no-deps tokenizers -w /wheels/
29+
# Build tokenizers==0.13.4 wheel for Python 3.12.
30+
# transformers==4.30.2 requires tokenizers<0.14; PyPI has no cp312 wheel
31+
# for 0.13.4 (released before Python 3.12). --no-deps: only this wheel.
32+
RUN pip wheel --no-deps "tokenizers==0.13.4" -w /wheels/
3333

3434
# ── Stage 3: final runtime (no Rust) ─────────────────────────────────────────
3535
FROM ${BASE_IMAGE}

0 commit comments

Comments
 (0)