You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pipelines: incremental-pipeline.py and Dockerfile.pipeline still pull full CUDA torch on CPU-only infra #223
Same root cause as #198, just living in a different file that #199 doesn't touch.
Two spots in docs-agent-mcp/pipelines/ still install sentence-transformers/torch the plain way, which means pip grabs the default CUDA build even though nothing here has a GPU:
incremental-pipeline.py's chunk_and_embed_incremental component runs on the full pytorch/pytorch:...-cuda12.1-cudnn8-runtime base image and loads the model in-process, then falls back to CPU anyway. This is the live one - it actually ships a multi-GB image every time it runs.
Dockerfile.pipeline has the same issue, just not currently built by any workflow.
What's odd is the other three pipelines already got this right kubeflow-pipeline.py's chunk_and_embed runs on plain python:3.11-slim and just calls the shared TEI embedding service over HTTP instead of loading a model locally. code-pipeline.py and issues-pipeline.py do the same. incremental-pipeline.py just never got migrated.
Also worth flagging: #199's fix doesn't actually work. Putting --index-url on the same line as torch in a requirements file is silently ignored by pip I tested it, still pulls the full ~500MB build. It only works as its own line, and then it applies to every package below it, which breaks installing anything not on PyTorch's index. That's a separate problem from this one, but it means #199 shouldn't be merged as a fix for either.
Proposed fix: port chunk_and_embed_incremental onto the same TEI-service pattern the other three pipelines use drops the CUDA image and all the local model deps entirely. For Dockerfile.pipeline, either split the pip install so the CPU index only scopes to torch, or drop the file if incremental-pipeline.py is getting retired anyway.
Activity
Sharkyii commentedon Jul 19, 2026
/assign
vanshika2720 commentedon Oct 14, 2026
@Sharkyii Are u still working on this issue?
Sharkyii commentedon Oct 14, 2026
@vanshika2720 the issue is already solved here - #224
I will close this issue..