Repository navigation
Note that the GPU training job's pod can wait minutes for its PyTorch image - #53
Merged
Merged
Conversation
… image Each new GPU node downloads pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime, about 3 GB, before the job's pod starts, and the pod stays Pending meanwhile, so 05-run-training-job.sh seems stuck. On LocalStack for Azure the pod was Pending for 6m40s: 45 s for the cluster autoscaler to add the GPU node, then 5m54.879s for the kubelet to pull the image. A note under "How to run it" now says so, says the wait comes back on every new GPU node, and shows how to see the download start and end. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FvNuJLPJxRzyEhHVHgyFCH
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the documentation update clarifying image-download delays and how to monitor progress.
No open issues 🎉
What changed in this PR
Clarifies expected image-download delays in the GPU node pools tutorial so users can distinguish a normal startup wait from a stalled training job.
Changes:
- Adds a note explaining the 5–10 minute PyTorch image download and why it can recur after scale-to-zero or node eviction.
- Documents how to watch Kubernetes events for image-download progress.
| File | Description |
|---|---|
tutorials/gpu-node-pools/README.md |
Explains image-pull delays, recurring waits, and the command for monitoring progress. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The training job's pod in the GPU node pools tutorial can't start until its GPU node has downloaded the job's image,
pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime, about 3 GB.The pod stays
Pendingmeanwhile, so05-run-training-job.shkeeps printing(pods: Pending)for minutes and seems stuck.In a run of the tutorial on LocalStack for Azure, the pod was
Pendingfor 6m40s: 45 s for the cluster autoscaler to add the GPU node, then 5m54.879s for the kubelet to pull the image.Changes
tutorials/gpu-node-pools/README.mdgets a GitHub note under How to run it, after the list of commands, which says:Pendinguntil then;06-simulate-eviction.shfor the node that replaces the evicted one;kubectl get events --namespace gpu-training --watchshows when the download starts (Pulling image) and when it ends (Successfully pulled image).Tests
localstack/localstack-azure:latest), from the cluster events and the emulator log of one run of05-run-training-job.sh: the pod was created at 14:28:01Z and bound toaks-gpupool-9590704-vmss000000at 14:28:46Z, the kubelet loggedSuccessfully pulled image "pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime" in 5m54.879s (5m54.879s including waiting). Image size: 3337943678 bytes.and started the container at 14:34:42Z, and the autoscaler removed the idle node at 14:36:35Z./var/lib/rancher/k3s) is a volume of its own, and the image archives the emulator preloads into new nodes are its add-ons and the k3s system images only, with no PyTorch image.pre-commit run --files tutorials/gpu-node-pools/README.md: gitleaks passed, zizmor skipped (no workflow file).05-run-training-job.shto time the repeated download, and a run on Azure.🤖 Generated with Claude Code
https://claude.ai/code/session_01FvNuJLPJxRzyEhHVHgyFCH