Skip to content

pipelines: incremental-pipeline.py and Dockerfile.pipeline still pull full CUDA torch on CPU-only infra #223

Closed

Description

@Sharkyii

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:

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

  1. Sharkyii commented on Jul 19, 2026

    @Sharkyii
    ContributorAuthor

    /assign

  2. vanshika2720 commented on Oct 14, 2026

    @vanshika2720

    @Sharkyii Are u still working on this issue?

  3. Sharkyii commented on Oct 14, 2026

    @Sharkyii
    ContributorAuthor

    @vanshika2720 the issue is already solved here - #224
    I will close this issue..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions