bf16是否支持?
Closed this issue · 5 comments
lw3259111 commented
bf16是否支持?
KaiLv69 commented
支持,可以这样设置
config.ds_config = {
"bf16": {"enabled": True},
}
lw3259111 commented
@KaiLv69
我的ds_config是
config.ds_config = {
"bf16": {
"enabled": True
},
"zero_allow_untested_optimizer": True,
"zero_force_ds_cpu_optimizer": False,
"zero_optimization": {
"stage": 3,
"offload_optimizer": {
"device": "cpu",
"pin_memory": False
}
}
}
报错:
RuntimeError: output tensor must have the same type as input tensor
KaiLv69 commented
你好。你的PyTorch版本是2.0吗?可以尝试调低PyTorch版本。应该是DeepSpeed的问题,可以参考这个回复microsoft/DeepSpeed#3654 (comment)