gpu-dev 0.7.4__tar.gz → 0.7.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/CLAUDE.md +1 -1
  2. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/PKG-INFO +1 -1
  3. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/cli-tools/gpu-dev-cli/gpu_dev_cli/cli.py +71 -11
  4. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/docs/SDK_REPRO.md +47 -4
  5. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/gpu_dev.egg-info/PKG-INFO +1 -1
  6. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/pyproject.toml +1 -1
  7. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/src/gpu_dev/__init__.py +1 -1
  8. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/lambda/reservation_processor/index.py +22 -1
  9. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/.github/workflows/no-gitlinks.yml +0 -0
  10. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/.github/workflows/publish.yml +0 -0
  11. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/.gitignore +0 -0
  12. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/README.md +0 -0
  13. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/admin/README.md +0 -0
  14. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/admin/generate_stats.py +0 -0
  15. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/admin/requirements.txt +0 -0
  16. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/cli-tools/gpu-dev-cli/README.md +0 -0
  17. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/cli-tools/gpu-dev-cli/ZERO_CONFIG_SETUP.md +0 -0
  18. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/cli-tools/gpu-dev-cli/gpu_dev_cli/__init__.py +0 -0
  19. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/cli-tools/gpu-dev-cli/gpu_dev_cli/auth.py +0 -0
  20. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/cli-tools/gpu-dev-cli/gpu_dev_cli/config.py +0 -0
  21. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/cli-tools/gpu-dev-cli/gpu_dev_cli/disks.py +0 -0
  22. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/cli-tools/gpu-dev-cli/gpu_dev_cli/interactive.py +0 -0
  23. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/cli-tools/gpu-dev-cli/gpu_dev_cli/name_generator.py +0 -0
  24. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/cli-tools/gpu-dev-cli/gpu_dev_cli/reservations.py +0 -0
  25. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/cli-tools/gpu-dev-cli/gpu_dev_cli/ssh_proxy.py +0 -0
  26. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/cli-tools/gpu-dev-cli/minimal-iam-policy.json +0 -0
  27. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/cli-tools/scripts/clear_stale_disk_locks.py +0 -0
  28. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/docs/USER_GUIDE.md +0 -0
  29. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/docs/devgpu-features.html +0 -0
  30. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/docs/docker-mark-blue.svg +0 -0
  31. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/docs/icons8-cursor-ai.svg +0 -0
  32. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/gpu_dev.egg-info/SOURCES.txt +0 -0
  33. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/gpu_dev.egg-info/dependency_links.txt +0 -0
  34. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/gpu_dev.egg-info/entry_points.txt +0 -0
  35. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/gpu_dev.egg-info/requires.txt +0 -0
  36. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/gpu_dev.egg-info/top_level.txt +0 -0
  37. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/architecture.html +0 -0
  38. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/cli-demo.html +0 -0
  39. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/devgpu-features.html +0 -0
  40. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/docker-mark-blue.svg +0 -0
  41. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/feedback.png +0 -0
  42. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/gpu-fleet.html +0 -0
  43. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/icons8-cursor-ai.svg +0 -0
  44. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/index.html +0 -0
  45. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/k8s-under-the-hood.html +0 -0
  46. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/multinode.html +0 -0
  47. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/osdc-future-plans.html +0 -0
  48. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/problem.png +0 -0
  49. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/sandbox.html +0 -0
  50. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/sdk-demo.html +0 -0
  51. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/thesis.html +0 -0
  52. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/title-vid.mp4 +0 -0
  53. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/weneedgpus.png +0 -0
  54. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/presentation/wow.html +0 -0
  55. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/README.md +0 -0
  56. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/examples/batch_multi_gpu.py +0 -0
  57. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/examples/interactive_debug.py +0 -0
  58. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/examples/parallel_experiments.ipynb +0 -0
  59. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/examples/quickstart.ipynb +0 -0
  60. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/examples/run_tests.py +0 -0
  61. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/examples/submit_job.py +0 -0
  62. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/src/gpu_dev/_async/__init__.py +0 -0
  63. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/src/gpu_dev/_backend/__init__.py +0 -0
  64. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/src/gpu_dev/_backend/aws.py +0 -0
  65. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/src/gpu_dev/_backend/protocol.py +0 -0
  66. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/src/gpu_dev/_sync/__init__.py +0 -0
  67. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/src/gpu_dev/_sync/client.py +0 -0
  68. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/src/gpu_dev/_sync/sandbox.py +0 -0
  69. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/src/gpu_dev/_transport/__init__.py +0 -0
  70. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/src/gpu_dev/_transport/ssh.py +0 -0
  71. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/src/gpu_dev/common/__init__.py +0 -0
  72. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/src/gpu_dev/common/config.py +0 -0
  73. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/src/gpu_dev/common/enums.py +0 -0
  74. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/src/gpu_dev/common/errors.py +0 -0
  75. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/src/gpu_dev/common/models.py +0 -0
  76. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/src/gpu_dev/py.typed +0 -0
  77. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/tests/__init__.py +0 -0
  78. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/sdk/python/tests/test_models.py +0 -0
  79. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/setup.cfg +0 -0
  80. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-deck/backend.tf +0 -0
  81. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-deck/main.tf +0 -0
  82. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-deck/terraform.tfvars.example +0 -0
  83. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/.claude/skills/deploy.md +0 -0
  84. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/.terraform.lock.hcl +0 -0
  85. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/README.md +0 -0
  86. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/alb.tf +0 -0
  87. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/ami-baker.tf +0 -0
  88. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/availability.tf +0 -0
  89. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/backend.tf +0 -0
  90. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/build-node.tf +0 -0
  91. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/check_b200.py +0 -0
  92. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/cluster-autoscaler.tf +0 -0
  93. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/cmd_proxy.py +0 -0
  94. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/.dockerignore +0 -0
  95. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/Dockerfile +0 -0
  96. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/backup-dotfiles +0 -0
  97. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/bash_profile +0 -0
  98. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/bashrc +0 -0
  99. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/bashrc_ext +0 -0
  100. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/build-with-efa.sh +0 -0
  101. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/dotfiles-shutdown-handler +0 -0
  102. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/list-dotfile-versions +0 -0
  103. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/motd_script +0 -0
  104. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/nproc_wrapper +0 -0
  105. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/profile +0 -0
  106. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/restore-dotfiles +0 -0
  107. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/restore-dotfiles-version +0 -0
  108. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/setup-dotfiles-persistence +0 -0
  109. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/shell_env +0 -0
  110. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/ssh_config +0 -0
  111. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/zprofile +0 -0
  112. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/zshrc +0 -0
  113. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker/zshrc_ext +0 -0
  114. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker-build.tf +0 -0
  115. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker-example/Dockerfile +0 -0
  116. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/docker-example/hello.txt +0 -0
  117. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/ecr.tf +0 -0
  118. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/efs.tf +0 -0
  119. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/eks.tf +0 -0
  120. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/expiry.tf +0 -0
  121. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/git-cache.tf +0 -0
  122. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/gpu-dev-pod-irsa.tf +0 -0
  123. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/kubernetes.tf +0 -0
  124. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/lambda/availability_updater/index.py +0 -0
  125. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/lambda/availability_updater/requirements.txt +0 -0
  126. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/lambda/migration/tag_largest_snapshots.py +0 -0
  127. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/lambda/reservation_expiry/index.py +0 -0
  128. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/lambda/reservation_expiry/requirements.txt +0 -0
  129. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/lambda/reservation_processor/buildkit_job.py +0 -0
  130. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/lambda/reservation_processor/requirements.txt +0 -0
  131. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/lambda/shared/__init__.py +0 -0
  132. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/lambda/shared/alb_utils.py +0 -0
  133. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/lambda/shared/dns_utils.py +0 -0
  134. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/lambda/shared/k8s_client.py +0 -0
  135. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/lambda/shared/k8s_resource_tracker.py +0 -0
  136. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/lambda/shared/requirements.txt +0 -0
  137. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/lambda/shared/snapshot_utils.py +0 -0
  138. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/lambda.tf +0 -0
  139. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/list_b200.py +0 -0
  140. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/main.tf +0 -0
  141. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/mig-config.tf +0 -0
  142. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/mig-parted-config.yaml +0 -0
  143. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/migrations/backfill_snapshot_contents.py +0 -0
  144. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/migrations/backfill_snapshot_contents.py.bak +0 -0
  145. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/migrations/check_snapshots.py +0 -0
  146. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/migrations/migrate_disks_to_named.py +0 -0
  147. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/migrations/run_backfill.sh +0 -0
  148. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/monitoring.tf +0 -0
  149. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/node-termination-handler.tf +0 -0
  150. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/outputs.tf +0 -0
  151. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/pyproject.toml +0 -0
  152. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/pytorch-prebuild.tf +0 -0
  153. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/queue.tf +0 -0
  154. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/route53.tf +0 -0
  155. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/s3-disk-contents.tf +0 -0
  156. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/scripts/CLEANUP_GUIDE.md +0 -0
  157. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/scripts/detect_empty_volumes.sh +0 -0
  158. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/scripts/ec2_avail_probe.sh +0 -0
  159. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/scripts/inspect_user_data.sh +0 -0
  160. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/ssh-proxy/Dockerfile +0 -0
  161. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/ssh-proxy/proxy.py +0 -0
  162. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/ssh-proxy/requirements.txt +0 -0
  163. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/ssh-proxy-service.tf +0 -0
  164. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/ssh-proxy.tf +0 -0
  165. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/subnet-0fe3a2c45570091ad +0 -0
  166. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/switch-to.sh +0 -0
  167. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/templates/al2023-cpu-user-data.sh +0 -0
  168. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/templates/al2023-user-data.sh +0 -0
  169. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/templates/ami-baker-user-data.sh +0 -0
  170. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/templates/user-data-self-managed.sh +0 -0
  171. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/templates/user-data.sh +0 -0
  172. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/variables.tf +0 -0
  173. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/terraform-gpu-devservers/warm-pool.tf +0 -0
  174. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/tests/submit/README.md +0 -0
  175. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/tests/submit/fail/run.sh +0 -0
  176. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/tests/submit/multinode/run.sh +0 -0
  177. {gpu_dev-0.7.4 → gpu_dev-0.7.6}/tests/submit/success/run.sh +0 -0
@@ -79,7 +79,7 @@ Big push on warm pools + instant claims + prebuilt pytorch. Tracking state here
79
79
  - [ ] **Prebuilt built WITHOUT cuDNN** — `import torch` warns "compiled without cuDNN/MIOpen". CI/nightly build with cudnn9. Add libcudnn to the gpu-dev image + `USE_CUDNN=1` to the build recipe for fidelity (conv/cudnn-dependent ops + tests). Irrelevant for flex-attention int64 test; matters generally.
80
80
  - [ ] **`--ref pr/N` uses `pull/N/head`, not `/merge`** — `/head` is the PR author's raw branch tip (often based on old trunk, missing trunk-added tests); CI tests `/merge` (PR merged onto current trunk). For CI-repro fidelity, `pr/N` should fetch `pull/N/merge` (fall back to `/head` if no merge ref). `stage-pytorch` REF case in `index.py`. (This is why `pull/185479/head` lacked `test_large_kv_int64_pointer_math_cuda`.)
81
81
  - [ ] **Misleading disconnect/expiry message** — on `gpu-dev connect` connection loss OR reservation expiry, the CLI prints "❌ Authentication failed. You don't have SSH access... ask the primary user to add you" even for the PRIMARY user's own expired/cancelled reservation. Distinguish: (a) reservation expired -> "Reservation <id> expired at <time>"; (b) cancelled -> "Reservation was cancelled"; (c) connection dropped but still active -> "Connection lost, reconnect with gpu-dev connect <id>"; (d) genuine auth failure -> the current add-user message. Check reservation status before assuming auth failure.
82
- - [ ] **`gpu-dev cancel` from inside the pod** — show "Shutting down this reservation..." (graceful message) instead of an abrupt SSH drop, so the user knows the disconnect was intentional.
82
+ - [x] **`gpu-dev cancel` from inside the pod** (DONE, 0.7.5) two bugs: (1) cancel inside a **warm-claimed** pod failed with "GitHub username not configured" because the warm pod was pre-booted with `user_id="warm"` and the claim never stamped the real identity → `GPU_DEV_USER_ID/GPU_DEV_GITHUB_USER/AWS_ROLE_SESSION_NAME` stayed `"warm"`/empty. Fix: `try_claim_warm_pod` now seds the real `user_id`/`github_user` into both `.bashrc_ext`/`.zshrc_ext` + writes `GPU_DEV_RESERVATION_ID` (full id). Cold `_ext` derives `GPU_DEV_RESERVATION_ID` from the hostname (8-char prefix; cancellation resolves by prefix). (2) `gpu-dev cancel` (no id) inside a pod now fast-paths: cancels THIS reservation directly via `GPU_DEV_RESERVATION_ID`+`GPU_DEV_USER_ID` (no github_user/interactive) with the graceful "🛑 Shutting down..." message. Needs `tf apply` (lambda) + image rebuild (CLI in pods).
83
83
  - [ ] SSH CA certs to drop the ~0.33s `kubectl exec` key injection on warm claim (auth-model change).
84
84
  - [ ] AMI baker re-bakes on every base-EKS-AMI roll (5 baked AMIs in 2 days): pin the base AMI version + clean up old `gpu-dev-baked-*`.
85
85
  - [ ] **Warm pods: gate `warm-state=ready` on staging completion** (NOW MORE IMPORTANT — the built tree is ~30GB, and on GPU nodes it's a `cp` not reflink, so staging takes ~1-3min; a claim in that window hands over a half-copied tree). Two options: (a) claim-time check — exec `[ -f /home/dev/.pytorch-staging ]` in `try_claim_warm_pod`, skip pods still staging (simple, but adds ~0.5s exec to every warm claim); (b) label-flip — create with `warm-state=provisioning`, reconciler exec-checks staging + flips to `ready` (no claim latency, but 4 interacting changes: create label + reconciler flip + eviction must also target `provisioning` + claim already filters `ready`). Prefer (b). Marker: `.pytorch-staging` present during, removed when done; `.pytorch-ready` written at end.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gpu-dev
3
- Version: 0.7.4
3
+ Version: 0.7.6
4
4
  Summary: CLI + Python SDK for PyTorch GPU developer server reservations
5
5
  Author: PyTorch Team
6
6
  Requires-Python: >=3.10
@@ -1523,12 +1523,19 @@ def reserve(
1523
1523
  @click.option("--gpu-type", default="b200", show_default=True, help="GPU type for the repro box.")
1524
1524
  @click.option("--gpus", type=int, default=1, show_default=True)
1525
1525
  @click.option("--hours", type=float, default=3.0, show_default=True,
1526
- help="Lifetime ceiling; the box auto-cancels when the test exits unless --keep.")
1526
+ help="Lifetime ceiling for the box.")
1527
+ @click.option("--no-connect", is_flag=True, default=False,
1528
+ help="CI mode: run the test, auto-cancel, exit code = test result. Default (on a TTY) drops you into the box to iterate.")
1527
1529
  @click.option("--keep", is_flag=True, default=False,
1528
- help="Keep the reservation after the test exits (default: auto-cancel).")
1530
+ help="Never cancel the box (skip the cancel prompt / auto-cancel).")
1529
1531
  @click.pass_context
1530
- def repro(ctx, ref, test_args, gpu_type, gpus, hours, keep):
1531
- """Reserve a GPU, check out a PR/commit, run a test, then auto-cancel.
1532
+ def repro(ctx, ref, test_args, gpu_type, gpus, hours, no_connect, keep):
1533
+ """Reserve a GPU, check out a PR/commit, run a test, then drop you into the box.
1534
+
1535
+ By default (in a terminal) repro runs the test and then **connects you into the
1536
+ box** at ~/pytorch — the ref is checked out, so you can fix and re-run. The box
1537
+ stays alive until you cancel it (you're prompted on exit). Use --no-connect for
1538
+ CI/scripts (run the test, auto-cancel, process exit code = the test result).
1532
1539
 
1533
1540
  REF: pr/<N>, #<N>, a bare PR number, a branch, or a commit sha. PRs use
1534
1541
  pull/<N>/merge (what CI tests), falling back to /head.
@@ -1539,6 +1546,7 @@ def repro(ctx, ref, test_args, gpu_type, gpus, hours, keep):
1539
1546
  """
1540
1547
  import shlex
1541
1548
  import subprocess
1549
+ import sys
1542
1550
  config = load_config()
1543
1551
  reservation_mgr = ReservationManager(config)
1544
1552
  try:
@@ -1602,21 +1610,55 @@ def repro(ctx, ref, test_args, gpu_type, gpus, hours, keep):
1602
1610
  if "StrictHostKeyChecking" not in ssh_cmd:
1603
1611
  ssh_cmd = ssh_cmd.replace("ssh ", "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR ", 1)
1604
1612
  rprint(f"[dim]→ {ssh_cmd}[/dim]\n")
1613
+ rid8 = str(rid)[:8]
1605
1614
  rc = 1
1606
1615
  try:
1607
1616
  rc = subprocess.run(f"{ssh_cmd} {shlex.quote(remote)}", shell=True).returncode
1608
1617
  except KeyboardInterrupt:
1609
- rprint("\n[yellow]interrupted[/yellow]")
1610
- finally:
1618
+ rprint("\n[yellow]interrupted[/yellow]"); rc = 130
1619
+
1620
+ verdict = "[green]✓ test passed[/green]" if rc == 0 else f"[red]✗ test failed (exit {rc})[/red]"
1621
+
1622
+ # Default (TTY): drop into the box so you can fix and re-run. --no-connect is the
1623
+ # CI path: auto-cancel and exit with the test's code.
1624
+ connect = (not no_connect) and sys.stdout.isatty()
1625
+ if connect:
1626
+ rprint(f"\n{verdict} — dropping you into the box at ~/pytorch ({ref} checked out).")
1627
+ rprint(f"[dim] re-run: python {testcmd}[/dim]")
1628
+ rprint(f"[dim] finish: gpu-dev cancel (from inside) • or exit this shell[/dim]\n")
1629
+ shell_cmd = f"{ssh_cmd} -t {shlex.quote('cd /home/dev/pytorch 2>/dev/null; exec ${SHELL:-bash} -l')}"
1630
+ try:
1631
+ subprocess.run(shell_cmd, shell=True)
1632
+ except KeyboardInterrupt:
1633
+ pass
1611
1634
  if keep:
1612
- rprint(f"[cyan]📌 kept {str(rid)[:8]} — gpu-dev connect {str(rid)[:8]} • gpu-dev cancel {str(rid)[:8]}[/cyan]")
1613
- else:
1635
+ rprint(f"[cyan]📌 left {rid8} running connect: gpu-dev connect {rid8} • cancel: gpu-dev cancel {rid8}[/cyan]")
1636
+ return
1637
+ try:
1638
+ drop = click.confirm(f"Cancel repro box {rid8}?", default=True)
1639
+ except (KeyboardInterrupt, EOFError, click.Abort):
1640
+ drop = False
1641
+ if drop:
1614
1642
  try:
1615
1643
  reservation_mgr.cancel_reservation(rid, user_info["user_id"])
1616
- rprint(f"[green]🧹 cancelled repro box {str(rid)[:8]}[/green]")
1644
+ rprint(f"[green]🧹 cancelled {rid8}[/green]")
1617
1645
  except Exception as e:
1618
- rprint(f"[yellow]auto-cancel failed for {str(rid)[:8]}: {e}[/yellow]")
1619
- rprint(f"\n[bold]repro exit code: {rc}[/bold]")
1646
+ rprint(f"[yellow]cancel failed for {rid8}: {e}[/yellow]")
1647
+ else:
1648
+ rprint(f"[cyan]📌 left {rid8} running — connect: gpu-dev connect {rid8} • cancel: gpu-dev cancel {rid8}[/cyan]")
1649
+ return
1650
+
1651
+ # --no-connect / non-TTY: auto-cancel unless --keep, exit code = test result.
1652
+ if keep:
1653
+ rprint(f"[cyan]📌 kept {rid8} — gpu-dev connect {rid8} • gpu-dev cancel {rid8}[/cyan]")
1654
+ else:
1655
+ try:
1656
+ reservation_mgr.cancel_reservation(rid, user_info["user_id"])
1657
+ rprint(f"[green]🧹 cancelled repro box {rid8}[/green]")
1658
+ except Exception as e:
1659
+ rprint(f"[yellow]auto-cancel failed for {rid8}: {e}[/yellow]")
1660
+ rprint(f"\n[bold]repro exit code: {rc}[/bold] ({verdict})")
1661
+ sys.exit(rc)
1620
1662
 
1621
1663
 
1622
1664
  _SUBMIT_GPU_TYPES = ["b300", "b200", "b200-mig-1g", "b200-mig-2g", "b200-mig-3g", "h200", "h100",
@@ -2668,6 +2710,24 @@ def cancel(
2668
2710
  rprint("[red]❌ Cannot specify both --all and a reservation ID[/red]")
2669
2711
  return
2670
2712
 
2713
+ # Inside a gpu-dev pod, `gpu-dev cancel` (no id) shuts down THIS reservation
2714
+ # directly. The pod knows its own reservation (GPU_DEV_RESERVATION_ID) and
2715
+ # owner (GPU_DEV_USER_ID), so we skip the github_user / interactive list —
2716
+ # which can't work in a pod that has no `gpu-dev config set github_user`.
2717
+ pod_rid = os.environ.get("GPU_DEV_RESERVATION_ID", "").strip()
2718
+ pod_uid = os.environ.get("GPU_DEV_USER_ID", "").strip()
2719
+ if pod_rid and pod_uid and pod_uid != "warm" and not reservation_id and not all:
2720
+ rprint("[yellow]🛑 Shutting down this reservation — if you're connected to this pod, your session will close shortly.[/yellow]")
2721
+ try:
2722
+ reservation_mgr = ReservationManager(load_config())
2723
+ ok = reservation_mgr.cancel_reservation(pod_rid, pod_uid)
2724
+ except Exception as e:
2725
+ ok = False
2726
+ rprint(f"[red]❌ Could not cancel from inside the pod: {e}[/red]")
2727
+ if not ok:
2728
+ rprint(f"[dim]If that didn't work, cancel from your laptop: gpu-dev cancel {pod_rid[:8]}[/dim]")
2729
+ return
2730
+
2671
2731
  # Handle --all flag (non-interactive)
2672
2732
  if all:
2673
2733
  with Live(
@@ -2,7 +2,10 @@
2
2
 
3
3
  Reserve a **warm** GPU box in ~1s, run code on it, and auto-clean up — from Python
4
4
  or one CLI command. Backed by a pool of pre-booted pods with **PyTorch prebuilt**
5
- (viable/strict), so `import torch` works instantly with no build.
5
+ (viable/strict), so `import torch` works instantly with no build. And when you *do*
6
+ have to compile — your ref moved past viable/strict, or you touch C++ — a shared
7
+ compiler cache (ccache) makes it an **incremental, not a cold, build** (see
8
+ [Builds are cached](#builds-are-cached-shared-ccache)).
6
9
 
7
10
  > Requires `gpu-dev` ≥ 0.7.1 (CLI **and** SDK in one package): `pip install --upgrade gpu-dev`
8
11
 
@@ -32,14 +35,18 @@ with client.reserve(gpu_type="b200", gpu_count=1, hours=1) as sb:
32
35
  PyTorch is pre-staged at `~/pytorch` (importable). To reproduce a failure, point at
33
36
  the **PR or commit** and run the test.
34
37
 
35
- **One CLI command** (reserve → checkout → run → auto-cancel):
38
+ **One CLI command** (reserve → checkout → run → **drop you into the box to fix**):
36
39
  ```bash
37
40
  gpu-dev repro pr/185264 test/inductor/test_flex_attention.py TestFlexAttentionCUDA.test_large_kv_int64_pointer_math_cuda
38
41
  ```
39
42
  - `REF`: `pr/<N>`, `#<N>`, a bare PR number, a branch, or a commit sha.
40
43
  - PRs use **`pull/<N>/merge`** (what CI actually tests — the PR merged onto current
41
44
  trunk), falling back to `/head`. Use this, not the raw branch.
42
- - `--keep` to inspect afterward instead of auto-cancelling.
45
+ - By default (in a terminal) repro runs the test, prints the verdict, then **lands
46
+ you in the box** at `~/pytorch` with the ref checked out so you can fix and re-run;
47
+ it stays alive until you cancel (prompted on exit).
48
+ - `--no-connect` = CI mode: run, auto-cancel, process exit code = the test result.
49
+ - `--keep` never cancels (no prompt). `--gpu-type` / `--gpus` / `--hours` to size it.
43
50
 
44
51
  **From the SDK:**
45
52
  ```python
@@ -62,12 +69,48 @@ pip install -e . --no-build-isolation
62
69
  ```
63
70
  Python-only changes need no rebuild — `PYTHONPATH=~/pytorch` already resolves.
64
71
 
72
+ ## Builds are cached (shared ccache)
73
+
74
+ Two layers of caching mean you almost never pay for a cold, from-scratch build —
75
+ including the full C++/CUDA compile (gcc/nvcc):
76
+
77
+ 1. **Prebuilt tree.** Every box gets PyTorch already built at viable/strict and
78
+ staged at `~/pytorch`, so `import torch` works with **zero build**.
79
+ 2. **Shared compiler cache (ccache).** `CCACHE_DIR=/ccache_shared` is an EFS volume
80
+ mounted in **every** dev pod *and* the dedicated build node, so all the C++/CUDA
81
+ object compiles are cached and **shared across users and the build node**. When
82
+ you check out a ref past viable/strict — or edit C++ — the rebuild reuses those
83
+ cached objects (and the warm `build/` for ninja) instead of recompiling from
84
+ scratch. So even a "full" `pip install -e .` is a warm build, not a cold one.
85
+
86
+ Measured (m7i build node, 128 jobs, CUDA 13.2):
87
+
88
+ | scenario | time |
89
+ |---|---|
90
+ | `import torch` (prebuilt, no build) | ~0s |
91
+ | incremental (1 kernel changed + relink) | ~40s |
92
+ | ninja no-op (nothing changed) | ~20s |
93
+ | from-scratch `build/` with warm ccache (~86% hit) | ~21 min |
94
+
95
+ (A true cold build from an empty ccache is far longer.) The cache stays warm on its
96
+ own: an hourly build-node job compiles each viable/strict bump into `/ccache_shared`,
97
+ so the objects you need are usually already there by the time you build — and your
98
+ own compiles populate it for the next person too.
99
+
65
100
  ## Gotchas
66
101
  - **`/merge` vs `/head`**: `/head` is the PR author's raw branch and often lacks
67
102
  trunk-added tests; `/merge` is what CI ran. `gpu-dev repro` / `--ref` use `/merge`.
68
103
  - **The prebuilt is viable/strict.** If your ref moved past it and a test needs new
69
- C++, do the one incremental `pip install -e . --no-build-isolation`.
104
+ C++, do the one incremental `pip install -e . --no-build-isolation` — it's fast
105
+ (warm shared ccache), not a cold build. See [Builds are cached](#builds-are-cached-shared-ccache).
70
106
  - **Ephemeral by design.** Repro boxes have no persistent disk; bring code via
71
107
  `--ref`, `sb.upload`, or git.
108
+ - **Reproducing a reverted PR / an OOM.** `pr/N` uses `/merge` = the PR re-applied
109
+ onto *current* trunk — so if the PR was reverted, `/merge` effectively un-reverts
110
+ it and you test the **fixed** tree (it'll pass). To repro the failing trunk state,
111
+ check out the **exact land commit** instead (`gpu-dev repro <sha> …`). And match the
112
+ CI runner's GPU: an **OOM** only reproduces on a GPU as small as the runner's — the
113
+ default `b200` has far more memory, so a memory-bound failure won't show there
114
+ (`--gpu-type h100`/`a100`/… to match).
72
115
 
73
116
  See also: `sdk/python/README.md` and `sdk/python/examples/`.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gpu-dev
3
- Version: 0.7.4
3
+ Version: 0.7.6
4
4
  Summary: CLI + Python SDK for PyTorch GPU developer server reservations
5
5
  Author: PyTorch Team
6
6
  Requires-Python: >=3.10
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "gpu-dev"
7
- version = "0.7.4"
7
+ version = "0.7.6"
8
8
  description = "CLI + Python SDK for PyTorch GPU developer server reservations"
9
9
  authors = [{name = "PyTorch Team"}]
10
10
  readme = "cli-tools/gpu-dev-cli/README.md"
@@ -63,4 +63,4 @@ try:
63
63
 
64
64
  __version__ = _pkg_version("gpu-dev")
65
65
  except Exception:
66
- __version__ = "0.7.4"
66
+ __version__ = "0.7.6"
@@ -1633,7 +1633,18 @@ def try_claim_warm_pod(body: dict) -> bool:
1633
1633
  "while IFS= read -r k; do [ -n \"$k\" ] && ! grep -Fq \"$k\" /home/dev/.ssh/authorized_keys && echo \"$k\" >> /home/dev/.ssh/authorized_keys; done <<'KEOF'\n"
1634
1634
  f"{github_public_key}\n"
1635
1635
  "KEOF\n"
1636
- "chmod 700 /home/dev/.ssh && chmod 600 /home/dev/.ssh/authorized_keys && chown -R 1081:1081 /home/dev/.ssh"
1636
+ "chmod 700 /home/dev/.ssh && chmod 600 /home/dev/.ssh/authorized_keys && chown -R 1081:1081 /home/dev/.ssh\n"
1637
+ # Warm pods were pre-booted with user_id='warm'; stamp the real claimant's
1638
+ # identity into the managed shell-ext files so `gpu-dev` inside the pod
1639
+ # (cancel/list/...) authenticates as the user and IRSA assumes the right
1640
+ # session. The user connects AFTER the claim, so their login shell picks
1641
+ # these up. Also record the reservation id for `gpu-dev cancel`.
1642
+ "for f in /home/dev/.bashrc_ext /home/dev/.zshrc_ext; do [ -f \"$f\" ] || continue\n"
1643
+ f" sed -i -e 's|^export GPU_DEV_USER_ID=.*|export GPU_DEV_USER_ID=\"{user_id}\"|'"
1644
+ f" -e 's|^export GPU_DEV_GITHUB_USER=.*|export GPU_DEV_GITHUB_USER=\"{github_user}\"|'"
1645
+ f" -e 's|^export AWS_ROLE_SESSION_NAME=.*|export AWS_ROLE_SESSION_NAME=\"{user_id}\"|' \"$f\"\n"
1646
+ f" grep -q '^export GPU_DEV_RESERVATION_ID=' \"$f\" && sed -i 's|^export GPU_DEV_RESERVATION_ID=.*|export GPU_DEV_RESERVATION_ID=\"{reservation_id}\"|' \"$f\" || echo 'export GPU_DEV_RESERVATION_ID=\"{reservation_id}\"' >> \"$f\"\n"
1647
+ "done"
1637
1648
  )
1638
1649
  stream(
1639
1650
  v1.connect_get_namespaced_pod_exec, pod_name, "gpu-dev",
@@ -5272,6 +5283,11 @@ EOF_PROFILE
5272
5283
 
5273
5284
  # User identification
5274
5285
  export GPU_DEV_USER_ID="{user_id or 'dev'}"
5286
+ # Reservation id from the pod hostname; warm claims overwrite it with the full id,
5287
+ # cold pods keep the 8-char prefix. Used by gpu-dev cancel (no args) inside the pod.
5288
+ # NOTE: escape the dollar so this is evaluated when the shell sources the file, NOT
5289
+ # command-substituted while this (unquoted) heredoc is written at pod startup.
5290
+ export GPU_DEV_RESERVATION_ID="\$(hostname | sed -e 's/^gpu-dev-//')"
5275
5291
 
5276
5292
  # Multinode peer info — inlined from container env at pod startup. sshd strips
5277
5293
  # container env vars from login shells, so we materialize the values into rc files.
@@ -5338,6 +5354,11 @@ EOF_BASHRC_EXT
5338
5354
 
5339
5355
  # User identification
5340
5356
  export GPU_DEV_USER_ID="{user_id or 'dev'}"
5357
+ # Reservation id from the pod hostname; warm claims overwrite it with the full id,
5358
+ # cold pods keep the 8-char prefix. Used by gpu-dev cancel (no args) inside the pod.
5359
+ # NOTE: escape the dollar so this is evaluated when the shell sources the file, NOT
5360
+ # command-substituted while this (unquoted) heredoc is written at pod startup.
5361
+ export GPU_DEV_RESERVATION_ID="\$(hostname | sed -e 's/^gpu-dev-//')"
5341
5362
 
5342
5363
  # Multinode peer info — inlined from container env at pod startup. sshd strips
5343
5364
  # container env vars from login shells, so we materialize the values into rc files.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes