Move hash utils out of hicache_storage to break CUDA import chain (#22214)

This commit is contained in:
Liangsheng Yin
2026-04-06 18:16:40 -07:00
committed by GitHub
parent 5e2b0f860c
commit 49cb7d546e
4 changed files with 32 additions and 34 deletions
@@ -430,7 +430,7 @@ class HiCacheController:
# Rollback-safe init: if creation fails, keep controller state consistent
# for future attach attempts.
self.storage_backend_type = storage_backend
from sglang.srt.mem_cache.hicache_storage import get_hash_str
from sglang.srt.mem_cache.utils import get_hash_str
self.get_hash_str = get_hash_str
self.storage_config = self._generate_storage_config(