b10-transfer 0.2.1__py3-none-any.whl → 0.2.3__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.
- b10_transfer/__init__.py +1 -1
- b10_transfer/cache_cli.py +4 -10
- b10_transfer/constants.py +3 -1
- {b10_transfer-0.2.1.dist-info → b10_transfer-0.2.3.dist-info}/METADATA +1 -1
- {b10_transfer-0.2.1.dist-info → b10_transfer-0.2.3.dist-info}/RECORD +7 -7
- {b10_transfer-0.2.1.dist-info → b10_transfer-0.2.3.dist-info}/WHEEL +0 -0
- {b10_transfer-0.2.1.dist-info → b10_transfer-0.2.3.dist-info}/entry_points.txt +0 -0
b10_transfer/__init__.py
CHANGED
b10_transfer/cache_cli.py
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# src/b10_tcache/cli.py
|
2
|
-
|
2
|
+
VLLM_CACHE_DIR = os.getenv("VLLM_CACHE_ROOT", "~/.cache/vllm")
|
3
|
+
os.environ["TORCHINDUCTOR_CACHE_DIR"] = VLLM_CACHE_DIR
|
4
|
+
|
5
|
+
from .cache import load_compile_cache, save_compile_cache
|
3
6
|
|
4
7
|
import logging
|
5
8
|
import os
|
@@ -24,9 +27,6 @@ DEFAULT_INTERVAL_S = float(os.getenv("B10_TRANSFER_INTERVAL_S", "2"))
|
|
24
27
|
DEFAULT_LOGLEVEL = os.getenv("B10_TRANSFER_CLI_LOGLEVEL", "INFO").upper()
|
25
28
|
|
26
29
|
|
27
|
-
VLLM_CACHE_DIR = os.getenv("VLLM_CACHE_ROOT", "~/.cache/vllm")
|
28
|
-
|
29
|
-
|
30
30
|
def _setup_logging(level: str) -> logging.Logger:
|
31
31
|
logging.basicConfig(
|
32
32
|
level=getattr(logging, level, logging.INFO),
|
@@ -78,12 +78,6 @@ def _wait_for_ready(cfg: WaitCfg, logger: logging.Logger) -> bool:
|
|
78
78
|
|
79
79
|
|
80
80
|
def main() -> None:
|
81
|
-
# Configure torch compile cache location
|
82
|
-
os.environ["TORCHINDUCTOR_CACHE_DIR"] = VLLM_CACHE_DIR
|
83
|
-
|
84
|
-
# Import here to allow environment variables to be set before the imported script uses them
|
85
|
-
from .cache import load_compile_cache, save_compile_cache
|
86
|
-
|
87
81
|
cfg = WaitCfg(
|
88
82
|
url=DEFAULT_URL,
|
89
83
|
timeout_s=DEFAULT_TIMEOUT_S,
|
b10_transfer/constants.py
CHANGED
@@ -24,7 +24,9 @@ _torch_cache_dir = os.getenv(
|
|
24
24
|
"TORCHINDUCTOR_CACHE_DIR", f"/tmp/torchinductor_{get_current_username()}"
|
25
25
|
)
|
26
26
|
TORCH_CACHE_DIR = validate_path_security(
|
27
|
-
_torch_cache_dir,
|
27
|
+
_torch_cache_dir,
|
28
|
+
["/tmp/", "/cache/", f"{os.path.expanduser('~')}/.cache"],
|
29
|
+
"TORCHINDUCTOR_CACHE_DIR",
|
28
30
|
)
|
29
31
|
|
30
32
|
# B10FS cache directory validation
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: b10-transfer
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.3
|
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
|
@@ -1,16 +1,16 @@
|
|
1
|
-
b10_transfer/__init__.py,sha256=
|
1
|
+
b10_transfer/__init__.py,sha256=FytjLHC9yPiXmhBAZcx43FqR6bVJyitvK-0jx5Lu1LA,729
|
2
2
|
b10_transfer/archive.py,sha256=gunAZ6oTUz0SxodUCho1uP-MNLuQyuhMKFusx7E0xDg,6439
|
3
3
|
b10_transfer/cache.py,sha256=k759Cs4IIUdAJ90ctK1m8ws3Fceje8ckug09L8X6W5I,17518
|
4
|
-
b10_transfer/cache_cli.py,sha256=
|
4
|
+
b10_transfer/cache_cli.py,sha256=hSUyNcm5YnHDxImzpkj92nAmL5Xq5OYp7CPZkrW1k9M,3416
|
5
5
|
b10_transfer/cleanup.py,sha256=IAjRlpzCcXVrokTXdOsm_EJo_-U5kiy8KJoip8V4vvk,6345
|
6
|
-
b10_transfer/constants.py,sha256=
|
6
|
+
b10_transfer/constants.py,sha256=0RWa4ZusICpYoN_V0u4yj4GZfcouQ6PjfCvSRVUamJU,4368
|
7
7
|
b10_transfer/core.py,sha256=Ny4lViiPup4Zb_OCx_Z2IcbcWq42Ymj_zF7xyVroHxE,4668
|
8
8
|
b10_transfer/environment.py,sha256=NkIs3EevhfATMZS0KL7f1w3SSoxAF9rCrA9qYkhbV7s,5602
|
9
9
|
b10_transfer/info.py,sha256=WlpSQNEKi93d3EYo2HnbbzrLazOhK9dpX5w7Kf6DVfA,6339
|
10
10
|
b10_transfer/logging_utils.py,sha256=vnjnuVsVO5bibHSHiF5sYhHqfprIezU0fM3YaCugMC0,3488
|
11
11
|
b10_transfer/space_monitor.py,sha256=-hFc9f29K-7gF1vDZRrKDa-FrHkmD6OBLsV8l8knrMM,10761
|
12
12
|
b10_transfer/utils.py,sha256=XG4dGLAlQQyUPeIK48OzuDkz1SOpdEs2_GrXKd8fr5M,12061
|
13
|
-
b10_transfer-0.2.
|
14
|
-
b10_transfer-0.2.
|
15
|
-
b10_transfer-0.2.
|
16
|
-
b10_transfer-0.2.
|
13
|
+
b10_transfer-0.2.3.dist-info/METADATA,sha256=X3_GkjUKHI926P47XrYHnvEmmc8QOzE2rh-xTfVQn50,4108
|
14
|
+
b10_transfer-0.2.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
15
|
+
b10_transfer-0.2.3.dist-info/entry_points.txt,sha256=6vj8KpPhV5qkaix1Vs7c--RL8nmuaGx_jIvkp4mRXoY,60
|
16
|
+
b10_transfer-0.2.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|