computefence 0.3.2__tar.gz → 0.3.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: computefence
3
- Version: 0.3.2
3
+ Version: 0.3.3
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.3.3"
@@ -35,6 +35,7 @@ def doctor():
35
35
  check_drift_flag = False
36
36
  path_override = None
37
37
  json_flag = False
38
+ skip_ids = set()
38
39
 
39
40
  args = sys.argv[1:]
40
41
  i = 0
@@ -63,6 +64,9 @@ def doctor():
63
64
  elif args[i] == "--json":
64
65
  json_flag = True
65
66
  i += 1
67
+ elif args[i] == "--skip" and i + 1 < len(args):
68
+ skip_ids = set(args[i + 1].split(","))
69
+ i += 2
66
70
  else:
67
71
  i += 1
68
72
 
@@ -84,6 +88,16 @@ def doctor():
84
88
  if check_drift_flag:
85
89
  drift_results = check_drift(output_dir=output_dir, path_override=path_override)
86
90
  all_results = all_results + drift_results
91
+ else:
92
+ drift_results = []
93
+
94
+ # Apply --skip filter
95
+ if skip_ids:
96
+ all_results = [r for r in all_results if r.get("id") not in skip_ids]
97
+ env_results = [r for r in env_results if r.get("id") not in skip_ids]
98
+ storage_results = [r for r in storage_results if r.get("id") not in skip_ids]
99
+ dataset_results = [r for r in dataset_results if r.get("id") not in skip_ids]
100
+ drift_results = [r for r in drift_results if r.get("id") not in skip_ids]
87
101
 
88
102
  failures = [r for r in all_results if r["status"] == "fail"]
89
103
  warnings = [r for r in all_results if r["status"] == "warn"]
@@ -100,7 +114,7 @@ def doctor():
100
114
  },
101
115
  "checks": [
102
116
  {
103
- "id": r.get("id", r.get("message", "")[:40].lower().replace(" ", "_")),
117
+ "id": r["id"],
104
118
  "status": r["status"],
105
119
  "message": r.get("message", ""),
106
120
  "remediation": r.get("fix", ""),
@@ -185,7 +199,7 @@ def main():
185
199
  else:
186
200
  console.print(f"[red]Unknown command: {escape(args[0])}[/red]")
187
201
  console.print("Usage: computefence doctor")
188
- sys.exit(1)
202
+ sys.exit(64)
189
203
 
190
204
  if __name__ == "__main__":
191
- main()
205
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: computefence
3
- Version: 0.3.2
3
+ Version: 0.3.3
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.3.2"
File without changes
File without changes
File without changes