Skip to content

Document GPU access setup for custom training containers - #5486

Merged
Eliza Farley (elizafarley) merged 3 commits into
mainfrom
claude/gpu-training-containers-note-ed83a7
Nov 23, 2026
Merged

Eliza Farley (elizafarley) merged 3 commits into
mainfrom
claude/gpu-training-containers-note-ed83a7

Conversation

@elizafarley

Copy link
Copy Markdown
Contributor

Adds a Give your script access to the GPU subsection to the Custom training containers page.

Training jobs run on Google Cloud GPU machines, which mount the NVIDIA driver under /usr/local/nvidia. Viam doesn't add that directory to PATH or LD_LIBRARY_PATH, so an image that isn't based on nvidia/cuda, or that overwrites those variables, can't see the GPU. The new section shows the ENV lines to add, and how to enable NVENC through NVIDIA_DRIVER_CAPABILITIES.

Checks: prettier, markdownlint, vale, frontmatter_rules.py, and make build-prod pass.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit 9736494
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/6b049b4d7faa0610641e4b11
😎 Deploy Preview https://deploy-preview-5486--viam-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 35 (🟢 up 3 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 92 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Oct 30, 2026
@viam-overwatch

viam-overwatch Bot commented Nov 4, 2026

Copy link
Copy Markdown

Hey Eliza Farley (@elizafarley) — CI is green and no reviewer is assigned yet. Could you request one when you have a chance?

Auto-comment from overwatch. Will not re-nudge for 7 days.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The core of this is right. I checked the training job setup, and Viam sets only TRAINING_PACKAGE_URI, API_KEY and API_KEY_ID for custom containers, and the launcher script doesn't touch PATH or LD_LIBRARY_PATH. So an image that isn't based on nvidia/cuda, or that overwrites those variables, does need to set them. Keeping that guidance and the ENV block for PATH and LD_LIBRARY_PATH.

Three things I'd change before merging:

  1. Remove the NVENC paragraph. Custom training jobs run on A100 and H100 GPUs, and NVIDIA's Video Encode and Decode GPU Support Matrix lists neither with a hardware encoder. Setting video can't add one, so a reader who tries ffmpeg with NVENC will hit an error that looks like a setup mistake. T4 and L4 do have NVENC, but custom jobs don't run on them.

  2. Drop ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility. That variable is read by the NVIDIA container runtime, and I couldn't find anything saying Vertex AI honors it. It isn't needed for the PATH and LD_LIBRARY_PATH fix, so the example is safer without it.

  3. Hedge or verify "mounts the NVIDIA driver into your container under /usr/local/nvidia". GKE's docs describe that location and say default paths may not include it, but I couldn't find a Vertex training doc that states it. Did you see it on a real job? If so, the claim is fine as written. Otherwise, either soften it to "typically mounted" or confirm it by running ls /usr/local/nvidia/lib64 in a test job.

Optional: it could help to say which GPUs custom jobs use, but that's a product commitment, so I'd check with the training team first.

Comment only, not requesting changes: the PATH/LD_LIBRARY_PATH part is useful as it stands.

…nt path

- Remove the NVENC paragraph: custom training jobs run on A100/H100 GPUs,
  which have no hardware encoder.
- Remove ENV NVIDIA_DRIVER_CAPABILITIES from the example; it isn't needed
  for the PATH/LD_LIBRARY_PATH fix and Vertex AI may not honor it.
- Say the driver is "typically" mounted under /usr/local/nvidia, since no
  Vertex training doc confirms the location.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@viam-overwatch

Copy link
Copy Markdown

Hey Eliza Farley (@elizafarley) — this PR has been approved and CI has been green for 3+ business days. Ready to merge?

Auto-comment from overwatch. Will not re-nudge for 7 days.

@elizafarley
Eliza Farley (elizafarley) requested a review from a team as a code owner November 23, 2026 20:00
@elizafarley
Eliza Farley (elizafarley) merged commit f3c214a into main Nov 23, 2026
14 checks passed
@elizafarley
Eliza Farley (elizafarley) deleted the claude/gpu-training-containers-note-ed83a7 branch November 23, 2026 20:02
@github-actions

Copy link
Copy Markdown

🔎💬 Inkeep AI search and chat service is syncing content for source 'Viam Docs'

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

Labels

safe to build This pull request is marked safe to build from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants