Repository navigation
Document GPU access setup for custom training containers - #5486
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ Deploy Preview for viam-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
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. |
Jeremy Rose (jeremyrose-viam)
left a comment
There was a problem hiding this comment.
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:
-
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
videocan't add one, so a reader who triesffmpegwith 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. -
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 thePATHandLD_LIBRARY_PATHfix, so the example is safer without it. -
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 runningls /usr/local/nvidia/lib64in 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>
|
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. |
|
🔎💬 Inkeep AI search and chat service is syncing content for source 'Viam Docs' |

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 toPATHorLD_LIBRARY_PATH, so an image that isn't based onnvidia/cuda, or that overwrites those variables, can't see the GPU. The new section shows theENVlines to add, and how to enable NVENC throughNVIDIA_DRIVER_CAPABILITIES.Checks: prettier, markdownlint, vale,
frontmatter_rules.py, andmake build-prodpass.🤖 Generated with Claude Code