#8639·DeepSpeed

[BUG] 为零维参数的 Byte-view 参数广播失败

作者: jinyouzhi创建于 2026年9月23日更新于 2026年9月23日

Describe the bug

DeepSpeed reinterprets parameter storage as torch.uint8 before broadcasting so the original parameter bit pattern is preserved. For a valid zero-dimensional parameter such as nn.Parameter(torch.tensor(1.0)), PyTorch rejects a dtype-changing Tensor.view(dtype) on a 0-D tensor. Initialization raises before the broadcast runs:

内容来源: deepspeedai/DeepSpeed