b10-transfer 0.1.6__tar.gz → 0.1.7__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.
- {b10_transfer-0.1.6 → b10_transfer-0.1.7}/PKG-INFO +1 -1
- {b10_transfer-0.1.6 → b10_transfer-0.1.7}/pyproject.toml +1 -1
- {b10_transfer-0.1.6 → b10_transfer-0.1.7}/src/b10_transfer/__init__.py +1 -1
- {b10_transfer-0.1.6 → b10_transfer-0.1.7}/src/b10_transfer/environment.py +3 -4
- {b10_transfer-0.1.6 → b10_transfer-0.1.7}/README.md +0 -0
- {b10_transfer-0.1.6 → b10_transfer-0.1.7}/src/b10_transfer/archive.py +0 -0
- {b10_transfer-0.1.6 → b10_transfer-0.1.7}/src/b10_transfer/cache.py +0 -0
- {b10_transfer-0.1.6 → b10_transfer-0.1.7}/src/b10_transfer/cleanup.py +0 -0
- {b10_transfer-0.1.6 → b10_transfer-0.1.7}/src/b10_transfer/constants.py +0 -0
- {b10_transfer-0.1.6 → b10_transfer-0.1.7}/src/b10_transfer/core.py +0 -0
- {b10_transfer-0.1.6 → b10_transfer-0.1.7}/src/b10_transfer/info.py +0 -0
- {b10_transfer-0.1.6 → b10_transfer-0.1.7}/src/b10_transfer/space_monitor.py +0 -0
- {b10_transfer-0.1.6 → b10_transfer-0.1.7}/src/b10_transfer/utils.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: b10-transfer
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.7
|
4
4
|
Summary: Distributed PyTorch file transfer for Baseten - Environment-aware, lock-free file transfer management
|
5
5
|
License: MIT
|
6
6
|
Keywords: pytorch,file-transfer,cache,machine-learning,inference
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|
4
4
|
|
5
5
|
[tool.poetry]
|
6
6
|
name = "b10-transfer"
|
7
|
-
version = "0.1.
|
7
|
+
version = "0.1.7"
|
8
8
|
description = "Distributed PyTorch file transfer for Baseten - Environment-aware, lock-free file transfer management"
|
9
9
|
authors = ["Shounak Ray <shounak.noreply@baseten.co>", "Fred Liu <fred.liu.noreply@baseten.co>"]
|
10
10
|
maintainers = ["Fred Liu <fred.liu.noreply@baseten.co>", "Shounak Ray <shounak.noreply@baseten.co>"]
|
@@ -28,15 +28,14 @@ def get_cache_filename() -> str:
|
|
28
28
|
"""Get the cache filename prefix for the current environment.
|
29
29
|
|
30
30
|
This function generates a cache filename prefix that includes the
|
31
|
-
environment key
|
31
|
+
environment key to ensure cache files are environment-specific
|
32
32
|
and unique per machine.
|
33
33
|
|
34
34
|
Returns:
|
35
|
-
str: Cache filename prefix in format "cache_{environment_key}
|
35
|
+
str: Cache filename prefix in format "cache_{environment_key}".
|
36
36
|
"""
|
37
37
|
env_key = get_environment_key()
|
38
|
-
|
39
|
-
return f"cache_{env_key}.{hostname}"
|
38
|
+
return f"cache_{env_key}"
|
40
39
|
|
41
40
|
|
42
41
|
def get_environment_key() -> str:
|
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
|