b10-transfer 0.2.2__tar.gz → 0.2.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.
- {b10_transfer-0.2.2 → b10_transfer-0.2.3}/PKG-INFO +1 -1
- {b10_transfer-0.2.2 → b10_transfer-0.2.3}/pyproject.toml +1 -1
- {b10_transfer-0.2.2 → b10_transfer-0.2.3}/src/b10_transfer/__init__.py +1 -1
- {b10_transfer-0.2.2 → b10_transfer-0.2.3}/src/b10_transfer/cache_cli.py +4 -10
- {b10_transfer-0.2.2 → b10_transfer-0.2.3}/src/b10_transfer/constants.py +3 -1
- {b10_transfer-0.2.2 → b10_transfer-0.2.3}/README.md +0 -0
- {b10_transfer-0.2.2 → b10_transfer-0.2.3}/src/b10_transfer/archive.py +0 -0
- {b10_transfer-0.2.2 → b10_transfer-0.2.3}/src/b10_transfer/cache.py +0 -0
- {b10_transfer-0.2.2 → b10_transfer-0.2.3}/src/b10_transfer/cleanup.py +0 -0
- {b10_transfer-0.2.2 → b10_transfer-0.2.3}/src/b10_transfer/core.py +0 -0
- {b10_transfer-0.2.2 → b10_transfer-0.2.3}/src/b10_transfer/environment.py +0 -0
- {b10_transfer-0.2.2 → b10_transfer-0.2.3}/src/b10_transfer/info.py +0 -0
- {b10_transfer-0.2.2 → b10_transfer-0.2.3}/src/b10_transfer/logging_utils.py +0 -0
- {b10_transfer-0.2.2 → b10_transfer-0.2.3}/src/b10_transfer/space_monitor.py +0 -0
- {b10_transfer-0.2.2 → b10_transfer-0.2.3}/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.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
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|
4
4
|
|
5
5
|
[tool.poetry]
|
6
6
|
name = "b10-transfer"
|
7
|
-
version = "0.2.
|
7
|
+
version = "0.2.3"
|
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>"]
|
@@ -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,
|
@@ -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
|
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
|