diff --git a/python/sglang/multimodal_gen/runtime/utils/distributed.py b/python/sglang/multimodal_gen/runtime/utils/distributed.py index c89a31dcc..24608e9e9 100644 --- a/python/sglang/multimodal_gen/runtime/utils/distributed.py +++ b/python/sglang/multimodal_gen/runtime/utils/distributed.py @@ -32,7 +32,7 @@ def broadcast_pyobj( size = len(serialized_data) tensor_data = torch.ByteTensor( - np.frombuffer(serialized_data, dtype=np.uint8) + np.frombuffer(serialized_data, dtype=np.uint8).copy() ).to(device) tensor_size = torch.tensor([size], dtype=torch.long, device=device)