Skip to content

Commit 7de824c

Browse files
authored
bugfix: fix incorrect parsing of float32 dtype in parse_dtype. (#438)
1 parent 5a2c5a3 commit 7de824c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xllm/core/util/utils.cpp

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ torch::ScalarType parse_dtype(const std::string& dtype_str,
8080
}
8181
if ((boost::iequals(dtype_str, "float") ||
8282
boost::iequals(dtype_str, "float32"))) {
83-
return torch::kFloat16;
83+
return torch::kFloat;
8484
}
8585

8686
if (dtype_str.empty() || boost::iequals(dtype_str, "auto")) {

0 commit comments

Comments
 (0)