computefence 0.2.16__tar.gz → 0.2.18__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.16 → computefence-0.2.18}/PKG-INFO +14 -1
- {computefence-0.2.16 → computefence-0.2.18}/README.md +13 -0
- computefence-0.2.18/computefence/__init__.py +1 -0
- {computefence-0.2.16 → computefence-0.2.18}/computefence/cli.py +5 -1
- {computefence-0.2.16 → computefence-0.2.18}/computefence/drift.py +12 -0
- {computefence-0.2.16 → computefence-0.2.18}/computefence/telemetry.py +1 -1
- {computefence-0.2.16 → computefence-0.2.18}/computefence.egg-info/PKG-INFO +14 -1
- computefence-0.2.16/computefence/__init__.py +0 -1
- {computefence-0.2.16 → computefence-0.2.18}/LICENSE +0 -0
- {computefence-0.2.16 → computefence-0.2.18}/computefence/checks/__init__.py +0 -0
- {computefence-0.2.16 → computefence-0.2.18}/computefence/checks/dataset.py +0 -0
- {computefence-0.2.16 → computefence-0.2.18}/computefence/checks/environment.py +0 -0
- {computefence-0.2.16 → computefence-0.2.18}/computefence/checks/storage.py +0 -0
- {computefence-0.2.16 → computefence-0.2.18}/computefence.egg-info/SOURCES.txt +0 -0
- {computefence-0.2.16 → computefence-0.2.18}/computefence.egg-info/dependency_links.txt +0 -0
- {computefence-0.2.16 → computefence-0.2.18}/computefence.egg-info/entry_points.txt +0 -0
- {computefence-0.2.16 → computefence-0.2.18}/computefence.egg-info/requires.txt +0 -0
- {computefence-0.2.16 → computefence-0.2.18}/computefence.egg-info/top_level.txt +0 -0
- {computefence-0.2.16 → computefence-0.2.18}/pyproject.toml +0 -0
- {computefence-0.2.16 → computefence-0.2.18}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: computefence
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.18
|
|
4
4
|
Summary: Don't lose another RunPod checkpoint to ephemeral disk before your job bills.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Keywords: runpod,vast.ai,gpu training,hf_home,cuda,preflight,machine learning,mlops,checkpoint
|
|
@@ -39,6 +39,19 @@ uvx computefence doctor
|
|
|
39
39
|
|
|
40
40
|
---
|
|
41
41
|
|
|
42
|
+
|
|
43
|
+
## ☁️ RunPod One-Click Template
|
|
44
|
+
|
|
45
|
+
If you train on RunPod, use the pre-built community template — ComputeFence is pre-installed and runs automatically on pod start.
|
|
46
|
+
|
|
47
|
+
**[→ Launch ComputeFence Pre-Flight Template](https://runpod.io/console/deploy?template=cq5psqzck6)**
|
|
48
|
+
|
|
49
|
+
- Runs `computefence doctor` on every pod start
|
|
50
|
+
- Logs preflight output to `/workspace/computefence-preflight.log`
|
|
51
|
+
- `HF_HOME` set to `/workspace/.cache/huggingface` by default
|
|
52
|
+
- Persistent `/workspace` volume included
|
|
53
|
+
|
|
54
|
+
|
|
42
55
|
## Usage
|
|
43
56
|
|
|
44
57
|
```bash
|
|
@@ -24,6 +24,19 @@ uvx computefence doctor
|
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
27
|
+
|
|
28
|
+
## ☁️ RunPod One-Click Template
|
|
29
|
+
|
|
30
|
+
If you train on RunPod, use the pre-built community template — ComputeFence is pre-installed and runs automatically on pod start.
|
|
31
|
+
|
|
32
|
+
**[→ Launch ComputeFence Pre-Flight Template](https://runpod.io/console/deploy?template=cq5psqzck6)**
|
|
33
|
+
|
|
34
|
+
- Runs `computefence doctor` on every pod start
|
|
35
|
+
- Logs preflight output to `/workspace/computefence-preflight.log`
|
|
36
|
+
- `HF_HOME` set to `/workspace/.cache/huggingface` by default
|
|
37
|
+
- Persistent `/workspace` volume included
|
|
38
|
+
|
|
39
|
+
|
|
27
40
|
## Usage
|
|
28
41
|
|
|
29
42
|
```bash
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.18"
|
|
@@ -114,6 +114,9 @@ def doctor():
|
|
|
114
114
|
else:
|
|
115
115
|
console.print("[green]All checks passed. Safe to launch.[/green]")
|
|
116
116
|
console.print(f"[dim]✓ ComputeFence: {len(passed)} checks passed — ~$430 protected.[/dim]")
|
|
117
|
+
console.print()
|
|
118
|
+
console.print("[dim]Tip: add this to your launch script to run automatically every time:[/dim]")
|
|
119
|
+
console.print('[dim] alias train="computefence doctor && python train.py"[/dim]')
|
|
117
120
|
console.print(
|
|
118
121
|
"[dim]Anonymous run stats are collected to improve ComputeFence "
|
|
119
122
|
"(version, Python version, platform, GPU count, check results — no file paths, no repo URLs). "
|
|
@@ -128,7 +131,8 @@ def doctor():
|
|
|
128
131
|
else:
|
|
129
132
|
success, msg = save_env(output_dir=output_dir, path_override=path_override)
|
|
130
133
|
if success:
|
|
131
|
-
console.print(f"[green]✓
|
|
134
|
+
console.print(f"[green]✓ Baseline saved to {msg}[/green]")
|
|
135
|
+
console.print("[dim]Commit this file to your training repo. On any new pod, clone your repo and run --check-drift to verify the environment matches your last known-good run.[/dim]")
|
|
132
136
|
else:
|
|
133
137
|
console.print(f"[yellow]⚠ Could not save fingerprint: {msg}[/yellow]")
|
|
134
138
|
console.print()
|
|
@@ -36,6 +36,18 @@ def _find_persistent_volume(path_override=None):
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
def _get_lock_path(path_override=None):
|
|
39
|
+
# Primary: git repo root (project-level persistence)
|
|
40
|
+
try:
|
|
41
|
+
import subprocess
|
|
42
|
+
result = subprocess.run(
|
|
43
|
+
["git", "rev-parse", "--show-toplevel"],
|
|
44
|
+
capture_output=True, text=True, timeout=3
|
|
45
|
+
)
|
|
46
|
+
if result.returncode == 0:
|
|
47
|
+
return Path(result.stdout.strip()) / "computefence.lock"
|
|
48
|
+
except Exception:
|
|
49
|
+
pass
|
|
50
|
+
# Fallback: persistent volume (pod-level persistence)
|
|
39
51
|
vol = _find_persistent_volume(path_override)
|
|
40
52
|
if vol is None:
|
|
41
53
|
return None
|
|
@@ -117,7 +117,7 @@ def record_run(results: list):
|
|
|
117
117
|
"warning_count": warning_count,
|
|
118
118
|
"blocker_count": blocker_count,
|
|
119
119
|
"pass_count": pass_count,
|
|
120
|
-
"
|
|
120
|
+
"opted_out": False,
|
|
121
121
|
"project_id": get_project_id(),
|
|
122
122
|
"run_id": str(uuid.uuid4()),
|
|
123
123
|
"execution_mode": get_execution_mode(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: computefence
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.18
|
|
4
4
|
Summary: Don't lose another RunPod checkpoint to ephemeral disk before your job bills.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Keywords: runpod,vast.ai,gpu training,hf_home,cuda,preflight,machine learning,mlops,checkpoint
|
|
@@ -39,6 +39,19 @@ uvx computefence doctor
|
|
|
39
39
|
|
|
40
40
|
---
|
|
41
41
|
|
|
42
|
+
|
|
43
|
+
## ☁️ RunPod One-Click Template
|
|
44
|
+
|
|
45
|
+
If you train on RunPod, use the pre-built community template — ComputeFence is pre-installed and runs automatically on pod start.
|
|
46
|
+
|
|
47
|
+
**[→ Launch ComputeFence Pre-Flight Template](https://runpod.io/console/deploy?template=cq5psqzck6)**
|
|
48
|
+
|
|
49
|
+
- Runs `computefence doctor` on every pod start
|
|
50
|
+
- Logs preflight output to `/workspace/computefence-preflight.log`
|
|
51
|
+
- `HF_HOME` set to `/workspace/.cache/huggingface` by default
|
|
52
|
+
- Persistent `/workspace` volume included
|
|
53
|
+
|
|
54
|
+
|
|
42
55
|
## Usage
|
|
43
56
|
|
|
44
57
|
```bash
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.16"
|
|
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
|