Commit 29e8dd9
feat(test): RunPod GPU cost attribution demo + test Dockerfile
Dockerfile.test: builds agent from source + PyTorch cu124 — no PyPI
release needed; works on any RunPod GPU Pod.
agent/tests/runpod_demo.py: end-to-end demo that proves the cost
attribution story:
Phase 1 — idle baseline: sample GPU power with no workload;
show projected monthly cost of leaving GPUs idle unmonitored
Phase 2 — fp32 dense matmul: saturate CUDA cores, record TFLOPS
Phase 3 — bf16 matmul: tensor core path, compare power vs TFLOPS
Phase 4 — token generation: simulated attention loop, tokens/s
Summary table: avg W, baseline-adjusted W, kWh/TFLOP, $/hr, $/month
--upload flag: submits best result to Green AI Index leaderboard
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 4ae6978 commit 29e8dd9
2 files changed
Lines changed: 571 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
0 commit comments