Skip to content

Commit 1aeebcc

Browse files
committed
fix
1 parent f7dfc16 commit 1aeebcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightllm/server/embed_cache/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def tensor2bytes(t: torch.Tensor):
2222

2323
def bytes2tensor(b):
2424
# return torch.from_numpy(np.frombuffer(b, dtype=np.float16)).cuda()
25-
return torch.load(BytesIO(b))
25+
return torch.load(BytesIO(b), weights_only=False)
2626

2727

2828
def create_shm(name, data):

0 commit comments

Comments
 (0)