computefence 0.2.15__tar.gz → 0.2.17__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.15 → computefence-0.2.17}/PKG-INFO +1 -1
- computefence-0.2.17/computefence/__init__.py +1 -0
- {computefence-0.2.15 → computefence-0.2.17}/computefence/cli.py +7 -2
- {computefence-0.2.15 → computefence-0.2.17}/computefence/drift.py +12 -0
- {computefence-0.2.15 → computefence-0.2.17}/computefence.egg-info/PKG-INFO +1 -1
- computefence-0.2.15/computefence/__init__.py +0 -1
- {computefence-0.2.15 → computefence-0.2.17}/LICENSE +0 -0
- {computefence-0.2.15 → computefence-0.2.17}/README.md +0 -0
- {computefence-0.2.15 → computefence-0.2.17}/computefence/checks/__init__.py +0 -0
- {computefence-0.2.15 → computefence-0.2.17}/computefence/checks/dataset.py +0 -0
- {computefence-0.2.15 → computefence-0.2.17}/computefence/checks/environment.py +0 -0
- {computefence-0.2.15 → computefence-0.2.17}/computefence/checks/storage.py +0 -0
- {computefence-0.2.15 → computefence-0.2.17}/computefence/telemetry.py +0 -0
- {computefence-0.2.15 → computefence-0.2.17}/computefence.egg-info/SOURCES.txt +0 -0
- {computefence-0.2.15 → computefence-0.2.17}/computefence.egg-info/dependency_links.txt +0 -0
- {computefence-0.2.15 → computefence-0.2.17}/computefence.egg-info/entry_points.txt +0 -0
- {computefence-0.2.15 → computefence-0.2.17}/computefence.egg-info/requires.txt +0 -0
- {computefence-0.2.15 → computefence-0.2.17}/computefence.egg-info/top_level.txt +0 -0
- {computefence-0.2.15 → computefence-0.2.17}/pyproject.toml +0 -0
- {computefence-0.2.15 → computefence-0.2.17}/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.17
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.17"
|
|
@@ -114,8 +114,12 @@ 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
|
-
"[dim]Anonymous run stats are collected to improve ComputeFence
|
|
121
|
+
"[dim]Anonymous run stats are collected to improve ComputeFence "
|
|
122
|
+
"(version, Python version, platform, GPU count, check results — no file paths, no repo URLs). "
|
|
119
123
|
"To opt out: touch ~/.computefence_no_telemetry[/dim]"
|
|
120
124
|
)
|
|
121
125
|
console.print()
|
|
@@ -127,7 +131,8 @@ def doctor():
|
|
|
127
131
|
else:
|
|
128
132
|
success, msg = save_env(output_dir=output_dir, path_override=path_override)
|
|
129
133
|
if success:
|
|
130
|
-
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]")
|
|
131
136
|
else:
|
|
132
137
|
console.print(f"[yellow]⚠ Could not save fingerprint: {msg}[/yellow]")
|
|
133
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: computefence
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.17
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.15"
|
|
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
|
|
File without changes
|