Repository navigation
Stanza service: CPU-only torch, pinned dependencies - #786
Merged
Merged
Conversation
The Stanza image installed PyPI's default torch, which brings ~2.5GB of CUDA libraries (nvidia-cudnn, cublas, nccl, ...). The server has no GPU, so they never load; they only made the image's main layer 3.09GB and most of a 3-minute rebuild. Install torch from PyTorch's CPU index. Also pin what the Sep 2026 rebuild installed (torch 2.14, numpy 2.5, protobuf 7, gunicorn 26, flask 3.1, psutil 7.2): unpinned, each rebuild could silently pick up new majors. Resolved for manylinux x86_64 / cp312 with pip --dry-run: 27 packages instead of 46, none CUDA. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
ArchLens - No architecturally relevant changes to the existing views |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tonight's Stanza rebuild installed PyPI's default torch, which brings about 2.5 GB of CUDA libraries (nvidia-cudnn, cublas, nccl, cusparse, ...). The server has no GPU, so they never load. They only made the image's main layer 3.09 GB and took up most of a 3-minute build.
torch==2.14.0+cpu, the same version as tonight's build without CUDA.Checked without building (no Docker here):
pip install --dry-run --platform manylinux_2_28_x86_64 --python-version 3.12 --only-binary=:all:resolves to 27 packages instead of 46, with no nvidia, CUDA or triton packages.Runtime: tokenization speed should be unchanged, since both builds run the same CPU code. Container start and image builds get faster; memory may drop slightly.
Takes effect on the next Stanza rebuild. Do it at a quiet moment, because a Stanza restart briefly breaks uncached tokenization. Recreate
stanza_crawlwhen nocrawler_*container is running:After the restart,
/healthshould reportpipelines_loaded: 30.🤖 Generated with Claude Code