ml-dash 0.5.6__py3-none-any.whl → 0.5.7__py3-none-any.whl
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.
ml_dash/files.py
CHANGED
|
@@ -69,7 +69,7 @@ class FileBuilder:
|
|
|
69
69
|
Raises:
|
|
70
70
|
RuntimeError: If experiment is not open or write-protected
|
|
71
71
|
ValueError: If file_path not provided or file doesn't exist
|
|
72
|
-
ValueError: If file size exceeds
|
|
72
|
+
ValueError: If file size exceeds 100GB limit
|
|
73
73
|
|
|
74
74
|
Examples:
|
|
75
75
|
result = experiment.files(file_path="./model.pt", prefix="/models").save()
|
|
@@ -91,11 +91,11 @@ class FileBuilder:
|
|
|
91
91
|
if not file_path.is_file():
|
|
92
92
|
raise ValueError(f"Path is not a file: {self._file_path}")
|
|
93
93
|
|
|
94
|
-
# Check file size (max
|
|
94
|
+
# Check file size (max 100GB)
|
|
95
95
|
file_size = file_path.stat().st_size
|
|
96
|
-
MAX_FILE_SIZE =
|
|
96
|
+
MAX_FILE_SIZE = 100 * 1024 * 1024 * 1024 # 100GB in bytes
|
|
97
97
|
if file_size > MAX_FILE_SIZE:
|
|
98
|
-
raise ValueError(f"File size ({file_size} bytes) exceeds
|
|
98
|
+
raise ValueError(f"File size ({file_size} bytes) exceeds 100GB limit")
|
|
99
99
|
|
|
100
100
|
# Compute checksum
|
|
101
101
|
checksum = compute_sha256(str(file_path))
|
|
@@ -2,12 +2,12 @@ ml_dash/__init__.py,sha256=o_LrWVJBY_VkUGhSBs5wdb_NqEsHD1AK9HGsjZGxHxQ,1414
|
|
|
2
2
|
ml_dash/auto_start.py,sha256=c3XcXFpZdvjtWauEoK5043Gw9k0L_5IDq4fdiB2ha88,959
|
|
3
3
|
ml_dash/client.py,sha256=vhWcS5o2n3o4apEjVeLmu7flCEzxBbBOoLSQNcAx_ew,17267
|
|
4
4
|
ml_dash/experiment.py,sha256=K36HkHJb_O2-vdaPPOCq74_2nZtfiLaS0o7qhTntD8Q,30646
|
|
5
|
-
ml_dash/files.py,sha256=
|
|
5
|
+
ml_dash/files.py,sha256=JptjoxGJiXJ-nkj6C7vDhw-cgJRCB0cHt_SIUJG665o,23024
|
|
6
6
|
ml_dash/log.py,sha256=0yXaNnFwYeBI3tRLHX3kkqWRpg0MbSGwmgjnOfsElCk,5350
|
|
7
7
|
ml_dash/metric.py,sha256=c0Zl0wEufmQuVfwIMvrORLwqe92Iaf0PfKRgmlgQWzQ,10343
|
|
8
8
|
ml_dash/params.py,sha256=xaByDSVar4D1pZqxTANkMPeZTL5-V7ewJe5TXfPLhMQ,5980
|
|
9
9
|
ml_dash/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
ml_dash/storage.py,sha256=8lyT5ZdvhS2nEyrEgMnFAT0LzV5ne1v8tkI3w1PUHJ4,30793
|
|
11
|
-
ml_dash-0.5.
|
|
12
|
-
ml_dash-0.5.
|
|
13
|
-
ml_dash-0.5.
|
|
11
|
+
ml_dash-0.5.7.dist-info/WHEEL,sha256=z-mOpxbJHqy3cq6SvUThBZdaLGFZzdZPtgWLcP2NKjQ,79
|
|
12
|
+
ml_dash-0.5.7.dist-info/METADATA,sha256=zgcqykoN7fKnJuQi94m8bjww66baNgEdf4lUs_kba6k,6147
|
|
13
|
+
ml_dash-0.5.7.dist-info/RECORD,,
|