gpu4agents 0.11.0__tar.gz → 0.13.0__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 (161) hide show
  1. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/.claude-plugin/plugin.json +1 -1
  2. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/.cursor-plugin/plugin.json +1 -1
  3. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/CHANGELOG.md +33 -0
  4. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/INSTALL.md +1 -1
  5. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/JOBS.md +10 -2
  6. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/PKG-INFO +2 -2
  7. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/README.md +1 -1
  8. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/SERVING.md +2 -2
  9. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/docs/ACCEPTANCE.md +24 -1
  10. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/docs/AGENTS.md +7 -6
  11. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/docs/CONFIG.md +3 -3
  12. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/docs/INTEGRATION.md +1 -1
  13. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/docs/LIFECYCLE.md +17 -1
  14. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/docs/USAGE.md +6 -5
  15. gpu4agents-0.13.0/docs/handoff/2026-11-11-video-validation-fixes.md +192 -0
  16. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu.example.yaml +4 -0
  17. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu.models.yaml +46 -0
  18. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/__init__.py +1 -1
  19. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/agent/install.py +33 -0
  20. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/agent/mcp.py +84 -15
  21. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/agent/skill/SKILL.md +26 -12
  22. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/cli/_common.py +43 -0
  23. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/cli/agent.py +20 -1
  24. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/cli/lifecycle.py +39 -2
  25. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/cli/main.py +8 -1
  26. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/cli/setup.py +96 -22
  27. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/cli/timer.py +12 -0
  28. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/engine.py +588 -5
  29. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/events.py +4 -0
  30. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/model_inspect.py +20 -0
  31. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/models.py +8 -0
  32. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/paths.py +30 -0
  33. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/sweep.py +46 -0
  34. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/base.py +8 -0
  35. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/gpus.py +64 -0
  36. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/vast/mapper.py +13 -0
  37. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/vast/provider.py +6 -1
  38. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/watchdog/agent_body.py +8 -0
  39. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/watchdog/builder.py +39 -0
  40. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/watchdog/jobs_ext.py +90 -1
  41. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/install.sh +2 -2
  42. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/pyproject.toml +1 -1
  43. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/skills/gpu4agents/SKILL.md +26 -12
  44. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/conftest.py +2 -0
  45. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/fakes.py +14 -3
  46. gpu4agents-0.13.0/tests/test_field_run.py +557 -0
  47. gpu4agents-0.13.0/tests/test_job_outputs.py +239 -0
  48. gpu4agents-0.11.0/reports/GPU pr/303/263pria para agentes de c/303/263digo.md" +0 -94
  49. gpu4agents-0.11.0/research_notes/GPU pr/303/263pria para agentes de c/303/263digo/capabilities_unlocked.md" +0 -128
  50. gpu4agents-0.11.0/research_notes/GPU pr/303/263pria para agentes de c/303/263digo/market.md" +0 -140
  51. gpu4agents-0.11.0/research_notes/GPU pr/303/263pria para agentes de c/303/263digo/user_pain.md" +0 -132
  52. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/.claude-plugin/marketplace.json +0 -0
  53. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/.env.example +0 -0
  54. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  55. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  56. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  57. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/.github/dependabot.yml +0 -0
  58. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/.github/pull_request_template.md +0 -0
  59. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/.github/workflows/ci.yml +0 -0
  60. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/.github/workflows/release.yml +0 -0
  61. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/.gitignore +0 -0
  62. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/CODE_OF_CONDUCT.md +0 -0
  63. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/CONTRIBUTING.md +0 -0
  64. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/LICENSE +0 -0
  65. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/PROVIDERS.md +0 -0
  66. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/SECURITY.md +0 -0
  67. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/docs/ADDING_A_PROVIDER.md +0 -0
  68. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/docs/CHOOSING_A_MODEL.md +0 -0
  69. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/docs/assets/banner.png +0 -0
  70. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/docs/assets/jambu-logo.jpg +0 -0
  71. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/examples/experiment.py +0 -0
  72. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/examples/gpu.yaml +0 -0
  73. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/examples/mastra-agent/README.md +0 -0
  74. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/examples/mastra-agent/package-lock.json +0 -0
  75. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/examples/mastra-agent/package.json +0 -0
  76. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/examples/mastra-agent/src/agent.ts +0 -0
  77. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/examples/mastra-agent/src/index.ts +0 -0
  78. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/examples/mastra-agent/src/tools/weather-tool.ts +0 -0
  79. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/examples/mastra-agent/tsconfig.json +0 -0
  80. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/examples/typescript-client/README.md +0 -0
  81. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/examples/typescript-client/package-lock.json +0 -0
  82. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/examples/typescript-client/package.json +0 -0
  83. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/examples/typescript-client/src/gpu.ts +0 -0
  84. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/examples/typescript-client/src/index.ts +0 -0
  85. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/examples/typescript-client/tsconfig.json +0 -0
  86. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu.yaml +0 -0
  87. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/__main__.py +0 -0
  88. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/agent/__init__.py +0 -0
  89. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/agent/jobs.py +0 -0
  90. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/cli/__init__.py +0 -0
  91. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/cli/account.py +0 -0
  92. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/cli/inspect.py +0 -0
  93. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/cli/job.py +0 -0
  94. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/cli/providers.py +0 -0
  95. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/cli/run.py +0 -0
  96. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/cli/status.py +0 -0
  97. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/cli/validate.py +0 -0
  98. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/__init__.py +0 -0
  99. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/beacon.py +0 -0
  100. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/config.py +0 -0
  101. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/credentials.py +0 -0
  102. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/durations.py +0 -0
  103. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/errors.py +0 -0
  104. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/execution.py +0 -0
  105. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/health.py +0 -0
  106. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/hosts.py +0 -0
  107. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/job.py +0 -0
  108. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/policy.py +0 -0
  109. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/state.py +0 -0
  110. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/core/tool_parsers.py +0 -0
  111. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/__init__.py +0 -0
  112. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/http.py +0 -0
  113. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/lambdacloud/__init__.py +0 -0
  114. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/lambdacloud/client.py +0 -0
  115. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/lambdacloud/config.py +0 -0
  116. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/lambdacloud/mapper.py +0 -0
  117. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/lambdacloud/provider.py +0 -0
  118. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/registry.py +0 -0
  119. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/runpod/__init__.py +0 -0
  120. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/runpod/client.py +0 -0
  121. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/runpod/config.py +0 -0
  122. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/runpod/mapper.py +0 -0
  123. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/runpod/provider.py +0 -0
  124. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/scaffold.py +0 -0
  125. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/vast/__init__.py +0 -0
  126. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/vast/client.py +0 -0
  127. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/providers/vast/config.py +0 -0
  128. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/runtime/__init__.py +0 -0
  129. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/runtime/base.py +0 -0
  130. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/runtime/service.py +0 -0
  131. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/runtime/vllm.py +0 -0
  132. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/serve/__init__.py +0 -0
  133. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/serve/hf/__init__.py +0 -0
  134. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/serve/hf/install.sh +0 -0
  135. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/serve/hf/server.py +0 -0
  136. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/serve/template/__init__.py +0 -0
  137. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/serve/template/gpujob.yaml +0 -0
  138. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/serve/template/server.py +0 -0
  139. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/gpu4agents/watchdog/__init__.py +0 -0
  140. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/jambu_gpu/__init__.py +0 -0
  141. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/jambu_gpu/__main__.py +0 -0
  142. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/skills/gpu4agents/agents/openai.yaml +0 -0
  143. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_agent.py +0 -0
  144. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_cli.py +0 -0
  145. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_config.py +0 -0
  146. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_engine.py +0 -0
  147. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_engine_sessions.py +0 -0
  148. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_integration.py +0 -0
  149. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_jobs.py +0 -0
  150. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_lambda_provider.py +0 -0
  151. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_model_inspect.py +0 -0
  152. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_paths.py +0 -0
  153. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_policy.py +0 -0
  154. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_runpod_provider.py +0 -0
  155. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_runtime_vllm.py +0 -0
  156. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_serve.py +0 -0
  157. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_state.py +0 -0
  158. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_sweep.py +0 -0
  159. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_vast_mapper.py +0 -0
  160. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_vast_provider.py +0 -0
  161. {gpu4agents-0.11.0 → gpu4agents-0.13.0}/tests/test_watchdog.py +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gpu4agents",
3
3
  "description": "Your agent rents the GPU it needs, serves a model on it and runs the experiment. You pay only while it works.",
4
- "version": "0.11.0",
4
+ "version": "0.13.0",
5
5
  "author": {
6
6
  "name": "João Gabriel Lima",
7
7
  "url": "https://www.linkedin.com/in/joaogabriellima"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gpu4agents",
3
3
  "description": "Your agent rents the GPU it needs, serves a model on it and runs the experiment. You pay only while it works.",
4
- "version": "0.11.0",
4
+ "version": "0.13.0",
5
5
  "author": {
6
6
  "name": "João Gabriel Lima"
7
7
  },
@@ -2,6 +2,39 @@
2
2
 
3
3
  All notable changes to this project. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses [Semantic Versioning](https://semver.org/).
4
4
 
5
+ ## [0.13.0] - 2026-11-11
6
+
7
+ The first real, filmed use of 0.12.0 (an agent making images with SDXL and running a CUDA benchmark) found these. Each is fixed and tested.
8
+
9
+ ### Fixed
10
+ - **A machine stopped by hand no longer bills forever without a word.** The agent ended its session with `gpu stop`; on Vast.ai that keeps billing the disk, and with no sweep timer installed nothing would ever destroy it.
11
+ - `gpu stop` and the MCP `gpu_stop` say so: `still_billing`, the disk's cost per day, and whether the sweep timer will remove it after `stopped_ttl`.
12
+ - Every `gpu` command, in any directory, warns about a registered machine left stopped and billing. It reads state files only, so it costs no API call.
13
+ - `gpu agent install` asks once to install the sweep timer (`--sweep-timer` / `--no-sweep-timer`). The timer is the only thing that enforces `stopped_ttl` on a stopped machine.
14
+ - The skill now says to destroy once the work is done and the results are home, the same choice the watchdog makes. Stop only when the user will be back soon or keeps the disk on purpose.
15
+ - **The card the user approved is the one rented.** The agent quoted an RTX 3060 at about $0.08/h and got an RTX 2060 at $0.094/h when the quoted offer was taken. `gpu offers` remembers what it showed, and `gpu setup --offer ID` (MCP `gpu_setup(offer_id)`) rents only that card at no more than that price, host retries included, or nothing. Every setup reports `rented`, `quoted` and `matches_quote`, and warns when they differ.
16
+ - **A project is never kept where it will be lost.** The agent kept `gpu.yaml` in its session scratchpad; the next session saw the machine as an orphan it could not use. `gpu init` refuses a temporary or scratchpad folder (`--allow-temp` overrides), and the skill puts the project at the root of the user's repository.
17
+ - **A machine that vanished leaves a reason.** The log said only "instance missing at provider". Now the reconcile replays the project's rules on what it last knew and records `instance_destroyed reason=idle_timeout by=watchdog inferred=true` when they called for it, or `likely_reason: unknown` when they did not. `gpu setup` also fetches the watchdog's own events as soon as the machine is ready.
18
+
19
+ ### Added
20
+ - `gpu adopt <instance-id>` (MCP `gpu_adopt`) takes over an orphan this account owns. On Vast.ai the boot script the provider kept gives back its watchdog token and model key, so `gpu setup` reuses it when gpu.yaml matches; otherwise it can still be destroyed from there. The provider key in that script is never read back.
21
+ - `gpu offers --for <minutes on an RTX 4090>` (MCP `for_minutes_on_4090`) ranks offers by the estimated cost of the whole job, not the price per hour.
22
+ - Image models are sized for their peak: `gpu init` gives SDXL 16 GB and FLUX 24 GB, and `gpu validate` warns below that (a 12 GB card ran out of memory with SDXL at 1344x768). `gpu.models.yaml` has `sdxl-base`, `flux-dev` and `flux-schnell` profiles.
23
+
24
+ ### Changed
25
+ - The skill and the MCP instructions: size for the peak with 1.5 to 2 times headroom; stop a server before a job that shares its card; compare offers per job; say that `idle_timeout` is 15 minutes by default and the user's to change; the only credentials check is `gpu login --check`, never listing environment variables or a secret store, never another provider's key.
26
+
27
+ ## [0.12.0] - 2026-11-07
28
+
29
+ ### Fixed
30
+ - **A job's results are no longer deleted before anyone downloaded them.** 0.11.0 made an idle Vast.ai machine be destroyed, and with it the outputs of a job run with `--detach` that nobody had pulled yet, or the checkpoints of a job cut off by `max_lifetime`. Now:
31
+ - On the machine, the job runner knows which outputs were downloaded after their job ended. While any are not, a shutdown that would delete them becomes a stop that keeps the disk. Where no stop keeps the disk (Lambda, a RunPod pod without a volume), an idle machine waits up to 2 hours for the download.
32
+ - `gpu sweep` and `gpu guard` download finished jobs' results into `gpu-outputs/<job id>/` on their own, and before any automatic destroy. A stopped machine that still holds results (and bills its disk) is started, emptied and destroyed. With `gpu sweep --install-timer`, results reach your computer within minutes, with nobody at the keyboard.
33
+ - `gpu job pull` works on a stopped machine: it starts it, downloads, and puts it back.
34
+ - `gpu destroy` (and the MCP `gpu_destroy`) downloads the results first, and refuses when it cannot; `--discard-outputs` (`discard_outputs=true`) deletes them.
35
+ - `gpu status` lists the jobs whose results are only on the machine (`job_outputs_unsaved`).
36
+ - `gpu job run` refuses a job whose `timeout` is longer than `lifecycle.max_lifetime` before anything runs, instead of letting the machine shut down mid-job, and warns when the machine will shut down before a job without a timeout could finish.
37
+
5
38
  ## [0.11.0] - 2026-11-06
6
39
 
7
40
  ### Changed
@@ -20,7 +20,7 @@ curl -fsSL https://raw.githubusercontent.com/jambuai/gpu4agents/main/install.sh
20
20
 
21
21
  The script needs only `curl` (Linux or macOS; on Windows, run it inside WSL). It installs [uv](https://docs.astral.sh/uv/) if missing, uses it to install the `gpu4agents` package with a Python it downloads by itself, and then installs the skill and registers the `gpu` MCP server for your runtime. It does not ask for or read any key.
22
22
 
23
- Check: `~/.local/bin/gpu --version` prints 0.11.0 or later.
23
+ Check: `~/.local/bin/gpu --version` prints 0.12.0 or later.
24
24
 
25
25
  For the rest of this session, call the command by its full path, `~/.local/bin/gpu`. Your shell may define `gpu` as an alias: Oh My Zsh's git plugin, on by default, makes `gpu` mean `git push upstream`, and an alias wins over the command, so plain `gpu setup` could run git instead. The installer removes that alias for new shells and says so; tell the user if it did. The same command is also installed as `gpu4agents`.
26
26
 
@@ -56,7 +56,7 @@ These never upload: `.git`, virtualenvs, `__pycache__`, `node_modules`, `.gpu`,
56
56
  3. Exit non-zero on failure. Do not catch every exception and exit 0.
57
57
  4. Never print secrets, and never write them into outputs.
58
58
  5. Install dependencies in `setup:`, pinned (`torch` comes with the default image; do not reinstall it).
59
- 6. Keep the job under `lifecycle.max_lifetime` (6 h by default) and the session budget: those stop the machine even while a job runs. Set `timeout:` below them.
59
+ 6. Keep the job under `lifecycle.max_lifetime` (6 h by default) and the session budget: those shut the machine down even while a job runs. For a longer job, raise `max_lifetime` in `gpu.yaml` first; `gpu job run` refuses a `timeout:` longer than it. What the job wrote to `$JAMBU_OUTPUT_DIR` by then is kept (see section 6), so write checkpoints as you go.
60
60
 
61
61
  ## 5. Running it
62
62
 
@@ -79,4 +79,12 @@ States: `running`, `succeeded`, `failed`, `timeout`, `cancelled`, `lost` (the ma
79
79
 
80
80
  ## 6. Afterwards
81
81
 
82
- The machine stops by itself after `idle_timeout` (15 min) once no job runs. A stopped machine keeps its disk, so `gpu setup` restarts it and `gpu job pull` still works. `gpu destroy` deletes the disk and every job file on it, so pull the outputs first. Tell the user what ran, how long it took, what it cost (`gpu job status` reports `cost_usd`) and where the outputs are.
82
+ The machine shuts down by itself after `idle_timeout` (15 min) once no job runs. Its results are kept until they reach this computer:
83
+
84
+ - `gpu job run` downloads them when the job ends. After `--detach`, `gpu job pull` does, whenever you like.
85
+ - A job's results count as saved once they were downloaded after it ended. Until then, a shutdown that would delete them becomes a stop, which keeps the disk (Vast.ai, a RunPod pod with a volume). Where a stop would wipe the disk too (Lambda, a RunPod pod without a volume), the idle machine stays up for up to 2 hours after the job ended, waiting for the download. Only there can results still be lost: when nothing downloads them within those 2 hours, or when `max_lifetime` or the budget ends the machine first.
86
+ - `gpu job pull` works on a stopped machine: it starts it, downloads, and puts it back (destroyed on Vast.ai once nothing is left on it, since a stopped machine bills its disk).
87
+ - `gpu sweep` and `gpu guard` do the same on their own: they download the results of finished jobs into `gpu-outputs/<job id>/` while the machine is up, start a stopped machine that still holds some (then destroy it), and download before any automatic destroy. With `gpu sweep --install-timer` this happens within minutes, with no one at the keyboard.
88
+ - `gpu destroy` downloads the results first. If it cannot, it refuses; `gpu destroy --discard-outputs` deletes them.
89
+
90
+ Tell the user what ran, how long it took, what it cost (`gpu job status` reports `cost_usd`) and where the outputs are.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: gpu4agents
3
- Version: 0.11.0
3
+ Version: 0.13.0
4
4
  Summary: GPU for Agents: your coding agent rents the GPU it needs, on its own. You pay only while it works.
5
5
  Project-URL: Homepage, https://gpu4agents.jambu.ai
6
6
  Project-URL: Documentation, https://github.com/jambuai/gpu4agents/tree/main/docs
@@ -202,7 +202,7 @@ gpu_runtime:
202
202
  provider: {name: vast}
203
203
  model_profile: qwythos-9b
204
204
  lifecycle:
205
- idle_timeout: 15m # the watchdog on the machine stops it
205
+ idle_timeout: 15m # the watchdog on the machine shuts it down
206
206
  max_lifetime: 6h # a hard ceiling, busy or not
207
207
  budget:
208
208
  max_hourly_cost_usd: 0.60 # offers above this are never rented
@@ -161,7 +161,7 @@ gpu_runtime:
161
161
  provider: {name: vast}
162
162
  model_profile: qwythos-9b
163
163
  lifecycle:
164
- idle_timeout: 15m # the watchdog on the machine stops it
164
+ idle_timeout: 15m # the watchdog on the machine shuts it down
165
165
  max_lifetime: 6h # a hard ceiling, busy or not
166
166
  budget:
167
167
  max_hourly_cost_usd: 0.60 # offers above this are never rented
@@ -73,11 +73,11 @@ Image extras go in the body (`extra_body` in the SDK): `num_inference_steps`, `g
73
73
 
74
74
  ## 3. Lifecycle
75
75
 
76
- - Requests are activity. The server counts them on `/metrics` and the watchdog reads that, so the machine stays up while clients call it and stops by itself after `lifecycle.idle_timeout` (15 min) once they stop. `max_lifetime` and the session budget still apply.
76
+ - Requests are activity. The server counts them on `/metrics` and the watchdog reads that, so the machine stays up while clients call it and shuts down by itself after `lifecycle.idle_timeout` (15 min) once they stop. `max_lifetime` and the session budget still apply.
77
77
  - Changing the model keeps the machine. Edit `model.id` or `model.task` (or your server's code) and run `gpu setup`: it stops the running server and starts the new one on the same GPU. `gpu redeploy` restarts it with nothing changed. A bigger `min_vram_gb` does need a new machine (`gpu setup --recreate`).
78
78
  - A machine serves one model, and the GPU takes one request at a time; the rest queue. For concurrent chat traffic, use vLLM.
79
79
  - `gpu logs` shows the server's log (installs, download, load, tracebacks). A server that dies while loading ends `gpu setup` with its last lines.
80
- - A stopped machine keeps its disk, weights included: `gpu setup` restarts it and redeploys in about a minute.
80
+ - When the machine is stopped, it keeps its disk, weights included: `gpu setup` restarts it and redeploys in about a minute. On Vast.ai an idle machine is destroyed instead, because a stopped one still bills its disk, so the next `gpu setup` rents a new one and downloads again (`lifecycle.keep_disk: true` stops it instead).
81
81
 
82
82
  ## 4. Your own server (`runtime.engine: custom`)
83
83
 
@@ -1,6 +1,6 @@
1
1
  # Acceptance criteria: where each one is implemented and tested
2
2
 
3
- Eighteen guarantees, mapped to the code and the test that holds each one.
3
+ Twenty-three guarantees, mapped to the code and the test that holds each one.
4
4
 
5
5
  | # | Guarantee | Implementation | Test |
6
6
  | --- | --- | --- | --- |
@@ -22,6 +22,11 @@ Eighteen guarantees, mapped to the code and the test that holds each one.
22
22
  | 16 | Orphans are found account-wide, each project keeps its own rules, and nothing else is touched | `GPUProvider.list_instances` (capability `list_instances`) returns only `jambu-` labels; `gpu setup` registers the project in `~/.gpu/projects.json`; `core/sweep.py::guard_projects` runs each registered project's own `Engine.guard_tick`; only untracked instances are orphans: running past `--orphan-max-age` is stopped (never destroyed), stopped past `--stopped-ttl` (from the sweep's own first sighting in `~/.gpu/sweep.json`) is destroyed; `gpu sweep --install-timer` schedules one working-directory-independent unit and refuses a key that is only in the shell | `test_sweep.py::test_vast_lists_only_jambu_labelled_instances`, `::test_non_jambu_instances_are_never_touched`, `::test_another_projects_restarted_and_locked_instance_is_not_destroyed`, `::test_each_project_is_judged_by_its_own_max_lifetime`, `::test_a_running_orphan_past_orphan_max_age_is_stopped_never_destroyed`, `::test_a_stopped_orphan_is_destroyed_once_seen_stopped_past_stopped_ttl`, `::test_install_timer_writes_one_unit_independent_of_the_project`, `::test_install_timer_refuses_a_key_only_in_the_shell_environment` |
23
23
  | 17 | The CLI guard never stops a serving endpoint it cannot see | `Engine._idle_blind`: with the watchdog enabled and installed but unreachable, `guard_tick` evaluates without `idle_timeout` and records `idle_skipped`; `max_lifetime`, budget and `stopped_ttl` still apply | `test_engine_sessions.py::test_guard_leaves_idle_to_an_unreachable_watchdog`, `::test_max_lifetime_still_applies_when_the_watchdog_is_unreachable` |
24
24
  | 18 | A fresh stop or a short API outage never costs the disk | `RuntimeState.mark_stopped` restarts `stopped_since` on evidence the instance ran since; the watchdog escalates a failing stop to destroy only after `escalate_after_s` (30m) of continuous failure and resets on renewed use | `test_engine_sessions.py::test_a_stale_stopped_since_does_not_destroy_a_fresh_stop`, `test_watchdog.py::test_an_api_blip_does_not_destroy_the_disk`, `::test_failures_reset_when_the_instance_is_back_in_use` |
25
+ | 19 | A manual stop that keeps billing is never silent, and something removes it | `Engine.stop` returns `still_billing`, `stopped_cost_usd_per_day` (Vast: `storage_cost` x disk) and a `warning` naming the bill and whether the sweep timer will remove it; every `gpu` command warns on stderr about a registered machine stopped and billing (`core/sweep.py::stopped_and_billing`, state files only); `gpu agent install` asks once to install the sweep timer, the only thing that enforces `stopped_ttl` on a stopped machine | `test_field_run.py::test_stop_where_a_stopped_machine_bills_says_so_and_names_the_bill`, `::test_every_command_warns_about_a_stopped_machine_still_billing`, `::test_acceptance_manual_stop_then_only_the_timer_runs`, `::test_agent_install_asks_once_for_the_sweep_timer` |
26
+ | 20 | A project is never kept where it will be lost, and a lost project's machine can be taken over | `gpu init` refuses a temporary or scratchpad folder (`core/paths.py::ephemeral_reason`, `--allow-temp` overrides); `gpu adopt` (`Engine.adopt`) takes over an orphan, recovering its watchdog token and model key from the boot script the provider kept (`GPUProvider.boot_script`, `watchdog/builder.py::recover_boot_secrets`, which never returns the provider key) | `test_field_run.py::test_init_refuses_a_temp_or_scratchpad_directory`, `::test_adopt_takes_over_an_orphan_with_its_watchdog_and_key`, `::test_adopt_refuses_another_projects_machine_or_a_foreign_one`, `::test_boot_script_recovery_reads_the_token_and_key_but_never_the_provider_key` |
27
+ | 21 | The card the user approved is the card rented, at no more than the price quoted | `gpu offers` remembers its offers in `.gpu/offers.json`; `gpu setup --offer ID` pins the card's name and caps the price at the quote, host retries included, and rents nothing if it is gone; every setup reports `rented`, `quoted` and `matches_quote` | `test_field_run.py::test_a_pinned_setup_never_falls_back_to_another_card`, `::test_a_pinned_setup_never_pays_more_than_the_quote`, `::test_a_pinned_host_retry_stays_on_the_quoted_card`, `::test_an_unpinned_setup_says_when_it_rented_something_else` |
28
+ | 22 | A machine that vanished leaves a reason | `Engine._why_missing` replays this project's rules on what was last known; when they called for a destroy, the reconcile records `instance_destroyed reason=<rule> by=watchdog inferred=true`, else `likely_reason: unknown`; setup brings the watchdog's own events home as soon as the machine is ready | `test_field_run.py::test_a_machine_gone_after_its_idle_timeout_is_recorded_as_the_watchdogs_doing`, `::test_a_machine_gone_while_in_use_is_not_blamed_on_the_watchdog`, `::test_setup_brings_the_watchdogs_own_events_home` |
29
+ | 23 | The GPU is sized for the peak and offers can be compared per job | `model_inspect.known_vram_floor` (SDXL 16/24 GB, FLUX 24/32 GB) raises `gpu init`'s default and makes `validate` warn; `gpu offers --for <minutes on an RTX 4090>` ranks by estimated job cost (`providers/gpus.py::relative_speed`) | `test_field_run.py::test_validate_warns_when_the_card_is_sized_for_the_weights_not_the_peak`, `::test_init_sizes_a_known_image_model_for_its_peak`, `::test_offers_for_a_job_rank_by_the_cost_of_the_whole_job` |
25
30
 
26
31
  ## Validated on real hardware
27
32
 
@@ -75,6 +80,24 @@ The first attempt found problems the unit tests had missed. Each is fixed and te
75
80
  - the host that failed last when setup gave up was not remembered as bad, so the next setup rented it again;
76
81
  - on Vast, three hosts in a row stalled 30 minutes each pulling the 12 GB Docker Hub image, and setup gave up after 90 minutes with nothing left billing. Vast now defaults to `vastai/vllm:v0.32.0-cuda-13.0`, the same vLLM that Vast's hosts cache: in the cancel test the container was running within a minute.
77
82
 
83
+ ## A real session, filmed (0.12.0, 2026-11-11)
84
+
85
+ A Claude Code session used GPU for Agents 0.12.0 end to end to make images for the home page with SDXL and to run a CUDA benchmark, filmed for the home page video. It was real use, not a test, and it found the problems fixed in 0.13.0 (guarantees 19 to 23). These held, and must keep holding:
86
+
87
+ | What held | Evidence |
88
+ | --- | --- |
89
+ | The agent asked before renting, with the model, the card, its price per hour, the $1/h cap and the $5 session cap | the transcript (`video/public/footage/with.screens.txt`) |
90
+ | It reused the running machine for a second task (the benchmark) instead of renting another | take 2's events: `job_submitted` on the same instance after the image workloads |
91
+ | It reported the cost (about $0.06) and what was still billing | the transcript |
92
+ | It recovered by itself from an out-of-memory error and from missing NVRTC headers | the transcript; `workload_finished` failed then finished in take 2's events |
93
+ | After the session was killed, take 1's machine was gone within about 30 minutes | take 1 was idle from 00:32:56; with `idle_timeout` 15m and a Vast.ai stop that bills, the watchdog destroys. Its local log said only "instance missing at provider", because the watchdog's events had not been fetched before the machine went. 0.13.0 records the inferred reason (guarantee 22) and fetches the watchdog's events at setup |
94
+
95
+ What it got wrong, and the fix:
96
+ - the agent ended with `gpu stop`, which on Vast.ai keeps billing the disk, and nothing would ever destroy it: no sweep timer was installed (19);
97
+ - the project lived in the agent's session scratchpad, so a later session saw the machine as an orphan it could not use (20);
98
+ - `min_vram_gb: 9` for SDXL: the 12 GB card ran out of memory decoding 1344x768, and the idle server held 11 GB the benchmark needed (23);
99
+ - the approval quoted an RTX 3060 at about $0.08/h; an RTX 2060 at $0.094/h was rented, and the agent noticed only in its final report (21).
100
+
78
101
  ## The MVP command surface
79
102
 
80
103
  `gpu.yaml` schema, CLI, provider contract, provider registry, Vast.ai adapter,
@@ -2,7 +2,7 @@
2
2
 
3
3
  `gpu` ships a skill and a local MCP server, so Claude Code, Codex, Gemini CLI, Cursor or Claude Desktop can rent a GPU, serve a model, run an experiment against it and shut it down, from a request like "compare Qwen 7B and Llama 8B on these 50 prompts".
4
4
 
5
- A watchdog on the machine makes this safe to hand to an agent. A machine the agent forgets, or a conversation that ends mid-experiment, stops by itself after `lifecycle.idle_timeout`.
5
+ A watchdog on the machine makes this safe to hand to an agent. A machine the agent forgets, or a conversation that ends mid-experiment, shuts down by itself after `lifecycle.idle_timeout`.
6
6
 
7
7
  ## Install: let the agent do it
8
8
 
@@ -77,16 +77,17 @@ Another agent that reads `SKILL.md` files: `gpu agent skill > path/to/skills/gpu
77
77
  | --- | --- | --- |
78
78
  | `gpu_init` | write `gpu.yaml` for a model, with an optional price cap and VRAM | no |
79
79
  | `gpu_validate` | check the config and credentials | no |
80
- | `gpu_offers` | cheapest matching machines and their price | no |
81
- | `gpu_setup` | rent / restart and wait for the model; returns `base_url`, `api_key`, `model` | yes |
80
+ | `gpu_offers` | cheapest matching machines and their price; with `for_minutes_on_4090`, ranked by the estimated cost of the whole job | no |
81
+ | `gpu_setup` | rent / restart and wait for the model; returns `base_url`, `api_key`, `model`, and `rented` next to `quoted`. With `offer_id` only the approved card, at no more than its quoted price, is rented | yes |
82
82
  | `gpu_status` | state, cost so far, idle time, the watchdog's next move, setup progress | no |
83
83
  | `gpu_connection` | `base_url`, `api_key`, `model` without starting anything | no |
84
84
  | `gpu_run` | run a local command with `OPENAI_BASE_URL` / `OPENAI_API_KEY` / `JAMBU_MODEL_ID` set | yes, if it has to start the machine |
85
85
  | `gpu_logs` | runtime, onstart, watchdog or provider log | no |
86
86
  | `gpu_lock` / `gpu_unlock` | keep the machine up through a quiet period | while locked |
87
- | `gpu_stop` | stop now; disk kept, restart takes about a minute | ends billing for compute |
88
- | `gpu_destroy` | delete; needs `confirm=true` | ends all billing |
87
+ | `gpu_stop` | stop now; disk kept, restart takes about a minute. On Vast.ai the disk keeps billing; the result says how much | ends billing for compute |
88
+ | `gpu_destroy` | delete; needs `confirm=true`; downloads job results first, `discard_outputs=true` deletes them. The default cleanup once the work is done | ends all billing |
89
89
  | `gpu_ls` | every machine in the account, from any project | no |
90
+ | `gpu_adopt` | make an orphan (a machine whose project folder was lost) belong to this project, to reuse or destroy it | no |
90
91
 
91
92
  Each tool runs the `gpu` CLI with `--json` in the project directory, so errors carry the same `exit_code` as the [application contract](INTEGRATION.md#exit-codes), plus `meaning` and `next` for the agent. A tool takes an optional `project_dir`; by default it is the server's `--project`, `$GPU_PROJECT_DIR`, or the directory the client started it in.
92
93
 
@@ -94,7 +95,7 @@ Each tool runs the `gpu` CLI with `--json` in the project directory, so errors c
94
95
 
95
96
  ## What keeps the agent in line
96
97
 
97
- - The skill tells the agent to show the price and ask before renting, wait out a slow setup instead of starting over, never touch the provider key, and offer stop or destroy (and check `gpu_ls`) when done.
98
+ - The skill tells the agent to keep the project in the user's repository, size the card for the peak, show one offer's card and price and ask before renting, rent that offer only (`offer_id`) and report any change, wait out a slow setup instead of starting over, never touch the provider key or go looking for keys, and destroy once the work is done and its results are home (and check `gpu_ls`).
98
99
  - The server's tool annotations mark `gpu_destroy` destructive and the read-only tools read-only, so a client can let `gpu_status` run freely and ask for every `gpu_setup` and `gpu_destroy`. In Claude Code that is the `permissions` list in `.claude/settings.json`, e.g. `"allow": ["mcp__gpu__gpu_status", "mcp__gpu__gpu_offers", "mcp__gpu__gpu_ls"]`.
99
100
  - `gpu.yaml` holds the hard limits the agent cannot exceed without editing the file: `budget.max_hourly_cost_usd`, `budget.max_session_cost_usd`, `lifecycle.max_lifetime`.
100
101
  - The watchdog stops the machine after `idle_timeout` whatever the agent does, and `gpu sweep --install-timer` catches anything left behind.
@@ -113,9 +113,9 @@ which source each number comes from.
113
113
 
114
114
  | Field | Default | Meaning |
115
115
  | --- | --- | --- |
116
- | `gpu.min_vram_gb` | `24` | Minimum VRAM per GPU. |
116
+ | `gpu.min_vram_gb` | `24` | Minimum VRAM per GPU. Size for the peak, not the weights. `gpu init` raises it for image models whose peak the weights hide (SDXL 16, FLUX 24), and `validate` warns below that. |
117
117
  | `gpu.count` | `1` | Number of GPUs on one machine. |
118
- | `gpu.name_filter` | – | Substring match, e.g. `A100`, `RTX 4090`. |
118
+ | `gpu.name_filter` | – | Substring match, e.g. `A100`, `RTX 4090`. `gpu setup --offer ID` pins the approved offer's card the same way for one setup, and caps the price at its quote. |
119
119
  | `gpu.cuda_min` | – | Minimum host CUDA version. `gpu` raises it to what the runtime image needs, read from its tag (`-cu129` means 12.9, vLLM's bare `v0.32+` and `latest` mean 13.0), so an image never lands on a driver too old to run it. |
120
120
  | `gpu.compute_cap_min` | – | Minimum GPU compute capability (architecture), e.g. `8.0` for Ampere. Distinct from `cuda_min`: a Pascal (GTX 10xx, 6.1) or Volta (V100, 7.0) card can sit behind a modern CUDA-13 driver, and so clear `cuda_min`, yet still be too old for a runtime image whose kernels are built for newer architectures. The image then crashes at engine startup. `gpu` raises this to what the runtime needs: a CUDA-13 vLLM image floors it at `8.0` (those wheels drop Volta), a CUDA-12 vLLM image at `7.0`. The cheapest Vast offers are often these old cards, so without the floor the search keeps picking a GPU the image cannot run. |
121
121
  | `disk_gb` | `80` | Disk. Must fit the model weights plus the container. |
@@ -191,7 +191,7 @@ The cost protection. See [the safety invariant](#safety-invariant).
191
191
  | --- | --- | --- |
192
192
  | `max_lifetime` | `6h` | Hard ceiling on instance age. `null` = unbounded. |
193
193
  | `idle_timeout` | `15m` | Shut down after this long with no activity. `null` = unbounded. |
194
- | `stopped_ttl` | `24h` | Destroy an instance that has been `STOPPED` this long. A stopped Vast instance no longer bills GPU time but still bills storage. `null` keeps stopped instances forever. |
194
+ | `stopped_ttl` | `24h` | Destroy an instance that has been `STOPPED` this long. A stopped Vast instance no longer bills GPU time but still bills storage. `null` keeps stopped instances forever. Enforced only from your computer (`gpu sweep --install-timer`, which `gpu agent install` offers); `gpu stop` says whether that is set up. |
195
195
  | `auto_stop` | `true` | The guard may stop the instance. |
196
196
  | `auto_destroy` | `false` | The guard destroys instead of stopping. |
197
197
  | `keep_disk` | `false` | Where a stopped instance still bills storage (Vast.ai, a RunPod pod with a volume), the guard destroys the instance instead of stopping it, because nothing on a stopped machine can remove it later. `true` stops it, keeping the disk for a restart in about a minute, and leaves the removal to `stopped_ttl`, which only `gpu guard` or `gpu sweep` on your computer enforce (`gpu sweep --install-timer`). |
@@ -7,7 +7,7 @@ How any application, in any language, uses a GPU that `gpu` rents, serves and sh
7
7
  | Control | the `gpu` command | runs it as a subprocess with `--json` and reads stdout and the exit code |
8
8
  | Data | vLLM's OpenAI-compatible HTTP API | any OpenAI SDK, or plain HTTP, with the base URL, key and model `gpu` printed |
9
9
 
10
- The app never has to stop the GPU. The watchdog on the machine stops it once nothing has used it for `lifecycle.idle_timeout`, and every inference request counts as use. The app's only duty is to call `gpu setup` again when the machine it was using is gone.
10
+ The app never has to stop the GPU. The watchdog on the machine shuts it down once nothing has used it for `lifecycle.idle_timeout`, and every inference request counts as use. The app's only duty is to call `gpu setup` again when the machine it was using is gone.
11
11
 
12
12
  ## 1. Prepare the host the app runs on
13
13
 
@@ -67,10 +67,20 @@ The watchdog runs inside a bash respawn loop started with `nohup`. If the watchd
67
67
 
68
68
  A stopped Vast.ai instance still bills for storage, and its watchdog is not running. So where a stop leaves a bill behind, the policy destroys instead of stopping, for idle, `max_lifetime` and the budget alike. `lifecycle.keep_disk: true` keeps the old behavior (stop, restart in about a minute) for users who accept the storage bill.
69
69
 
70
- A stopped instance is then destroyed once it has been stopped longer than `lifecycle.stopped_ttl` (reason `stopped_ttl`). This needs destroy support and no active lock. Nothing runs on a stopped machine, so only your computer can enforce it: `gpu guard`, `gpu sweep`, or the timer `gpu sweep --install-timer` writes (systemd on Linux, a LaunchAgent on macOS). A manual `gpu stop` on Vast.ai is covered by the same rule.
70
+ A stopped instance is then destroyed once it has been stopped longer than `lifecycle.stopped_ttl` (reason `stopped_ttl`). This needs destroy support and no active lock. Nothing runs on a stopped machine, so only your computer can enforce it: `gpu guard`, `gpu sweep`, or the timer `gpu sweep --install-timer` writes (systemd on Linux, a LaunchAgent on macOS). `gpu agent install` asks once whether to install that timer. A manual `gpu stop` on Vast.ai is covered by the same rule.
71
+
72
+ A manual stop is the easy one to forget, so it is never silent. Where a stopped machine still bills, `gpu stop` (and the MCP `gpu_stop`) returns `still_billing: true`, the disk's cost per day (`stopped_cost_usd_per_day`, from Vast's `storage_cost` and the disk size) and a `warning` that says whether the sweep timer will remove it after `stopped_ttl`. After that, every `gpu` command, in any directory, warns on stderr about each registered machine still stopped and billing, until the timer is on (or, with it, once one is past its `stopped_ttl`). That check reads state files only; it never calls the provider. `GPU_NO_STOPPED_CHECK=1` silences it. The skill tells the agent to destroy, not stop, once the work is done and its results are home.
71
73
 
72
74
  `stopped_since` keeps the first time the CLI saw the instance stopped, but only while nothing says it ran since. A session start, local activity, watchdog contact or a provider start time newer than `stopped_since` means the instance was restarted and stopped again while the CLI was not looking (from the web console, say), so the clock restarts at the current observation instead of destroying a fresh stop.
73
75
 
76
+ ## Job results
77
+
78
+ A job's results are on the machine's disk until someone downloads them. No automatic shutdown deletes them unseen.
79
+
80
+ On the machine, the job runner marks a job's outputs saved once `GET /jobs/<id>/outputs` streamed them after the job ended and nothing changed since. While any are unsaved, it changes what the watchdog does (a `TERMINATE_HOOKS` entry): a destroy becomes a stop where a stop keeps the disk (`outputs_kept`); where it would not (no persistent disk, or no stop at all), an idle shutdown waits up to 2 hours after the last job ended (`outputs_hold`). After that, or when `max_lifetime` or the budget fires there, the machine goes and the event is `outputs_lost`. An explicit `gpu stop` or `gpu destroy` and the stop-failure escalation are not changed.
81
+
82
+ On this computer, `gpu guard` and `gpu sweep` download the results of finished jobs into `gpu-outputs/<job id>/` while the machine runs, and before any automatic destroy. A stopped machine that still holds results, on a provider where a stopped machine bills and without `keep_disk`, is started, emptied and destroyed (reason `job_outputs_saved`); a failed attempt is retried after an hour and recorded as `job_outputs_kept`. `gpu job pull` starts a stopped machine too, and puts it back afterwards. `gpu destroy` downloads first and refuses when it cannot, unless `--discard-outputs`. `gpu status` lists the jobs whose results are only on the machine (`job_outputs_unsaved`).
83
+
74
84
  ## A second path
75
85
 
76
86
  Run the same rule from anywhere that has API access:
@@ -83,6 +93,12 @@ Run the same rule from anywhere that has API access:
83
93
 
84
94
  Inference traffic is counted on the instance only. When the watchdog is enabled and installed but did not answer during this reconcile, `guard` therefore does not apply `idle_timeout`: its local idle clock would stop an endpoint that is busy serving requests. `max_lifetime`, the session budget and `stopped_ttl` still apply, and the decision detail records `idle_skipped: watchdog_unreachable`. With `lifecycle.watchdog.enabled: false` the CLI guard owns the idle rule as before.
85
95
 
96
+ ## A machine that vanished
97
+
98
+ A destroyed machine leaves nothing to ask: the provider forgets it, and its watchdog went with it. When the CLI next finds the machine missing, it replays this project's own rules (`idle_timeout`, `max_lifetime`, the session budget) on what it last knew. If they called for a destroy by now (on a provider where a stop bills and without `keep_disk`), it records `instance_destroyed` with that `reason`, `by: watchdog` and `inferred: true`, and `state_reconciled` carries `likely_reason`, e.g. `idle_timeout (watchdog)`. Otherwise `likely_reason` is `unknown`: the provider console, another tool, the host, or an account out of credit.
99
+
100
+ The watchdog's own events (`watchdog_identified`, `instance_idle`, ...) used to reach the local log only on a later command. `gpu setup` now fetches them as soon as the machine is ready, so a machine that goes while nobody runs gpu still has the record that it was guarded.
101
+
86
102
  ## A model server that dies at boot
87
103
 
88
104
  The runtime start command writes the model server's pid to `/var/run/jambu/vllm.pid`. `GET /state` reports `runtime_alive`: `true` or `false` from that pid, `null` while there is no pid file yet (or only one older than the current container start). If the process is gone while the instance is still starting, the watchdog logs `runtime_exited` once and ends startup, so the idle rules apply instead of a startup grace (`boot_timeout` + `startup_timeout` + 5 minutes) kept open by a dead server.
@@ -6,23 +6,24 @@ Operator reference. The project front page is the [README](../README.md). Field-
6
6
 
7
7
  | Command | What it does |
8
8
  | --- | --- |
9
- | `gpu init` | Write a starter `gpu.yaml` and `.env.example` (`--flat` for a legacy `config.yml`) |
9
+ | `gpu init` | Write a starter `gpu.yaml` and `.env.example` (`--flat` for a legacy `config.yml`). Refuses a temporary or scratchpad folder, where the project would be lost (`--allow-temp` overrides) |
10
10
  | `gpu inspect-model <repo>` | Suggest `min_vram_gb`, `dtype`, and `tool_calling` for a HuggingFace model, with sources cited. `--add-profile <name>` writes it into the model catalog |
11
11
  | `gpu profiles` | List the model profiles in `gpu.models.yaml` |
12
12
  | `gpu providers` | Provider capability matrix and credential status |
13
13
  | `gpu validate` | Schema, policy, credentials, capabilities, real capacity. Fails before provisioning |
14
- | `gpu offers` | Matching GPU offers and their hourly price |
15
- | `gpu setup` | Provision, install the watchdog, start the runtime, wait for READY |
14
+ | `gpu offers` | Matching GPU offers and their hourly price. `--for 30` (minutes the job takes on an RTX 4090) ranks them by the estimated cost of the whole job |
15
+ | `gpu setup` | Provision, install the watchdog, start the runtime, wait for READY. `--offer ID` rents only that offer's card at no more than its quoted price; the result reports `rented` next to `quoted` |
16
16
  | `gpu run <cmd>` | Guarantee READY, then run the command with heartbeats |
17
17
  | `gpu status` | Reconcile local and provider state, show the guard decision |
18
18
  | `gpu lock --for 2h` | Prevent automatic shutdown until the TTL expires |
19
19
  | `gpu unlock` | Resume normal lifecycle rules |
20
- | `gpu stop` | Stop compute. Idempotent |
21
- | `gpu destroy` | Destroy the remote resource. Idempotent |
20
+ | `gpu stop` | Stop compute. Idempotent. Where a stopped machine still bills its disk (Vast.ai) it says how much, and whether anything will remove it |
21
+ | `gpu destroy` | Destroy the remote resource. Idempotent. Job results not downloaded yet are fetched first; if that fails it refuses, and `--discard-outputs` deletes them |
22
22
  | `gpu logs` | The model server's log on the instance (`--source runtime\|onstart\|watchdog\|provider`, `--lines N`). Falls back to the provider's container log when the watchdog does not answer |
23
23
  | `gpu events` | Structured lifecycle event log |
24
24
  | `gpu guard` | Evaluate and enforce the lifecycle rule from cron or CI |
25
25
  | `gpu ls` | Every jambu instance in the provider account, and which registered project owns it |
26
+ | `gpu adopt <id>` | Make an orphan this project's, to reuse it or destroy it. Where the provider kept its boot script (Vast.ai), its watchdog and model key come back |
26
27
  | `gpu sweep` | Guard every registered project by its own rules, then report (or `--apply`) stops and destroys of orphans |
27
28
  | `gpu sweep --install-timer` | Schedule `sweep --apply` (systemd user timer on Linux, LaunchAgent on macOS), and register this project |
28
29
  | `gpu endpoint` | Print the model endpoint URL |
@@ -0,0 +1,192 @@
1
+ # Fixes found while filming the gpu4agents home page video (2026-11-11)
2
+
3
+ You are fixing problems that showed up when a real Claude Code session used GPU for Agents 0.12.0 end to end.
4
+ The session was filmed for the home page video, and the same run validated the product-video plugin.
5
+ Everything below was observed, not guessed; each item says where the evidence is. Work in two repositories:
6
+
7
+ - **gpu4agents**: `/home/administrator/workspaces/Jambu/Internal/jambu-gpu` (CLI, watchdog, `SKILL.md` installed by
8
+ `gpu agent install`, docs). Items G1–G8.
9
+ - **product-video plugin**: `/home/administrator/workspaces/Jambu/Internal/product-video`, branch
10
+ `feat/video-capabilities`, engine in `plugins/product-video/skills/make-video/engine` (tests: `npm test` there).
11
+ Items P1–P6. 1.2.2 already fixed a first batch (listed at the end); don't redo those.
12
+
13
+ Rules for this work: tests first for every behaviour change; keep the docs (`docs/LIFECYCLE.md`, `docs/CONFIG.md`,
14
+ `docs/AGENTS.md`, `SKILL.md`, `CHANGELOG.md`) in step with the code; never read or print provider keys (run anything
15
+ that needs Vast with `INFISICAL_PATH=/shared devrun ...`); ask the user before renting anything.
16
+
17
+ ## Evidence you can read
18
+
19
+ - The two recorded agent projects (gpu4agents state, `gpu.yaml`, `.gpu/state.json`, logs):
20
+ `/tmp/claude-1000/-home-administrator-demo-studio/9debbcee-26f6-48e3-9f2d-e99fa41c3840/scratchpad/hero-gpu/` (take 1)
21
+ and `/tmp/claude-1000/-home-administrator-demo-studio/378f23c4-a50a-41ac-bbaf-2d154953755b/scratchpad/heroimg/` (take 2).
22
+ Their registry is `/home/administrator/demo/home/.gpu/projects.json` (the filmed agent ran with HOME=/home/administrator/demo/home).
23
+ Read events with: `cd <project> && INFISICAL_PATH=/shared devrun bash -c 'env -i HOME=/home/administrator/demo/home PATH=/home/administrator/demo/bin-gpu:/usr/bin:/bin VAST_API_KEY="$VAST_API_KEY" gpu events'`
24
+ - What the agent said and did, as text: `jambu-gpu/video/public/footage/with.screens.txt`, `with-bench.screens.txt`;
25
+ full transcripts: `/home/administrator/demo/claude-clean/projects/-home-administrator-demo-studio/*.jsonl`.
26
+ - The skill the agent followed: `/home/administrator/demo/studio/.claude/skills/gpu4agents/SKILL.md` (same as the repo's).
27
+
28
+ ## gpu4agents
29
+
30
+ ### G1. The agent's cleanup leaves a stopped machine billing, forever (highest priority)
31
+
32
+ Observed: take 2's machine (Vast 60143985, RTX 2060) shows `instance_stopped reason=manual` at 01:10:43. The agent
33
+ itself ran `gpu stop` when done. It stayed STOPPED, billing disk, with its watchdog off. `stopped_ttl` (24h) is only
34
+ enforced from this computer (`gpu guard` / `gpu sweep` / the sweep timer), and no timer is installed here
35
+ (`systemctl --user list-timers` shows none), so nothing would ever destroy it.
36
+
37
+ Cause: `SKILL.md` rule 4 says *"offer `gpu_stop` (cheap to resume) or `gpu_destroy`… Destroy only with the user's
38
+ explicit yes."* That contradicts `docs/LIFECYCLE.md` §"A stopped Vast.ai instance still bills…": the automatic
39
+ policy destroys instead of stopping wherever a stop leaves a bill, unless `lifecycle.keep_disk: true`.
40
+
41
+ Fix:
42
+ 1. `SKILL.md` rule 4: when the work is done and the outputs are pulled, the default is `gpu_destroy`. This is the
43
+ same choice the watchdog makes, and nothing keeps billing. Offer `gpu_stop` only when the user says they'll be
44
+ back soon, or when `keep_disk: true`, and say that it bills disk until destroyed. Teaching the user to destroy
45
+ isn't a destructive surprise: the results are already home. Keep "ask before renting" as is.
46
+ 2. In the CLI, on a provider where a stopped machine bills and `keep_disk` is false, make `gpu stop` (and the MCP
47
+ `gpu_stop`) print and return a warning naming the bill: "stopped: still billing ~$X/day for disk; destroyed
48
+ after stopped_ttl only if `gpu sweep --install-timer` is set up". Also consider `gpu stop --destroy-after <dur>`.
49
+ 3. Make sure something enforces `stopped_ttl` on a machine with no timer. Either `gpu agent install` installs the
50
+ sweep timer (ask once, in the install flow), or every `gpu` command runs a cheap account-wide stopped-orphan
51
+ check and warns. Write an acceptance test for "manual stop, then nothing else runs" so it can't regress.
52
+
53
+ ### G2. The agent kept its GPU project in an ephemeral session folder; later sessions see an "orphan"
54
+
55
+ Observed: both takes created `gpu.yaml` under the Claude session scratchpad (`/tmp/claude-1000/.../scratchpad/heroimg`).
56
+ A new session in the same repo reported the machine as *"an RTX 3060 running… that no project tracks… I can't use it
57
+ because I don't have its key"* (`with.screens.txt`), and `gpu ls` from anywhere else shows `PROJECT orphan`.
58
+
59
+ Fix:
60
+ 1. `SKILL.md`: the project lives in the user's repository: `gpu.yaml` plus `.gpu/` at the repo root, with `.gpu/`
61
+ in `.gitignore`. Never in a temp or scratchpad folder. Generated scripts may live anywhere; the project may not.
62
+ 2. CLI: `gpu init` refuses (or warns loudly) when the directory is under the system temp dir.
63
+ 3. Add `gpu adopt <instance-id>`, or `gpu setup --adopt`. It takes over an orphan this account owns (re-identifies
64
+ its watchdog, writes local state) so a new session can reuse or destroy it. Mention it in `SKILL.md` where it
65
+ tells the agent to report orphans.
66
+
67
+ ### G3. GPU sizing: the agent picked a card too small for the work
68
+
69
+ Observed: the agent set `compute.gpu.min_vram_gb: 9` for SDXL (`heroimg/gpu.yaml`). It got a 12 GB card, and then:
70
+ - SDXL VAE decode at 1344×768 ran out of memory, so it fell back to 1024×576;
71
+ - the CUDA benchmark lost its 2 largest shapes because the idle SDXL server still held 11 GB of the same card.
72
+
73
+ Image generation took about 2.5 min an image.
74
+
75
+ Fix:
76
+ 1. Add `gpu.models.yaml` profiles for the common image models (SDXL base 1.0: `min_vram_gb: 16`, and 24 to be safe
77
+ at 1344×768 or above; FLUX: 24+) so the agent doesn't guess.
78
+ 2. `SKILL.md` sizing rule:
79
+ - size for the peak with about 1.5–2× headroom, not for the weights;
80
+ - when a server and a job share one card, stop the server before the job, or size for both;
81
+ - compare offers by the cost of the whole job (price/h × expected minutes on that card), not price/h alone: a
82
+ faster card at 3–4× the hourly price often costs about the same per job and finishes far sooner.
83
+ 3. Consider a `gpu offers --for <minutes-on-a-4090>` view that ranks by estimated job cost.
84
+
85
+ ### G4. The card the user approved is not the card that was rented
86
+
87
+ Observed: the approval question quoted an **RTX 3060 12 GB at ~$0.08/h**. The machine was an **RTX 2060**, and the
88
+ agent only noticed in its final report. Take 2's machine was rented after a host retry.
89
+
90
+ Fix: when the agent asks for approval, pin what it quoted: the offer id, or `gpu.name_filter` for that card. If
91
+ `host_attempts` falls back to a different card or a higher price, `gpu setup` must say so in its result
92
+ (`rented_gpu`, `rented_price` beside `quoted_*`), and `SKILL.md` must tell the agent to report the change before
93
+ starting work. A higher price than the approved one needs a new yes.
94
+
95
+ ### G5. The machine that vanished left no reason behind
96
+
97
+ Observed: take 1's machine (60143519) went away while nobody watched (it was running at ~00:38, gone by ~01:08).
98
+ The local log says only `state_reconciled … state=destroyed, reason=instance missing at provider`, and `gpu status`
99
+ says `watchdog not installed`. That project's events also have no `watchdog_identified`. We can't tell whether the
100
+ watchdog destroyed it (idle, as designed) or something else did.
101
+
102
+ Fix:
103
+ 1. Find out whether take 1's watchdog was installed. Take 1 went through `job_submitted` with `engine: hf`; check
104
+ that path installs and identifies the watchdog like `gpu setup` does. If it doesn't, that's a bug.
105
+ 2. Before the watchdog stops or destroys its machine, it records the reason somewhere the CLI can read after the
106
+ machine is gone. Options:
107
+ - the Vast instance label (set it to `jambu-…:destroyed:idle` just before the call);
108
+ - a small final POST to a URL from `gpu.yaml`;
109
+ - for Vast, the instance's last log line, if the API exposes it.
110
+
111
+ On reconcile, `gpu events` then records `destroyed reason=idle_timeout (watchdog)`, not "missing at provider".
112
+
113
+ ### G6. The agent enumerated the secret store
114
+
115
+ Observed: in the first (unsealed) take, the agent ran `INFISICAL_PATH=/shared devrun env | cut -d= -f1` to list
116
+ secret names. It then used an OpenAI key from there. That part was the operator's mistake: the agent had the
117
+ operator's environment.
118
+
119
+ Fix in `SKILL.md`: the only check for credentials is `gpu login --check`. Never list environment variables or a
120
+ secret manager to find keys, and never use another provider's key for work gpu4agents can do.
121
+
122
+ ### G7. Idle timeout is configurable: the docs and the agent's messages should say so
123
+
124
+ The agent told the user "it stops by itself after 15 min idle" as if fixed. In `SKILL.md` and the approval message,
125
+ say "after `idle_timeout` (15 min by default; yours to change in gpu.yaml)". The video now says "you set … how long
126
+ it may sit idle".
127
+
128
+ ### G8. Things that worked and must keep working (add them to `docs/ACCEPTANCE.md`)
129
+
130
+ - The agent asked before renting, with the model, card, $/h, the $1/h cap and the $5 session cap.
131
+ - It reused the running machine for a second task instead of renting another.
132
+ - It reported cost (~$0.06) and what was still billing.
133
+ - It recovered by itself from the out-of-memory error and from NVRTC missing headers.
134
+ - After the session was killed, take 1's machine was gone within about 30 min (confirm with G5).
135
+
136
+ ## product-video plugin
137
+
138
+ ### P1. Hyperframes layers can't be translated
139
+
140
+ `make/hyperframes.mjs` renders one file with literal `variables`, so a layer with words shows English in every
141
+ language. For this video the safety layer was made wordless and the words moved to a clip label. Fix:
142
+ - `variables` values may be story keys (`"$safety.line1"`);
143
+ - when any is, render one file per language (`layers/safety.<lang>.mp4`) and let `src/footage.tsx` pick the
144
+ language's file;
145
+ - hash per language;
146
+ - test it.
147
+
148
+ ### P2. Clip labels show `*emphasis*` literally
149
+
150
+ `Clips` in `src/footage.tsx` prints the label text raw. Render `*…*` as the accent colour, like the other scenes
151
+ (`Accented`), or strip the asterisks.
152
+
153
+ ### P3. Terminal capture can't answer an agent's choice menu on purpose
154
+
155
+ Claude Code's question dialogs (`AskUserQuestion`) take arrows and Enter, not typed text. Today the script types
156
+ "Yes, go ahead." and Enter happens to pick the recommended option. Add a `{ "choose": 1 }` step: N−1 Down presses,
157
+ then Enter, when a menu (`Enter to select`) is on screen. Document it in `references/footage.md`.
158
+
159
+ ### P4. Each take needs a manual reset
160
+
161
+ Between takes I had to delete the demo repo's outputs and the clean config's project memory
162
+ (`claude-clean/projects/<repo>`) by hand. Add `"before": ["git clean -fd site kernels", …]`: shell commands run in
163
+ `cwd` before recording, refusing paths outside it. Add `"fresh": true` too, to move the agent config's
164
+ `projects/<cwd-slug>` aside so the agent starts with no memory of earlier takes.
165
+
166
+ ### P5. A filmed session's own GPU spend is not in the video's ledger
167
+
168
+ The filmed agent rents on the same Vast account, outside `budget.json`. After a capture, read the cost the agent's
169
+ gpu4agents project recorded (`gpu --json status` in its project), or ask the operator. Then add it to the ledger
170
+ as `note: "filmed session"` so the budget report is the real total.
171
+
172
+ ### P6. Claude Code chrome in the footage
173
+
174
+ The recordings show the model banner, a "Share Claude Code and earn $10" line and auto-mode hints. Strip crops
175
+ avoid them now. A launcher option to hide tips would be cleaner (check `claude --help` and the settings for tips
176
+ and notices) and should be documented for filmed sessions.
177
+
178
+ ### Already fixed in 1.2.2 (commit 2f4f154): don't redo
179
+
180
+ - Blender on a rented GPU:
181
+ - each offer priced by the minutes that card needs, fastest within 1.5× the cheapest total;
182
+ - the card pinned with `name_filter`;
183
+ - 24 GB and compute 8.6 or newer;
184
+ - `idle_timeout` 5m;
185
+ - OptiX denoising on the card (40 s → 3 s a frame);
186
+ - job timeout at 3× the estimate;
187
+ - failed jobs charged to the ledger.
188
+ - `npm run check` no longer warns about a missing Blender when the clip renders on a rented GPU.
189
+ - Terminal capture:
190
+ - `"clean"`: an empty environment with its own HOME and PATH, and only the keys named in `pass`;
191
+ - `until` (a shell check) and `while` (a busy pattern) waits;
192
+ - `zoom` with a start scale, and short windows centred on the stage.
@@ -55,6 +55,10 @@ gpu_runtime:
55
55
 
56
56
  auto_stop: true
57
57
  auto_destroy: false
58
+ # Where a stopped instance still bills storage (Vast.ai), the guard
59
+ # destroys it instead of stopping. true stops it (disk kept, restart in
60
+ # about a minute) and leaves the removal to stopped_ttl.
61
+ keep_disk: false
58
62
 
59
63
  # Requests served by vLLM count as activity (read from its /metrics).
60
64
  traffic_counts_as_activity: true
@@ -100,3 +100,49 @@ qwen3.8-35b-a3b-distill:
100
100
  gpu_memory_utilization: 0.90
101
101
  tensor_parallel_size: 2
102
102
  tool_calling: auto # resolves to qwen3_xml automatically (qwen3.8 in the name)
103
+
104
+ # Image models: size for the peak, not the weights. SDXL's weights are ~7 GB,
105
+ # but the VAE decode at full resolution needs far more: on a 12 GB card it ran
106
+ # out of memory at 1344x768 (and an idle server on the same card took 11 GB
107
+ # from a job). 16 GB works at 1024x1024; 24 GB is the safe pick at 1344x768
108
+ # and up, or when a job shares the card.
109
+ sdxl-base:
110
+ model:
111
+ id: stabilityai/stable-diffusion-xl-base-1.0
112
+ task: image
113
+ compute:
114
+ gpu:
115
+ min_vram_gb: 16 # 24 to be safe at 1344x768 or larger
116
+ count: 1
117
+ disk_gb: 80
118
+ runtime:
119
+ engine: hf
120
+ port: 8000
121
+
122
+ flux-dev:
123
+ # Gated: accept the license on Hugging Face and set HF_TOKEN.
124
+ model:
125
+ id: black-forest-labs/FLUX.1-dev
126
+ task: image
127
+ hf_token_env: HF_TOKEN
128
+ compute:
129
+ gpu:
130
+ min_vram_gb: 24 # 32+ to keep the T5 encoder on the card at high resolution
131
+ count: 1
132
+ disk_gb: 100
133
+ runtime:
134
+ engine: hf
135
+ port: 8000
136
+
137
+ flux-schnell:
138
+ model:
139
+ id: black-forest-labs/FLUX.1-schnell
140
+ task: image
141
+ compute:
142
+ gpu:
143
+ min_vram_gb: 24
144
+ count: 1
145
+ disk_gb: 100
146
+ runtime:
147
+ engine: hf
148
+ port: 8000
@@ -1,5 +1,5 @@
1
1
  """GPU for Agents: GPUs your agent rents on its own, billed only while they work."""
2
2
 
3
- __version__ = "0.11.0"
3
+ __version__ = "0.13.0"
4
4
 
5
5
  __all__ = ["__version__"]