computefence 0.2.5__tar.gz → 0.2.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.
- computefence-0.2.6/PKG-INFO +185 -0
- computefence-0.2.6/README.md +171 -0
- computefence-0.2.6/computefence/__init__.py +1 -0
- computefence-0.2.6/computefence.egg-info/PKG-INFO +185 -0
- {computefence-0.2.5 → computefence-0.2.6}/pyproject.toml +1 -1
- computefence-0.2.5/PKG-INFO +0 -161
- computefence-0.2.5/README.md +0 -147
- computefence-0.2.5/computefence/__init__.py +0 -1
- computefence-0.2.5/computefence.egg-info/PKG-INFO +0 -161
- {computefence-0.2.5 → computefence-0.2.6}/LICENSE +0 -0
- {computefence-0.2.5 → computefence-0.2.6}/computefence/checks/__init__.py +0 -0
- {computefence-0.2.5 → computefence-0.2.6}/computefence/checks/dataset.py +0 -0
- {computefence-0.2.5 → computefence-0.2.6}/computefence/checks/environment.py +0 -0
- {computefence-0.2.5 → computefence-0.2.6}/computefence/checks/storage.py +0 -0
- {computefence-0.2.5 → computefence-0.2.6}/computefence/cli.py +0 -0
- {computefence-0.2.5 → computefence-0.2.6}/computefence/telemetry.py +0 -0
- {computefence-0.2.5 → computefence-0.2.6}/computefence.egg-info/SOURCES.txt +0 -0
- {computefence-0.2.5 → computefence-0.2.6}/computefence.egg-info/dependency_links.txt +0 -0
- {computefence-0.2.5 → computefence-0.2.6}/computefence.egg-info/entry_points.txt +0 -0
- {computefence-0.2.5 → computefence-0.2.6}/computefence.egg-info/requires.txt +0 -0
- {computefence-0.2.5 → computefence-0.2.6}/computefence.egg-info/top_level.txt +0 -0
- {computefence-0.2.5 → computefence-0.2.6}/setup.cfg +0 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: computefence
|
|
3
|
+
Version: 0.2.6
|
|
4
|
+
Summary: Don't lose another RunPod checkpoint to ephemeral disk before your job bills.
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Requires-Python: >=3.8
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: rich>=13.0.0
|
|
10
|
+
Requires-Dist: pandas>=1.5.0
|
|
11
|
+
Requires-Dist: typer>=0.9.0
|
|
12
|
+
Requires-Dist: requests>=2.28.0
|
|
13
|
+
Dynamic: license-file
|
|
14
|
+
|
|
15
|
+
# ComputeFence
|
|
16
|
+
|
|
17
|
+
**Don't lose another RunPod checkpoint to ephemeral disk before your job bills.**
|
|
18
|
+
|
|
19
|
+
One command before your training job starts. Catches the configuration mistakes that cost you hours of GPU compute and lost weights before billing begins.
|
|
20
|
+
|
|
21
|
+
Built for RunPod, Vast.ai, Lambda Labs, CoreWeave, Paperspace, and any bare metal GPU provider.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Install
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pip install computefence
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
No install required with UV:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
uvx computefence doctor
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Usage
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
computefence doctor
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
With dataset validation:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
computefence doctor --dataset train.csv --input-column text --label-column label
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
With checkpoint directory validation:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
computefence doctor --output-dir ./checkpoints
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Add to your pod startup script so it runs automatically before every job:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
pip install computefence && computefence doctor && python train.py
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Example Output
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
ComputeFence v0.2.5 — Pre-flight diagnostic
|
|
69
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
70
|
+
2 WARNINGS · 0 BLOCKERS · 3 PASSED
|
|
71
|
+
|
|
72
|
+
Environment
|
|
73
|
+
✓ Python 3.11.4
|
|
74
|
+
✓ PyTorch 2.1.0 detected
|
|
75
|
+
✓ CUDA available — NVIDIA A40
|
|
76
|
+
|
|
77
|
+
Storage
|
|
78
|
+
⚠ HF_HOME is not set. HuggingFace will cache to ephemeral local disk.
|
|
79
|
+
Fix: export HF_HOME=/workspace/.cache/huggingface
|
|
80
|
+
|
|
81
|
+
⚠ Root disk (/) — 14.3 GB free of 460.4 GB (below 20 GB threshold)
|
|
82
|
+
Fix: Free up disk space or move checkpoints to a larger volume
|
|
83
|
+
df -h to check usage
|
|
84
|
+
|
|
85
|
+
Dataset
|
|
86
|
+
✓ No dataset path provided — skipping dataset checks
|
|
87
|
+
|
|
88
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
89
|
+
2 warning(s) found. Review before launching.
|
|
90
|
+
|
|
91
|
+
Anonymous run stats are collected to improve ComputeFence.
|
|
92
|
+
To opt out: touch ~/.computefence_no_telemetry
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## What It Checks
|
|
98
|
+
|
|
99
|
+
**CUDA and GPU visibility**
|
|
100
|
+
Confirms PyTorch can see the GPU. Catches silent CPU fallback before it runs for eight hours at 24 seconds per iteration instead of 0.4.
|
|
101
|
+
|
|
102
|
+
**HuggingFace cache path**
|
|
103
|
+
Confirms model weights are writing to persistent storage. If HF_HOME points to ephemeral disk your weights disappear when the pod stops.
|
|
104
|
+
|
|
105
|
+
**Accelerate GPU count**
|
|
106
|
+
Confirms your distributed training config matches the GPUs actually on the instance. A mismatch leaves GPUs idle for the entire run with no error message.
|
|
107
|
+
|
|
108
|
+
**Disk space headroom**
|
|
109
|
+
Checks free space on workspace volumes and root disk. Warns below 20 GB. Blocks below 5 GB. Catches the failure where checkpoints stop saving at 90 percent completion because the disk filled.
|
|
110
|
+
|
|
111
|
+
**Checkpoint output directory**
|
|
112
|
+
Confirms your training script's output path is on persistent storage not ephemeral disk. HF_HOME and your checkpoint directory are separate paths — fixing one does not fix the other.
|
|
113
|
+
|
|
114
|
+
**Dataset integrity**
|
|
115
|
+
Optional scan for duplicates, missing values, and conflicting labels. Pass --dataset to enable.
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## What It Does Not Check
|
|
120
|
+
|
|
121
|
+
- Training script correctness
|
|
122
|
+
- Model architecture compatibility
|
|
123
|
+
- Learning rate or hyperparameter safety
|
|
124
|
+
- Runtime behaviour during the job
|
|
125
|
+
- GPU utilisation or dataloader throughput during training
|
|
126
|
+
|
|
127
|
+
ComputeFence addresses the job configuration layer before launch. It does not monitor the run.
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Why This Exists
|
|
132
|
+
|
|
133
|
+
I burned approximately £1,000 on GPU training runs that failed silently.
|
|
134
|
+
|
|
135
|
+
CUDA fell back to CPU with no error message. 24 seconds per iteration instead of 0.4. Class weights caused loss to collapse to 0.693 immediately. My dataset had 28,432 duplicate rows and 312 conflicting labels I only found after the run finished.
|
|
136
|
+
|
|
137
|
+
Nothing existed that caught these before the job started. So I built it.
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Real Operator Results
|
|
142
|
+
|
|
143
|
+
**David at Neuralic** ran ComputeFence on a RunPod A100. It caught HF_HOME writing to /root/.cache and an Accelerate GPU count mismatch. He fixed both before launch.
|
|
144
|
+
|
|
145
|
+
**Shahzeb Ali**, a computer vision engineer running client training jobs on RunPod, confirmed the storage warning matches real pod behaviour. He would not have caught the HF_HOME issue without the tool.
|
|
146
|
+
|
|
147
|
+
**An independent Vast.ai operator** ran computefence doctor six times overnight before a real training job without being prompted or paid to do so.
|
|
148
|
+
|
|
149
|
+
Thirteen independent ML engineers confirmed this problem across RunPod, Vast.ai, and AWS. Nine had lost checkpoints to ephemeral disk. Five confirmed Docker does not solve job-specific configuration mistakes.
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## The Problem It Solves
|
|
154
|
+
|
|
155
|
+
A healthy GPU does not mean you are running the right job.
|
|
156
|
+
|
|
157
|
+
Docker makes environments reproducible. It does not check whether your HuggingFace cache is writing to ephemeral storage that disappears on pod stop, whether your Accelerate config matches the GPUs on the instance, or whether your checkpoint output directory is on persistent storage.
|
|
158
|
+
|
|
159
|
+
ComputeFence addresses the job configuration layer — not the environment layer.
|
|
160
|
+
|
|
161
|
+
HF_HOME and your checkpoint output directory are separate paths. Fixing one does not fix the other. Both disappear on pod restart if they point to ephemeral disk.
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Founding Design Partner Pilot
|
|
166
|
+
|
|
167
|
+
Running high-cost GPU training jobs on RunPod or Vast.ai?
|
|
168
|
+
|
|
169
|
+
Three founding design partner spots at $99 for three months:
|
|
170
|
+
|
|
171
|
+
- Personal audit of your launch templates and persistent storage configuration
|
|
172
|
+
- ComputeFence installed into your pod startup scripts — pre-flight runs automatically before every job
|
|
173
|
+
- Slack or Discord webhook alert when a check fails or blocks a launch
|
|
174
|
+
- Monthly 30-minute call where you shape what gets built next
|
|
175
|
+
- Money back if it does not catch one actionable issue in three months
|
|
176
|
+
|
|
177
|
+
Email francisco@booth.ws to apply.
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## Links
|
|
182
|
+
|
|
183
|
+
- GitHub: https://github.com/Francisco-Booth/ComputeFence
|
|
184
|
+
- PyPI: https://pypi.org/project/computefence
|
|
185
|
+
```
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# ComputeFence
|
|
2
|
+
|
|
3
|
+
**Don't lose another RunPod checkpoint to ephemeral disk before your job bills.**
|
|
4
|
+
|
|
5
|
+
One command before your training job starts. Catches the configuration mistakes that cost you hours of GPU compute and lost weights before billing begins.
|
|
6
|
+
|
|
7
|
+
Built for RunPod, Vast.ai, Lambda Labs, CoreWeave, Paperspace, and any bare metal GPU provider.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pip install computefence
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
No install required with UV:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
uvx computefence doctor
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
computefence doctor
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
With dataset validation:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
computefence doctor --dataset train.csv --input-column text --label-column label
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
With checkpoint directory validation:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
computefence doctor --output-dir ./checkpoints
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Add to your pod startup script so it runs automatically before every job:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
pip install computefence && computefence doctor && python train.py
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Example Output
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
ComputeFence v0.2.5 — Pre-flight diagnostic
|
|
55
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
56
|
+
2 WARNINGS · 0 BLOCKERS · 3 PASSED
|
|
57
|
+
|
|
58
|
+
Environment
|
|
59
|
+
✓ Python 3.11.4
|
|
60
|
+
✓ PyTorch 2.1.0 detected
|
|
61
|
+
✓ CUDA available — NVIDIA A40
|
|
62
|
+
|
|
63
|
+
Storage
|
|
64
|
+
⚠ HF_HOME is not set. HuggingFace will cache to ephemeral local disk.
|
|
65
|
+
Fix: export HF_HOME=/workspace/.cache/huggingface
|
|
66
|
+
|
|
67
|
+
⚠ Root disk (/) — 14.3 GB free of 460.4 GB (below 20 GB threshold)
|
|
68
|
+
Fix: Free up disk space or move checkpoints to a larger volume
|
|
69
|
+
df -h to check usage
|
|
70
|
+
|
|
71
|
+
Dataset
|
|
72
|
+
✓ No dataset path provided — skipping dataset checks
|
|
73
|
+
|
|
74
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
75
|
+
2 warning(s) found. Review before launching.
|
|
76
|
+
|
|
77
|
+
Anonymous run stats are collected to improve ComputeFence.
|
|
78
|
+
To opt out: touch ~/.computefence_no_telemetry
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## What It Checks
|
|
84
|
+
|
|
85
|
+
**CUDA and GPU visibility**
|
|
86
|
+
Confirms PyTorch can see the GPU. Catches silent CPU fallback before it runs for eight hours at 24 seconds per iteration instead of 0.4.
|
|
87
|
+
|
|
88
|
+
**HuggingFace cache path**
|
|
89
|
+
Confirms model weights are writing to persistent storage. If HF_HOME points to ephemeral disk your weights disappear when the pod stops.
|
|
90
|
+
|
|
91
|
+
**Accelerate GPU count**
|
|
92
|
+
Confirms your distributed training config matches the GPUs actually on the instance. A mismatch leaves GPUs idle for the entire run with no error message.
|
|
93
|
+
|
|
94
|
+
**Disk space headroom**
|
|
95
|
+
Checks free space on workspace volumes and root disk. Warns below 20 GB. Blocks below 5 GB. Catches the failure where checkpoints stop saving at 90 percent completion because the disk filled.
|
|
96
|
+
|
|
97
|
+
**Checkpoint output directory**
|
|
98
|
+
Confirms your training script's output path is on persistent storage not ephemeral disk. HF_HOME and your checkpoint directory are separate paths — fixing one does not fix the other.
|
|
99
|
+
|
|
100
|
+
**Dataset integrity**
|
|
101
|
+
Optional scan for duplicates, missing values, and conflicting labels. Pass --dataset to enable.
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## What It Does Not Check
|
|
106
|
+
|
|
107
|
+
- Training script correctness
|
|
108
|
+
- Model architecture compatibility
|
|
109
|
+
- Learning rate or hyperparameter safety
|
|
110
|
+
- Runtime behaviour during the job
|
|
111
|
+
- GPU utilisation or dataloader throughput during training
|
|
112
|
+
|
|
113
|
+
ComputeFence addresses the job configuration layer before launch. It does not monitor the run.
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Why This Exists
|
|
118
|
+
|
|
119
|
+
I burned approximately £1,000 on GPU training runs that failed silently.
|
|
120
|
+
|
|
121
|
+
CUDA fell back to CPU with no error message. 24 seconds per iteration instead of 0.4. Class weights caused loss to collapse to 0.693 immediately. My dataset had 28,432 duplicate rows and 312 conflicting labels I only found after the run finished.
|
|
122
|
+
|
|
123
|
+
Nothing existed that caught these before the job started. So I built it.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Real Operator Results
|
|
128
|
+
|
|
129
|
+
**David at Neuralic** ran ComputeFence on a RunPod A100. It caught HF_HOME writing to /root/.cache and an Accelerate GPU count mismatch. He fixed both before launch.
|
|
130
|
+
|
|
131
|
+
**Shahzeb Ali**, a computer vision engineer running client training jobs on RunPod, confirmed the storage warning matches real pod behaviour. He would not have caught the HF_HOME issue without the tool.
|
|
132
|
+
|
|
133
|
+
**An independent Vast.ai operator** ran computefence doctor six times overnight before a real training job without being prompted or paid to do so.
|
|
134
|
+
|
|
135
|
+
Thirteen independent ML engineers confirmed this problem across RunPod, Vast.ai, and AWS. Nine had lost checkpoints to ephemeral disk. Five confirmed Docker does not solve job-specific configuration mistakes.
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## The Problem It Solves
|
|
140
|
+
|
|
141
|
+
A healthy GPU does not mean you are running the right job.
|
|
142
|
+
|
|
143
|
+
Docker makes environments reproducible. It does not check whether your HuggingFace cache is writing to ephemeral storage that disappears on pod stop, whether your Accelerate config matches the GPUs on the instance, or whether your checkpoint output directory is on persistent storage.
|
|
144
|
+
|
|
145
|
+
ComputeFence addresses the job configuration layer — not the environment layer.
|
|
146
|
+
|
|
147
|
+
HF_HOME and your checkpoint output directory are separate paths. Fixing one does not fix the other. Both disappear on pod restart if they point to ephemeral disk.
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## Founding Design Partner Pilot
|
|
152
|
+
|
|
153
|
+
Running high-cost GPU training jobs on RunPod or Vast.ai?
|
|
154
|
+
|
|
155
|
+
Three founding design partner spots at $99 for three months:
|
|
156
|
+
|
|
157
|
+
- Personal audit of your launch templates and persistent storage configuration
|
|
158
|
+
- ComputeFence installed into your pod startup scripts — pre-flight runs automatically before every job
|
|
159
|
+
- Slack or Discord webhook alert when a check fails or blocks a launch
|
|
160
|
+
- Monthly 30-minute call where you shape what gets built next
|
|
161
|
+
- Money back if it does not catch one actionable issue in three months
|
|
162
|
+
|
|
163
|
+
Email francisco@booth.ws to apply.
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## Links
|
|
168
|
+
|
|
169
|
+
- GitHub: https://github.com/Francisco-Booth/ComputeFence
|
|
170
|
+
- PyPI: https://pypi.org/project/computefence
|
|
171
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.6"
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: computefence
|
|
3
|
+
Version: 0.2.6
|
|
4
|
+
Summary: Don't lose another RunPod checkpoint to ephemeral disk before your job bills.
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Requires-Python: >=3.8
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: rich>=13.0.0
|
|
10
|
+
Requires-Dist: pandas>=1.5.0
|
|
11
|
+
Requires-Dist: typer>=0.9.0
|
|
12
|
+
Requires-Dist: requests>=2.28.0
|
|
13
|
+
Dynamic: license-file
|
|
14
|
+
|
|
15
|
+
# ComputeFence
|
|
16
|
+
|
|
17
|
+
**Don't lose another RunPod checkpoint to ephemeral disk before your job bills.**
|
|
18
|
+
|
|
19
|
+
One command before your training job starts. Catches the configuration mistakes that cost you hours of GPU compute and lost weights before billing begins.
|
|
20
|
+
|
|
21
|
+
Built for RunPod, Vast.ai, Lambda Labs, CoreWeave, Paperspace, and any bare metal GPU provider.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Install
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pip install computefence
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
No install required with UV:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
uvx computefence doctor
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Usage
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
computefence doctor
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
With dataset validation:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
computefence doctor --dataset train.csv --input-column text --label-column label
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
With checkpoint directory validation:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
computefence doctor --output-dir ./checkpoints
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Add to your pod startup script so it runs automatically before every job:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
pip install computefence && computefence doctor && python train.py
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Example Output
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
ComputeFence v0.2.5 — Pre-flight diagnostic
|
|
69
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
70
|
+
2 WARNINGS · 0 BLOCKERS · 3 PASSED
|
|
71
|
+
|
|
72
|
+
Environment
|
|
73
|
+
✓ Python 3.11.4
|
|
74
|
+
✓ PyTorch 2.1.0 detected
|
|
75
|
+
✓ CUDA available — NVIDIA A40
|
|
76
|
+
|
|
77
|
+
Storage
|
|
78
|
+
⚠ HF_HOME is not set. HuggingFace will cache to ephemeral local disk.
|
|
79
|
+
Fix: export HF_HOME=/workspace/.cache/huggingface
|
|
80
|
+
|
|
81
|
+
⚠ Root disk (/) — 14.3 GB free of 460.4 GB (below 20 GB threshold)
|
|
82
|
+
Fix: Free up disk space or move checkpoints to a larger volume
|
|
83
|
+
df -h to check usage
|
|
84
|
+
|
|
85
|
+
Dataset
|
|
86
|
+
✓ No dataset path provided — skipping dataset checks
|
|
87
|
+
|
|
88
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
89
|
+
2 warning(s) found. Review before launching.
|
|
90
|
+
|
|
91
|
+
Anonymous run stats are collected to improve ComputeFence.
|
|
92
|
+
To opt out: touch ~/.computefence_no_telemetry
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## What It Checks
|
|
98
|
+
|
|
99
|
+
**CUDA and GPU visibility**
|
|
100
|
+
Confirms PyTorch can see the GPU. Catches silent CPU fallback before it runs for eight hours at 24 seconds per iteration instead of 0.4.
|
|
101
|
+
|
|
102
|
+
**HuggingFace cache path**
|
|
103
|
+
Confirms model weights are writing to persistent storage. If HF_HOME points to ephemeral disk your weights disappear when the pod stops.
|
|
104
|
+
|
|
105
|
+
**Accelerate GPU count**
|
|
106
|
+
Confirms your distributed training config matches the GPUs actually on the instance. A mismatch leaves GPUs idle for the entire run with no error message.
|
|
107
|
+
|
|
108
|
+
**Disk space headroom**
|
|
109
|
+
Checks free space on workspace volumes and root disk. Warns below 20 GB. Blocks below 5 GB. Catches the failure where checkpoints stop saving at 90 percent completion because the disk filled.
|
|
110
|
+
|
|
111
|
+
**Checkpoint output directory**
|
|
112
|
+
Confirms your training script's output path is on persistent storage not ephemeral disk. HF_HOME and your checkpoint directory are separate paths — fixing one does not fix the other.
|
|
113
|
+
|
|
114
|
+
**Dataset integrity**
|
|
115
|
+
Optional scan for duplicates, missing values, and conflicting labels. Pass --dataset to enable.
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## What It Does Not Check
|
|
120
|
+
|
|
121
|
+
- Training script correctness
|
|
122
|
+
- Model architecture compatibility
|
|
123
|
+
- Learning rate or hyperparameter safety
|
|
124
|
+
- Runtime behaviour during the job
|
|
125
|
+
- GPU utilisation or dataloader throughput during training
|
|
126
|
+
|
|
127
|
+
ComputeFence addresses the job configuration layer before launch. It does not monitor the run.
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Why This Exists
|
|
132
|
+
|
|
133
|
+
I burned approximately £1,000 on GPU training runs that failed silently.
|
|
134
|
+
|
|
135
|
+
CUDA fell back to CPU with no error message. 24 seconds per iteration instead of 0.4. Class weights caused loss to collapse to 0.693 immediately. My dataset had 28,432 duplicate rows and 312 conflicting labels I only found after the run finished.
|
|
136
|
+
|
|
137
|
+
Nothing existed that caught these before the job started. So I built it.
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Real Operator Results
|
|
142
|
+
|
|
143
|
+
**David at Neuralic** ran ComputeFence on a RunPod A100. It caught HF_HOME writing to /root/.cache and an Accelerate GPU count mismatch. He fixed both before launch.
|
|
144
|
+
|
|
145
|
+
**Shahzeb Ali**, a computer vision engineer running client training jobs on RunPod, confirmed the storage warning matches real pod behaviour. He would not have caught the HF_HOME issue without the tool.
|
|
146
|
+
|
|
147
|
+
**An independent Vast.ai operator** ran computefence doctor six times overnight before a real training job without being prompted or paid to do so.
|
|
148
|
+
|
|
149
|
+
Thirteen independent ML engineers confirmed this problem across RunPod, Vast.ai, and AWS. Nine had lost checkpoints to ephemeral disk. Five confirmed Docker does not solve job-specific configuration mistakes.
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## The Problem It Solves
|
|
154
|
+
|
|
155
|
+
A healthy GPU does not mean you are running the right job.
|
|
156
|
+
|
|
157
|
+
Docker makes environments reproducible. It does not check whether your HuggingFace cache is writing to ephemeral storage that disappears on pod stop, whether your Accelerate config matches the GPUs on the instance, or whether your checkpoint output directory is on persistent storage.
|
|
158
|
+
|
|
159
|
+
ComputeFence addresses the job configuration layer — not the environment layer.
|
|
160
|
+
|
|
161
|
+
HF_HOME and your checkpoint output directory are separate paths. Fixing one does not fix the other. Both disappear on pod restart if they point to ephemeral disk.
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Founding Design Partner Pilot
|
|
166
|
+
|
|
167
|
+
Running high-cost GPU training jobs on RunPod or Vast.ai?
|
|
168
|
+
|
|
169
|
+
Three founding design partner spots at $99 for three months:
|
|
170
|
+
|
|
171
|
+
- Personal audit of your launch templates and persistent storage configuration
|
|
172
|
+
- ComputeFence installed into your pod startup scripts — pre-flight runs automatically before every job
|
|
173
|
+
- Slack or Discord webhook alert when a check fails or blocks a launch
|
|
174
|
+
- Monthly 30-minute call where you shape what gets built next
|
|
175
|
+
- Money back if it does not catch one actionable issue in three months
|
|
176
|
+
|
|
177
|
+
Email francisco@booth.ws to apply.
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## Links
|
|
182
|
+
|
|
183
|
+
- GitHub: https://github.com/Francisco-Booth/ComputeFence
|
|
184
|
+
- PyPI: https://pypi.org/project/computefence
|
|
185
|
+
```
|
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "computefence"
|
|
7
7
|
dynamic = ["version"]
|
|
8
|
-
description = "
|
|
8
|
+
description = "Don't lose another RunPod checkpoint to ephemeral disk before your job bills."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8"
|
|
11
11
|
license = "MIT"
|
computefence-0.2.5/PKG-INFO
DELETED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: computefence
|
|
3
|
-
Version: 0.2.5
|
|
4
|
-
Summary: Pre-flight validation for GPU training runs on rented infrastructure
|
|
5
|
-
License-Expression: MIT
|
|
6
|
-
Requires-Python: >=3.8
|
|
7
|
-
Description-Content-Type: text/markdown
|
|
8
|
-
License-File: LICENSE
|
|
9
|
-
Requires-Dist: rich>=13.0.0
|
|
10
|
-
Requires-Dist: pandas>=1.5.0
|
|
11
|
-
Requires-Dist: typer>=0.9.0
|
|
12
|
-
Requires-Dist: requests>=2.28.0
|
|
13
|
-
Dynamic: license-file
|
|
14
|
-
|
|
15
|
-
# ComputeFence
|
|
16
|
-
|
|
17
|
-
Pre-flight safety gate for ML training jobs on rented GPU compute. Built for RunPod, Vast.ai, Lambda Labs, CoreWeave, Paperspace, and any bare metal GPU provider.
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## Install
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
pip install computefence
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Or with UV (no install required):
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
uvx computefence doctor
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
## Usage
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
computefence doctor
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
With a dataset:
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
computefence doctor --dataset train.csv --input-column text --label-column label
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
With checkpoint output directory validation:
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
computefence doctor --output-dir ./checkpoints
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Add to your pod startup script so it runs automatically before every job:
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
pip install computefence && computefence doctor && python train.py
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
## Example output
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
ComputeFence v0.2.4 — Pre-flight diagnostic
|
|
65
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
66
|
-
2 WARNINGS · 0 BLOCKERS · 3 PASSED
|
|
67
|
-
|
|
68
|
-
Environment
|
|
69
|
-
✓ Python 3.11.4
|
|
70
|
-
✓ PyTorch 2.1.0 detected
|
|
71
|
-
✓ CUDA available — NVIDIA A40
|
|
72
|
-
|
|
73
|
-
Storage
|
|
74
|
-
⚠ HF_HOME is not set. HuggingFace will use default local cache.
|
|
75
|
-
Fix: export HF_HOME=/workspace/.cache/huggingface
|
|
76
|
-
⚠ Root disk (/) — 14.3 GB free of 460.4 GB (below 20 GB)
|
|
77
|
-
Fix: Free up disk space or move checkpoints to a larger volume: df -h to check usage
|
|
78
|
-
|
|
79
|
-
Dataset
|
|
80
|
-
✓ No dataset path provided — skipping dataset checks
|
|
81
|
-
|
|
82
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
83
|
-
2 warning(s) found. Review before launching.
|
|
84
|
-
Anonymous run stats are collected to improve ComputeFence. To opt out: touch ~/.computefence_no_telemetry
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
## What it checks
|
|
90
|
-
|
|
91
|
-
- **CUDA and GPU visibility** — confirms PyTorch can see the GPU and training will not silently fall back to CPU
|
|
92
|
-
- **HuggingFace cache path** — confirms model weights go to persistent storage not ephemeral disk that disappears on pod stop
|
|
93
|
-
- **Accelerate GPU count** — confirms your distributed training config matches the GPUs actually on the instance
|
|
94
|
-
- **Disk space headroom** — checks free space on workspace volumes and root disk. Warns below 20 GB, blocks below 5 GB
|
|
95
|
-
- **Checkpoint output directory** — confirms your training script's output path is on persistent storage not ephemeral disk (`--output-dir`)
|
|
96
|
-
- **Dataset integrity** — optional scan for duplicates, missing values, and conflicting labels (`--dataset`)
|
|
97
|
-
|
|
98
|
-
---
|
|
99
|
-
|
|
100
|
-
## What it does not check
|
|
101
|
-
|
|
102
|
-
- Training script correctness
|
|
103
|
-
- Model architecture compatibility
|
|
104
|
-
- Learning rate or hyperparameter safety
|
|
105
|
-
- Runtime monitoring during the job
|
|
106
|
-
- Dataloader throughput or GPU utilisation during training
|
|
107
|
-
|
|
108
|
-
---
|
|
109
|
-
|
|
110
|
-
## Why this exists
|
|
111
|
-
|
|
112
|
-
I burned approximately £1,000 on GPU training runs that failed silently.
|
|
113
|
-
|
|
114
|
-
CUDA fell back to CPU with no error. 24 seconds per iteration instead of 0.4. Class weights caused loss collapse to 0.693 immediately. My dataset had 28,432 duplicate rows and 312 conflicting labels I only found after the run.
|
|
115
|
-
|
|
116
|
-
Nothing existed that caught these before the job started. So I built it.
|
|
117
|
-
|
|
118
|
-
---
|
|
119
|
-
|
|
120
|
-
## Real operator results
|
|
121
|
-
|
|
122
|
-
**David at Neuralic** ran ComputeFence on a RunPod A100. It caught HF_HOME writing to `/root/.cache` and an Accelerate GPU count mismatch. He fixed both before launch.
|
|
123
|
-
|
|
124
|
-
**Shahzeb Ali**, a computer vision engineer running client training jobs on RunPod, confirmed the storage warning matches real pod behaviour and would not have caught the HF_HOME issue explicitly without the tool.
|
|
125
|
-
|
|
126
|
-
**Seven overnight organic runs** appeared in telemetry from a Vast.ai operator running the tool six times in two minutes before a real training job — without being prompted or paid to do so.
|
|
127
|
-
|
|
128
|
-
---
|
|
129
|
-
|
|
130
|
-
## The problem it solves
|
|
131
|
-
|
|
132
|
-
A healthy GPU does not mean you are training the right job.
|
|
133
|
-
|
|
134
|
-
Docker makes environments reproducible. It does not check whether your HuggingFace cache is writing to ephemeral storage that disappears on pod stop, whether your Accelerate config matches the GPUs actually on the instance, or whether your training script's checkpoint output directory is on persistent storage. ComputeFence addresses the job configuration layer — not the environment layer.
|
|
135
|
-
|
|
136
|
-
HF_HOME and your checkpoint output directory are separate paths. Fixing one does not fix the other. Both disappear on pod restart if they point to ephemeral disk.
|
|
137
|
-
|
|
138
|
-
Thirteen independent ML engineers confirmed this problem independently across RunPod, Vast.ai, and AWS. Five confirmed that Docker does not solve job-specific configuration mistakes.
|
|
139
|
-
|
|
140
|
-
---
|
|
141
|
-
|
|
142
|
-
## Founding Design Partner pilot
|
|
143
|
-
|
|
144
|
-
Running high-cost GPU training on RunPod or Vast.ai?
|
|
145
|
-
|
|
146
|
-
We offer a hands-on **Founding Design Partner** pilot at **$99 for 3 months**:
|
|
147
|
-
|
|
148
|
-
- Personal audit of your launch templates and persistent storage configuration
|
|
149
|
-
- ComputeFence installed into your pod startup scripts so pre-flight runs automatically on every job
|
|
150
|
-
- Slack or Discord webhook alert when a check fails or blocks a launch
|
|
151
|
-
- Monthly 30-minute call where you shape what gets built next
|
|
152
|
-
- Money back if it does not catch one bad launch in 3 months
|
|
153
|
-
|
|
154
|
-
Three spots available. Email **francisco@booth.ws** to apply.
|
|
155
|
-
|
|
156
|
-
---
|
|
157
|
-
|
|
158
|
-
## Links
|
|
159
|
-
|
|
160
|
-
- **GitHub**: [github.com/Francisco-Booth/ComputeFence](https://github.com/Francisco-Booth/ComputeFence)
|
|
161
|
-
- **PyPI**: [pypi.org/project/computefence](https://pypi.org/project/computefence)
|
computefence-0.2.5/README.md
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
# ComputeFence
|
|
2
|
-
|
|
3
|
-
Pre-flight safety gate for ML training jobs on rented GPU compute. Built for RunPod, Vast.ai, Lambda Labs, CoreWeave, Paperspace, and any bare metal GPU provider.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Install
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
pip install computefence
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Or with UV (no install required):
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
uvx computefence doctor
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## Usage
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
computefence doctor
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
With a dataset:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
computefence doctor --dataset train.csv --input-column text --label-column label
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
With checkpoint output directory validation:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
computefence doctor --output-dir ./checkpoints
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
Add to your pod startup script so it runs automatically before every job:
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
pip install computefence && computefence doctor && python train.py
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
## Example output
|
|
48
|
-
|
|
49
|
-
```
|
|
50
|
-
ComputeFence v0.2.4 — Pre-flight diagnostic
|
|
51
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
52
|
-
2 WARNINGS · 0 BLOCKERS · 3 PASSED
|
|
53
|
-
|
|
54
|
-
Environment
|
|
55
|
-
✓ Python 3.11.4
|
|
56
|
-
✓ PyTorch 2.1.0 detected
|
|
57
|
-
✓ CUDA available — NVIDIA A40
|
|
58
|
-
|
|
59
|
-
Storage
|
|
60
|
-
⚠ HF_HOME is not set. HuggingFace will use default local cache.
|
|
61
|
-
Fix: export HF_HOME=/workspace/.cache/huggingface
|
|
62
|
-
⚠ Root disk (/) — 14.3 GB free of 460.4 GB (below 20 GB)
|
|
63
|
-
Fix: Free up disk space or move checkpoints to a larger volume: df -h to check usage
|
|
64
|
-
|
|
65
|
-
Dataset
|
|
66
|
-
✓ No dataset path provided — skipping dataset checks
|
|
67
|
-
|
|
68
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
69
|
-
2 warning(s) found. Review before launching.
|
|
70
|
-
Anonymous run stats are collected to improve ComputeFence. To opt out: touch ~/.computefence_no_telemetry
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
---
|
|
74
|
-
|
|
75
|
-
## What it checks
|
|
76
|
-
|
|
77
|
-
- **CUDA and GPU visibility** — confirms PyTorch can see the GPU and training will not silently fall back to CPU
|
|
78
|
-
- **HuggingFace cache path** — confirms model weights go to persistent storage not ephemeral disk that disappears on pod stop
|
|
79
|
-
- **Accelerate GPU count** — confirms your distributed training config matches the GPUs actually on the instance
|
|
80
|
-
- **Disk space headroom** — checks free space on workspace volumes and root disk. Warns below 20 GB, blocks below 5 GB
|
|
81
|
-
- **Checkpoint output directory** — confirms your training script's output path is on persistent storage not ephemeral disk (`--output-dir`)
|
|
82
|
-
- **Dataset integrity** — optional scan for duplicates, missing values, and conflicting labels (`--dataset`)
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
|
|
86
|
-
## What it does not check
|
|
87
|
-
|
|
88
|
-
- Training script correctness
|
|
89
|
-
- Model architecture compatibility
|
|
90
|
-
- Learning rate or hyperparameter safety
|
|
91
|
-
- Runtime monitoring during the job
|
|
92
|
-
- Dataloader throughput or GPU utilisation during training
|
|
93
|
-
|
|
94
|
-
---
|
|
95
|
-
|
|
96
|
-
## Why this exists
|
|
97
|
-
|
|
98
|
-
I burned approximately £1,000 on GPU training runs that failed silently.
|
|
99
|
-
|
|
100
|
-
CUDA fell back to CPU with no error. 24 seconds per iteration instead of 0.4. Class weights caused loss collapse to 0.693 immediately. My dataset had 28,432 duplicate rows and 312 conflicting labels I only found after the run.
|
|
101
|
-
|
|
102
|
-
Nothing existed that caught these before the job started. So I built it.
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
## Real operator results
|
|
107
|
-
|
|
108
|
-
**David at Neuralic** ran ComputeFence on a RunPod A100. It caught HF_HOME writing to `/root/.cache` and an Accelerate GPU count mismatch. He fixed both before launch.
|
|
109
|
-
|
|
110
|
-
**Shahzeb Ali**, a computer vision engineer running client training jobs on RunPod, confirmed the storage warning matches real pod behaviour and would not have caught the HF_HOME issue explicitly without the tool.
|
|
111
|
-
|
|
112
|
-
**Seven overnight organic runs** appeared in telemetry from a Vast.ai operator running the tool six times in two minutes before a real training job — without being prompted or paid to do so.
|
|
113
|
-
|
|
114
|
-
---
|
|
115
|
-
|
|
116
|
-
## The problem it solves
|
|
117
|
-
|
|
118
|
-
A healthy GPU does not mean you are training the right job.
|
|
119
|
-
|
|
120
|
-
Docker makes environments reproducible. It does not check whether your HuggingFace cache is writing to ephemeral storage that disappears on pod stop, whether your Accelerate config matches the GPUs actually on the instance, or whether your training script's checkpoint output directory is on persistent storage. ComputeFence addresses the job configuration layer — not the environment layer.
|
|
121
|
-
|
|
122
|
-
HF_HOME and your checkpoint output directory are separate paths. Fixing one does not fix the other. Both disappear on pod restart if they point to ephemeral disk.
|
|
123
|
-
|
|
124
|
-
Thirteen independent ML engineers confirmed this problem independently across RunPod, Vast.ai, and AWS. Five confirmed that Docker does not solve job-specific configuration mistakes.
|
|
125
|
-
|
|
126
|
-
---
|
|
127
|
-
|
|
128
|
-
## Founding Design Partner pilot
|
|
129
|
-
|
|
130
|
-
Running high-cost GPU training on RunPod or Vast.ai?
|
|
131
|
-
|
|
132
|
-
We offer a hands-on **Founding Design Partner** pilot at **$99 for 3 months**:
|
|
133
|
-
|
|
134
|
-
- Personal audit of your launch templates and persistent storage configuration
|
|
135
|
-
- ComputeFence installed into your pod startup scripts so pre-flight runs automatically on every job
|
|
136
|
-
- Slack or Discord webhook alert when a check fails or blocks a launch
|
|
137
|
-
- Monthly 30-minute call where you shape what gets built next
|
|
138
|
-
- Money back if it does not catch one bad launch in 3 months
|
|
139
|
-
|
|
140
|
-
Three spots available. Email **francisco@booth.ws** to apply.
|
|
141
|
-
|
|
142
|
-
---
|
|
143
|
-
|
|
144
|
-
## Links
|
|
145
|
-
|
|
146
|
-
- **GitHub**: [github.com/Francisco-Booth/ComputeFence](https://github.com/Francisco-Booth/ComputeFence)
|
|
147
|
-
- **PyPI**: [pypi.org/project/computefence](https://pypi.org/project/computefence)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.5"
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: computefence
|
|
3
|
-
Version: 0.2.5
|
|
4
|
-
Summary: Pre-flight validation for GPU training runs on rented infrastructure
|
|
5
|
-
License-Expression: MIT
|
|
6
|
-
Requires-Python: >=3.8
|
|
7
|
-
Description-Content-Type: text/markdown
|
|
8
|
-
License-File: LICENSE
|
|
9
|
-
Requires-Dist: rich>=13.0.0
|
|
10
|
-
Requires-Dist: pandas>=1.5.0
|
|
11
|
-
Requires-Dist: typer>=0.9.0
|
|
12
|
-
Requires-Dist: requests>=2.28.0
|
|
13
|
-
Dynamic: license-file
|
|
14
|
-
|
|
15
|
-
# ComputeFence
|
|
16
|
-
|
|
17
|
-
Pre-flight safety gate for ML training jobs on rented GPU compute. Built for RunPod, Vast.ai, Lambda Labs, CoreWeave, Paperspace, and any bare metal GPU provider.
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## Install
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
pip install computefence
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Or with UV (no install required):
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
uvx computefence doctor
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
## Usage
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
computefence doctor
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
With a dataset:
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
computefence doctor --dataset train.csv --input-column text --label-column label
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
With checkpoint output directory validation:
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
computefence doctor --output-dir ./checkpoints
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Add to your pod startup script so it runs automatically before every job:
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
pip install computefence && computefence doctor && python train.py
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
## Example output
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
ComputeFence v0.2.4 — Pre-flight diagnostic
|
|
65
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
66
|
-
2 WARNINGS · 0 BLOCKERS · 3 PASSED
|
|
67
|
-
|
|
68
|
-
Environment
|
|
69
|
-
✓ Python 3.11.4
|
|
70
|
-
✓ PyTorch 2.1.0 detected
|
|
71
|
-
✓ CUDA available — NVIDIA A40
|
|
72
|
-
|
|
73
|
-
Storage
|
|
74
|
-
⚠ HF_HOME is not set. HuggingFace will use default local cache.
|
|
75
|
-
Fix: export HF_HOME=/workspace/.cache/huggingface
|
|
76
|
-
⚠ Root disk (/) — 14.3 GB free of 460.4 GB (below 20 GB)
|
|
77
|
-
Fix: Free up disk space or move checkpoints to a larger volume: df -h to check usage
|
|
78
|
-
|
|
79
|
-
Dataset
|
|
80
|
-
✓ No dataset path provided — skipping dataset checks
|
|
81
|
-
|
|
82
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
83
|
-
2 warning(s) found. Review before launching.
|
|
84
|
-
Anonymous run stats are collected to improve ComputeFence. To opt out: touch ~/.computefence_no_telemetry
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
## What it checks
|
|
90
|
-
|
|
91
|
-
- **CUDA and GPU visibility** — confirms PyTorch can see the GPU and training will not silently fall back to CPU
|
|
92
|
-
- **HuggingFace cache path** — confirms model weights go to persistent storage not ephemeral disk that disappears on pod stop
|
|
93
|
-
- **Accelerate GPU count** — confirms your distributed training config matches the GPUs actually on the instance
|
|
94
|
-
- **Disk space headroom** — checks free space on workspace volumes and root disk. Warns below 20 GB, blocks below 5 GB
|
|
95
|
-
- **Checkpoint output directory** — confirms your training script's output path is on persistent storage not ephemeral disk (`--output-dir`)
|
|
96
|
-
- **Dataset integrity** — optional scan for duplicates, missing values, and conflicting labels (`--dataset`)
|
|
97
|
-
|
|
98
|
-
---
|
|
99
|
-
|
|
100
|
-
## What it does not check
|
|
101
|
-
|
|
102
|
-
- Training script correctness
|
|
103
|
-
- Model architecture compatibility
|
|
104
|
-
- Learning rate or hyperparameter safety
|
|
105
|
-
- Runtime monitoring during the job
|
|
106
|
-
- Dataloader throughput or GPU utilisation during training
|
|
107
|
-
|
|
108
|
-
---
|
|
109
|
-
|
|
110
|
-
## Why this exists
|
|
111
|
-
|
|
112
|
-
I burned approximately £1,000 on GPU training runs that failed silently.
|
|
113
|
-
|
|
114
|
-
CUDA fell back to CPU with no error. 24 seconds per iteration instead of 0.4. Class weights caused loss collapse to 0.693 immediately. My dataset had 28,432 duplicate rows and 312 conflicting labels I only found after the run.
|
|
115
|
-
|
|
116
|
-
Nothing existed that caught these before the job started. So I built it.
|
|
117
|
-
|
|
118
|
-
---
|
|
119
|
-
|
|
120
|
-
## Real operator results
|
|
121
|
-
|
|
122
|
-
**David at Neuralic** ran ComputeFence on a RunPod A100. It caught HF_HOME writing to `/root/.cache` and an Accelerate GPU count mismatch. He fixed both before launch.
|
|
123
|
-
|
|
124
|
-
**Shahzeb Ali**, a computer vision engineer running client training jobs on RunPod, confirmed the storage warning matches real pod behaviour and would not have caught the HF_HOME issue explicitly without the tool.
|
|
125
|
-
|
|
126
|
-
**Seven overnight organic runs** appeared in telemetry from a Vast.ai operator running the tool six times in two minutes before a real training job — without being prompted or paid to do so.
|
|
127
|
-
|
|
128
|
-
---
|
|
129
|
-
|
|
130
|
-
## The problem it solves
|
|
131
|
-
|
|
132
|
-
A healthy GPU does not mean you are training the right job.
|
|
133
|
-
|
|
134
|
-
Docker makes environments reproducible. It does not check whether your HuggingFace cache is writing to ephemeral storage that disappears on pod stop, whether your Accelerate config matches the GPUs actually on the instance, or whether your training script's checkpoint output directory is on persistent storage. ComputeFence addresses the job configuration layer — not the environment layer.
|
|
135
|
-
|
|
136
|
-
HF_HOME and your checkpoint output directory are separate paths. Fixing one does not fix the other. Both disappear on pod restart if they point to ephemeral disk.
|
|
137
|
-
|
|
138
|
-
Thirteen independent ML engineers confirmed this problem independently across RunPod, Vast.ai, and AWS. Five confirmed that Docker does not solve job-specific configuration mistakes.
|
|
139
|
-
|
|
140
|
-
---
|
|
141
|
-
|
|
142
|
-
## Founding Design Partner pilot
|
|
143
|
-
|
|
144
|
-
Running high-cost GPU training on RunPod or Vast.ai?
|
|
145
|
-
|
|
146
|
-
We offer a hands-on **Founding Design Partner** pilot at **$99 for 3 months**:
|
|
147
|
-
|
|
148
|
-
- Personal audit of your launch templates and persistent storage configuration
|
|
149
|
-
- ComputeFence installed into your pod startup scripts so pre-flight runs automatically on every job
|
|
150
|
-
- Slack or Discord webhook alert when a check fails or blocks a launch
|
|
151
|
-
- Monthly 30-minute call where you shape what gets built next
|
|
152
|
-
- Money back if it does not catch one bad launch in 3 months
|
|
153
|
-
|
|
154
|
-
Three spots available. Email **francisco@booth.ws** to apply.
|
|
155
|
-
|
|
156
|
-
---
|
|
157
|
-
|
|
158
|
-
## Links
|
|
159
|
-
|
|
160
|
-
- **GitHub**: [github.com/Francisco-Booth/ComputeFence](https://github.com/Francisco-Booth/ComputeFence)
|
|
161
|
-
- **PyPI**: [pypi.org/project/computefence](https://pypi.org/project/computefence)
|
|
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
|
|
File without changes
|