Skip to content

Conversation

snadampal
Copy link

@snadampal snadampal commented Jun 27, 2025

What does the PR do?

The server docker image built for cpu only platform and with pytorch backend was failing to run due to the missing cuda library stubs. This commit is adding those libraries to the build script.

Checklist

  • [] I have read the Contribution guidelines and signed the Contributor License
    Agreement
  • PR title reflects the change and is of format <commit_type>: <Title>
  • Changes are described in the pull request.
  • Related issues are referenced.
  • Populated github labels field
  • Added test plan and verified test passes.
  • Verified that the PR passes existing CI.
  • I ran pre-commit locally (pre-commit install, pre-commit run --all)
  • Verified copyright is correct on all changed files.
  • Added succinct git squash message before merging ref.
  • All template sections are filled out.
  • Optional: Additional screenshots for behavior/output changes with before/after.

Commit Type:

Check the conventional commit type
box here and add the label to the github PR.

  • build
  • ci
  • docs
  • feat
  • fix
  • perf
  • refactor
  • revert
  • style
  • test

Related PRs:

None

Where should the reviewer start?

build.py

Test plan:

  1. build cpu only container with pytorch backend using the following command
    python3 build.py --enable-logging --endpoint http --backend pytorch --image=gpu-base,nvcr.io/nvidia/tritonserver:25.06-py3-min

  2. run the container to serve any pytorch model
    docker run --rm -p8000:8000 -p8001:8001 -p8002:8002 -v/home/ubuntu/server/pt_model:/models tritonserver:latest tritonserver --model-repository=/models

  3. With this fix, the container starts successfully and serves the model

Caveats:

None

Background

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

  • closes GitHub issue: #xxx

The server docker image built for cpu only platform and with pytorch backend
is failing to run due to the missing cuda library stubs. This commit is
adding those libraries to the build script.
@snadampal snadampal changed the title fix: Fix the cpu only server runtime errors for pytorch backend fix: Fix the server runtime errors on cpu only platform and with pytorch backend Jun 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant