Skip to content

Commit 5b8e3a0

Browse files
committed
Merge branch 'main' into keivenchang/remove-legacy-nats-metrics-code
2 parents d7c9e3c + c9fdc2e commit 5b8e3a0

File tree

45 files changed

+2621
-137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2621
-137
lines changed

components/src/dynamo/common/lora/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
LoRA management infrastructure
66
"""
77

8-
from .lora import LoRAManager, LoRASourceProtocol
8+
from .manager import LoRAManager, LoRASourceProtocol
99

1010
__all__ = ["LoRAManager", "LoRASourceProtocol"]

components/src/dynamo/common/lora/lora/__init__.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

components/src/dynamo/common/lora/lora/manager.py renamed to components/src/dynamo/common/lora/manager.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,9 @@ async def download_lora(self, lora_uri: str) -> Dict[str, Any]:
106106

107107
def is_cached(self, lora_uri: str) -> bool:
108108
"""Check if LoRA is already cached locally."""
109-
cache_key = self._uri_to_cache_key(lora_uri)
109+
cache_key = LoRADownloader.uri_to_cache_key(lora_uri)
110110
return self._downloader.is_cached(cache_key)
111111

112112
def _uri_to_cache_key(self, uri: str) -> str:
113-
return (
114-
uri.replace("://", "__")
115-
.replace(".", "_")
116-
.replace("/", "_")
117-
.replace("\\", "_")
118-
)
113+
"""Convert URI to cache key. Delegates to Rust for consistency."""
114+
return LoRADownloader.uri_to_cache_key(uri)

0 commit comments

Comments
 (0)